Configure dnsmasq as IPv6 nameserver but let router do routing (and maybe IP address assignment)
Suggestions welcome!
I'm moving DHCP and DNS services from a combined router (192.168.0.1) to a separate system (running on 192.168.0.2) with dnsmasq. I want the first system to be the default route and the second system to handle dns. How should I configure dnsmasq for this?
So far it works fine for IPv4 all system gets addresses and the correct name server. But when inspecting IPv6 settings in the terminal I see it is not using my internal DNS, but is using the IPv6 addresses of the ISP's DNS servers.
How should I configure so the IPv6 addresses are routed via the router and the name-server lookup is directed to my local name-server. The configuration options for v6 and examples I have found so far seem to only be suitable if both router and name-server are running the same machine.
Any suggestions pointing me in the right direction will be appreciated
Config:
$ grep -v '^#' <dnsmasq.conf |uniq
server=127.0.0.1#5053
bind-interfaces
dhcp-range=192.168.0.50,192.168.0.150,12h
dhcp-option=3,192.168.0.1
dhcp-option=42,0.0.0.0
version:
$ dnsmasq -v
Dnsmasq version 2.75 Copyright (c) 2000-2015 Simon Kelley
edit:
resolv.conf (but this is not where I see the IPv6 name-server - they can be seen in on an Android device on the network)
$ cat /etc/resolv.conf
# nameserver 1.1.1.1
nameserver 192.168.0.2
Open ports
$ sudo netstat -l -u -p -n
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 127.0.0.1:53 0.0.0.0:* 542/dnsmasq
udp 0 0 192.168.0.2:53 0.0.0.0:* 542/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 542/dnsmasq
udp 0 0 127.0.0.1:5053 0.0.0.0:* 603/cloudflared
udp6 0 0 ::1:53 :::* 542/dnsmasq
linux ubuntu router ipv6 dnsmasq
add a comment |
Suggestions welcome!
I'm moving DHCP and DNS services from a combined router (192.168.0.1) to a separate system (running on 192.168.0.2) with dnsmasq. I want the first system to be the default route and the second system to handle dns. How should I configure dnsmasq for this?
So far it works fine for IPv4 all system gets addresses and the correct name server. But when inspecting IPv6 settings in the terminal I see it is not using my internal DNS, but is using the IPv6 addresses of the ISP's DNS servers.
How should I configure so the IPv6 addresses are routed via the router and the name-server lookup is directed to my local name-server. The configuration options for v6 and examples I have found so far seem to only be suitable if both router and name-server are running the same machine.
Any suggestions pointing me in the right direction will be appreciated
Config:
$ grep -v '^#' <dnsmasq.conf |uniq
server=127.0.0.1#5053
bind-interfaces
dhcp-range=192.168.0.50,192.168.0.150,12h
dhcp-option=3,192.168.0.1
dhcp-option=42,0.0.0.0
version:
$ dnsmasq -v
Dnsmasq version 2.75 Copyright (c) 2000-2015 Simon Kelley
edit:
resolv.conf (but this is not where I see the IPv6 name-server - they can be seen in on an Android device on the network)
$ cat /etc/resolv.conf
# nameserver 1.1.1.1
nameserver 192.168.0.2
Open ports
$ sudo netstat -l -u -p -n
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 127.0.0.1:53 0.0.0.0:* 542/dnsmasq
udp 0 0 192.168.0.2:53 0.0.0.0:* 542/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 542/dnsmasq
udp 0 0 127.0.0.1:5053 0.0.0.0:* 603/cloudflared
udp6 0 0 ::1:53 :::* 542/dnsmasq
linux ubuntu router ipv6 dnsmasq
Questions: (1) Which Linux distribution? (2) Does this issue apply here? (3) Please add to the post the contents of/etc/resolv.conf
. (4) Aren't you missing "server=IPv6-address" indnsmasq.conf
?
– harrymc
Feb 27 at 6:56
1. The distribution is some xenisal (16.04.5 ?) for arm based distribution. 2 maybe - not sure what I am looking for 4 Yes but I only want to change the name server in the IPv6 case
– Simson
Feb 27 at 7:17
How could I write this system as server=ipv6addr ? It is not static as in IPv4 ? (Links or suggestions what keywords to google with would be appreciated)
– Simson
Feb 27 at 7:45
add a comment |
Suggestions welcome!
I'm moving DHCP and DNS services from a combined router (192.168.0.1) to a separate system (running on 192.168.0.2) with dnsmasq. I want the first system to be the default route and the second system to handle dns. How should I configure dnsmasq for this?
So far it works fine for IPv4 all system gets addresses and the correct name server. But when inspecting IPv6 settings in the terminal I see it is not using my internal DNS, but is using the IPv6 addresses of the ISP's DNS servers.
How should I configure so the IPv6 addresses are routed via the router and the name-server lookup is directed to my local name-server. The configuration options for v6 and examples I have found so far seem to only be suitable if both router and name-server are running the same machine.
Any suggestions pointing me in the right direction will be appreciated
Config:
$ grep -v '^#' <dnsmasq.conf |uniq
server=127.0.0.1#5053
bind-interfaces
dhcp-range=192.168.0.50,192.168.0.150,12h
dhcp-option=3,192.168.0.1
dhcp-option=42,0.0.0.0
version:
$ dnsmasq -v
Dnsmasq version 2.75 Copyright (c) 2000-2015 Simon Kelley
edit:
resolv.conf (but this is not where I see the IPv6 name-server - they can be seen in on an Android device on the network)
$ cat /etc/resolv.conf
# nameserver 1.1.1.1
nameserver 192.168.0.2
Open ports
$ sudo netstat -l -u -p -n
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 127.0.0.1:53 0.0.0.0:* 542/dnsmasq
udp 0 0 192.168.0.2:53 0.0.0.0:* 542/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 542/dnsmasq
udp 0 0 127.0.0.1:5053 0.0.0.0:* 603/cloudflared
udp6 0 0 ::1:53 :::* 542/dnsmasq
linux ubuntu router ipv6 dnsmasq
Suggestions welcome!
I'm moving DHCP and DNS services from a combined router (192.168.0.1) to a separate system (running on 192.168.0.2) with dnsmasq. I want the first system to be the default route and the second system to handle dns. How should I configure dnsmasq for this?
So far it works fine for IPv4 all system gets addresses and the correct name server. But when inspecting IPv6 settings in the terminal I see it is not using my internal DNS, but is using the IPv6 addresses of the ISP's DNS servers.
How should I configure so the IPv6 addresses are routed via the router and the name-server lookup is directed to my local name-server. The configuration options for v6 and examples I have found so far seem to only be suitable if both router and name-server are running the same machine.
Any suggestions pointing me in the right direction will be appreciated
Config:
$ grep -v '^#' <dnsmasq.conf |uniq
server=127.0.0.1#5053
bind-interfaces
dhcp-range=192.168.0.50,192.168.0.150,12h
dhcp-option=3,192.168.0.1
dhcp-option=42,0.0.0.0
version:
$ dnsmasq -v
Dnsmasq version 2.75 Copyright (c) 2000-2015 Simon Kelley
edit:
resolv.conf (but this is not where I see the IPv6 name-server - they can be seen in on an Android device on the network)
$ cat /etc/resolv.conf
# nameserver 1.1.1.1
nameserver 192.168.0.2
Open ports
$ sudo netstat -l -u -p -n
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 127.0.0.1:53 0.0.0.0:* 542/dnsmasq
udp 0 0 192.168.0.2:53 0.0.0.0:* 542/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 542/dnsmasq
udp 0 0 127.0.0.1:5053 0.0.0.0:* 603/cloudflared
udp6 0 0 ::1:53 :::* 542/dnsmasq
linux ubuntu router ipv6 dnsmasq
linux ubuntu router ipv6 dnsmasq
edited Mar 5 at 7:33
Simson
asked Feb 24 at 15:43
SimsonSimson
615
615
Questions: (1) Which Linux distribution? (2) Does this issue apply here? (3) Please add to the post the contents of/etc/resolv.conf
. (4) Aren't you missing "server=IPv6-address" indnsmasq.conf
?
– harrymc
Feb 27 at 6:56
1. The distribution is some xenisal (16.04.5 ?) for arm based distribution. 2 maybe - not sure what I am looking for 4 Yes but I only want to change the name server in the IPv6 case
– Simson
Feb 27 at 7:17
How could I write this system as server=ipv6addr ? It is not static as in IPv4 ? (Links or suggestions what keywords to google with would be appreciated)
– Simson
Feb 27 at 7:45
add a comment |
Questions: (1) Which Linux distribution? (2) Does this issue apply here? (3) Please add to the post the contents of/etc/resolv.conf
. (4) Aren't you missing "server=IPv6-address" indnsmasq.conf
?
– harrymc
Feb 27 at 6:56
1. The distribution is some xenisal (16.04.5 ?) for arm based distribution. 2 maybe - not sure what I am looking for 4 Yes but I only want to change the name server in the IPv6 case
– Simson
Feb 27 at 7:17
How could I write this system as server=ipv6addr ? It is not static as in IPv4 ? (Links or suggestions what keywords to google with would be appreciated)
– Simson
Feb 27 at 7:45
Questions: (1) Which Linux distribution? (2) Does this issue apply here? (3) Please add to the post the contents of
/etc/resolv.conf
. (4) Aren't you missing "server=IPv6-address" in dnsmasq.conf
?– harrymc
Feb 27 at 6:56
Questions: (1) Which Linux distribution? (2) Does this issue apply here? (3) Please add to the post the contents of
/etc/resolv.conf
. (4) Aren't you missing "server=IPv6-address" in dnsmasq.conf
?– harrymc
Feb 27 at 6:56
1. The distribution is some xenisal (16.04.5 ?) for arm based distribution. 2 maybe - not sure what I am looking for 4 Yes but I only want to change the name server in the IPv6 case
– Simson
Feb 27 at 7:17
1. The distribution is some xenisal (16.04.5 ?) for arm based distribution. 2 maybe - not sure what I am looking for 4 Yes but I only want to change the name server in the IPv6 case
– Simson
Feb 27 at 7:17
How could I write this system as server=ipv6addr ? It is not static as in IPv4 ? (Links or suggestions what keywords to google with would be appreciated)
– Simson
Feb 27 at 7:45
How could I write this system as server=ipv6addr ? It is not static as in IPv4 ? (Links or suggestions what keywords to google with would be appreciated)
– Simson
Feb 27 at 7:45
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409004%2fconfigure-dnsmasq-as-ipv6-nameserver-but-let-router-do-routing-and-maybe-ip-add%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409004%2fconfigure-dnsmasq-as-ipv6-nameserver-but-let-router-do-routing-and-maybe-ip-add%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Questions: (1) Which Linux distribution? (2) Does this issue apply here? (3) Please add to the post the contents of
/etc/resolv.conf
. (4) Aren't you missing "server=IPv6-address" indnsmasq.conf
?– harrymc
Feb 27 at 6:56
1. The distribution is some xenisal (16.04.5 ?) for arm based distribution. 2 maybe - not sure what I am looking for 4 Yes but I only want to change the name server in the IPv6 case
– Simson
Feb 27 at 7:17
How could I write this system as server=ipv6addr ? It is not static as in IPv4 ? (Links or suggestions what keywords to google with would be appreciated)
– Simson
Feb 27 at 7:45