I would like to serve custom DNS server to dhcp clients. How I can achieve that in openWrt?
Asked
Active
Viewed 2.5k times
2 Answers
14
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'
duenni
- 2,969
8
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
Reaces
- 5,627