DNSmasq - MAC address-based responses for both IPV4 and IPv6
Clash 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.
dnsmasq
add a comment |Â
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.
dnsmasq
add a comment |Â
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.
dnsmasq
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
dnsmasq
asked 3 mins ago
Mike S
1,256722
1,256722
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password