OpenWrt news, tools, tips and discussion. Related projects, such as DD-WRT, Tomato and OpenSAN, are also on-topic.
How to set Openwrt to use 1.1.1.1 DNS for example
I'm having trouble setting up one of the alternate DNS sources like 1.1.1.1 etc. Basic advise please. Thanks.
Sort by:
Best
Open comment sort options
Best
Top
New
Controversial
Old
Q&A
If you want OpenWrt to forward to 1.1.1.1, go to Luci > Network > Interfaces > wan > Advanced Settings > Use custom DNS servers.
If you want clients to receive IP 1.1.1.1 as DNS, go to Luci > Network > Interfaces > lan > DHCP Server > Advanced Settings > DHCP-Options >
6,1.1.1.1,1.0.0.1
.In new version openwrt : Luci > Network > Interfaces > wan > Advanced Settings ==>> Use DNS servers advertised by peer ==>> Use custom DNS servers
Hmm, not sure. Could you outline the difference so I can decide. Ta.
I understand all of this except the six and the comma. Why does the 1.1.1.1 need to have a prefix of 6, ?
If you want your connected clients to use a certain DNS server check the LAN interface and set "6,1.1.1.1" under advanced options for the DHCP server.
If you want the router itself to use the DNS, I think you need to set it in the options for the WAN interface.
In the wan interface's advanced setting deselect "Use DNS servers advertised by peer" and add your custom Dns addresses to "Use custom DNS servers".
This is an excerpt from my /etc/config/network:
Alternatively, look in Luci - Network - Interfaces - Wan - Advanced Settings - Use custom DNS servers