How to serve custom dns to dhcp clients in openWrt? [closed]
I would like to serve custom DNS server to dhcp clients. How I can achieve that in openWrt?
DNS server adress corresponds to DHCP option 006.
According to the OpenWRT Wiki your /etc/config/dhcp
should look like
config 'dhcp' 'lan'
...
list 'dhcp_option' '6,yourDNSIP'
If you have dnsmasq enabled you need to use DHCP-option 6
So in /etc/dnsmasq.conf
you would add:
dhcp-option=6,8.8.8.8,8.8.4.4
To add the google DNS servers