#StackBounty: #networking #router #dhcp #ipv6 #dnsmasq Configure dnsmasq as IPv6 nameserver but let router do the address assignment

Bounty: 100

(Moved this question from ServerFault as I was told it was more suitable here)

I’m moving DHCP and DNS services from my home router (192.168.0.1) to a separate system (running on 192.168.0.2) with dnsmasq.

So far it works fine for IPv4 all system gets addresses and the correct name server. But when inspecting IPv6 settings it the terminal 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


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.