DNSmasq - MAC address-based responses for both IPV4 and IPv6

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have my own dhcp server with dnsmasq on a network wit both IPv4 and IPv6. Everything has been working fine. Now I would like to it to offer different DNS Server addresses than the default for my wife's computer, based on her MAC address.



I was able to do it on IPv4 (see below), but IPv6 continues to point to my dhcp server.



I've read DNSMasq - Different Responses for Specific MAC Addresses and it is a good start, but the bugaboo is that the IPv6 server address hasn't changed.



Under /etc/dnsmasq.d I created 03-bypass.conf and it's working thus:



dhcp-option=tag:googledns1,6,8.8.4.4,8.8.8.8
dhcp-host=AB:CD:EF:88:77:66,set:googledns1


On my wife's computer, the DNS servers are as shown above (8.8.4.4 and 8.8.8.8). But there's also the IPv6 entry which is my dhcp server.



I tried this:



dhcp-option=tag:googledns2,option6:dns-server,[2001:4860:4860::8888]
dhcp-host=AB:CD:EF:88:77:66,set:googledns2


But it didn't seem to make a difference. As a matter of fact, with only that option, or even with both sets in place, those customizations seem to be ignored (her DNS servers are set to my DHCP/DNS server for both IPv4 and IPv6). But the dnsmasq daemon does not show any errors or warnings.



Any ideas? I have yet to find any discussion of this issue online. Thanks.









share

























    up vote
    0
    down vote

    favorite












    I have my own dhcp server with dnsmasq on a network wit both IPv4 and IPv6. Everything has been working fine. Now I would like to it to offer different DNS Server addresses than the default for my wife's computer, based on her MAC address.



    I was able to do it on IPv4 (see below), but IPv6 continues to point to my dhcp server.



    I've read DNSMasq - Different Responses for Specific MAC Addresses and it is a good start, but the bugaboo is that the IPv6 server address hasn't changed.



    Under /etc/dnsmasq.d I created 03-bypass.conf and it's working thus:



    dhcp-option=tag:googledns1,6,8.8.4.4,8.8.8.8
    dhcp-host=AB:CD:EF:88:77:66,set:googledns1


    On my wife's computer, the DNS servers are as shown above (8.8.4.4 and 8.8.8.8). But there's also the IPv6 entry which is my dhcp server.



    I tried this:



    dhcp-option=tag:googledns2,option6:dns-server,[2001:4860:4860::8888]
    dhcp-host=AB:CD:EF:88:77:66,set:googledns2


    But it didn't seem to make a difference. As a matter of fact, with only that option, or even with both sets in place, those customizations seem to be ignored (her DNS servers are set to my DHCP/DNS server for both IPv4 and IPv6). But the dnsmasq daemon does not show any errors or warnings.



    Any ideas? I have yet to find any discussion of this issue online. Thanks.









    share























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have my own dhcp server with dnsmasq on a network wit both IPv4 and IPv6. Everything has been working fine. Now I would like to it to offer different DNS Server addresses than the default for my wife's computer, based on her MAC address.



      I was able to do it on IPv4 (see below), but IPv6 continues to point to my dhcp server.



      I've read DNSMasq - Different Responses for Specific MAC Addresses and it is a good start, but the bugaboo is that the IPv6 server address hasn't changed.



      Under /etc/dnsmasq.d I created 03-bypass.conf and it's working thus:



      dhcp-option=tag:googledns1,6,8.8.4.4,8.8.8.8
      dhcp-host=AB:CD:EF:88:77:66,set:googledns1


      On my wife's computer, the DNS servers are as shown above (8.8.4.4 and 8.8.8.8). But there's also the IPv6 entry which is my dhcp server.



      I tried this:



      dhcp-option=tag:googledns2,option6:dns-server,[2001:4860:4860::8888]
      dhcp-host=AB:CD:EF:88:77:66,set:googledns2


      But it didn't seem to make a difference. As a matter of fact, with only that option, or even with both sets in place, those customizations seem to be ignored (her DNS servers are set to my DHCP/DNS server for both IPv4 and IPv6). But the dnsmasq daemon does not show any errors or warnings.



      Any ideas? I have yet to find any discussion of this issue online. Thanks.









      share













      I have my own dhcp server with dnsmasq on a network wit both IPv4 and IPv6. Everything has been working fine. Now I would like to it to offer different DNS Server addresses than the default for my wife's computer, based on her MAC address.



      I was able to do it on IPv4 (see below), but IPv6 continues to point to my dhcp server.



      I've read DNSMasq - Different Responses for Specific MAC Addresses and it is a good start, but the bugaboo is that the IPv6 server address hasn't changed.



      Under /etc/dnsmasq.d I created 03-bypass.conf and it's working thus:



      dhcp-option=tag:googledns1,6,8.8.4.4,8.8.8.8
      dhcp-host=AB:CD:EF:88:77:66,set:googledns1


      On my wife's computer, the DNS servers are as shown above (8.8.4.4 and 8.8.8.8). But there's also the IPv6 entry which is my dhcp server.



      I tried this:



      dhcp-option=tag:googledns2,option6:dns-server,[2001:4860:4860::8888]
      dhcp-host=AB:CD:EF:88:77:66,set:googledns2


      But it didn't seem to make a difference. As a matter of fact, with only that option, or even with both sets in place, those customizations seem to be ignored (her DNS servers are set to my DHCP/DNS server for both IPv4 and IPv6). But the dnsmasq daemon does not show any errors or warnings.



      Any ideas? I have yet to find any discussion of this issue online. Thanks.







      dnsmasq





      share












      share










      share



      share










      asked 3 mins ago









      Mike S

      1,256722




      1,256722

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475934%2fdnsmasq-mac-address-based-responses-for-both-ipv4-and-ipv6%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475934%2fdnsmasq-mac-address-based-responses-for-both-ipv4-and-ipv6%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay