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
/etc/dnsmasq.conf you would add:
To add the google DNS servers