Skip to content

Instantly share code, notes, and snippets.

@danielchg
Last active August 24, 2025 00:08
Show Gist options
  • Select an option

  • Save danielchg/fe59f31496d7f1d210123c4d80324565 to your computer and use it in GitHub Desktop.

Select an option

Save danielchg/fe59f31496d7f1d210123c4d80324565 to your computer and use it in GitHub Desktop.
dnsmasq for dualstack
domain=my.domain.local
domain-needed
interface=ens1f0
bogus-priv
listen-address=192.168.1.1
expand-hosts
server=8.8.8.8
# DHCP IPv4
dhcp-range=ens1f0,192.168.1.100,192.168.1.200,24h
dhcp-option=ens1f0,option:netmask,255.255.255.0
dhcp-option=ens1f0,option:router,192.168.1.1
dhcp-option=ens1f0,option:dns-server,192.168.1.1
dhcp-option=ens1f0,option:domain-search,my.domain.local
dhcp-option=ens1f0,option:ntp-server,192.168.1.1
dhcp-option=ens1f0,option:classless-static-route,172.16.110.0/24,192.168.1.2
# DHCP IPv6
dhcp-range=ens1f0,fd02::100,fd02::200,64,24h
dhcp-option=option6:dns-server,[fd02::1]
enable-ra
dhcp-authoritative
strict-order
# IP reserved
dhcp-host=aa:bb:cc:dd:dd:ee,192.168.1.10,[fd02::10],host10.my.doamin.local
dhcp-host=aa:bb:cc:dd:dd:dd,192.168.1.11,[fd02::11],host11.my.doamin.local
# DNS entries
address=/www1.my.domain.local/192.168.1.10
address=/www1.my.domain.local/fd02::10
ptr-record=10.1.168.192.in-addr.arpa,master1.my.domain.local
address=/.apps.my.domain.local/192.168.1.10
address=/.apps.my.domain.local/fd02::10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment