Skip to main content

DHCP and DNS Cache

I already setup dnsmasq for IPv4 and so there is very little that needs to be done to add IPv6 support.

I just needed to add dhcp-range lines for each subnet. I am tagging them the same as before. I'm also telling dnsmasq to look at each interface to get the prefix delegatd for this subnet and tell clients to use SLAAC to configure their addresses.

# /etc/dnsmasq.d/dhcp.conf
+ dhcp-range=set:lan,::,constructor:eth1,ra-stateless,12h
+ dhcp-range=set:dmz,::,constructor:eth1.8,ra-stateless,12h
+ dhcp-range=set:warp,::,constructor:eth1.9,ra-stateless,5m

Then just enable router advertisements so dnsmasq will broadcast information to any potential clients on the subnet.

# /etc/dnsmasq.d/router-advertisements.conf
+ enable-ra