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
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:
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option peerdns '0'
option dns '208.67.222.123 208.67.220.123'
Alternatively, look in Luci - Network - Interfaces - Wan - Advanced Settings - Use custom DNS servers
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
More replies
Hmm, not sure. Could you outline the difference so I can decide. Ta.
More replies
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, ?
More replies More replies
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