I just updated my TP-Link Archer C7 AC1750 v2 from 19.07.8 (ar71xx) to 21.02.0 (ath79). Everything seems to have updated fine, except computers in the LAN can't seem to use the OpenWrt DNS. I can ping 8.8.8.8
fine, but not google.com
. If I connect with a VPN, I can ping google.com
I've tested ssh-ing into the router, and I can ping google.com
fine from there. The OpenWrt GUI overview shows my ISP's DNS servers correctly. I also tried manually setting the LAN DNS to 8.8.8.8
, but that didn't help.
/etc/config/dhcp
config dnsmasq
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option nonwildcard '0'
option domainneeded '1'
option localservice '1'
option authoritative '1'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option dhcpv6 'server'
option ra 'server'
option leasetime '500h'
option ra_management '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
list ra_flags 'none'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
config host
option ip '192.168.1.81'
option name 'system-home'
option mac '<redacted>'
config host
option ip '192.168.1.91'
option mac '<redacted>'
option name 'alarmpi'
option dns '1'
config host
......
......
I'm not entirely sure why some host
s have option dns '1'
, but regardless, both permutations fail.
/etc/config/network
config interface 'loopback'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
option device 'lo'
config globals 'globals'
option ula_prefix 'fd48:cb6b:f30d::/48'
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.1.100'
option device 'br-lan'
list dns '119.40.106.35'
list dns '119.40.106.36'
config interface 'wan'
option proto 'dhcp'
option device 'eth0'
option type 'bridge'
config interface 'wan6'
option auto '0'
option proto 'dhcp'
option device 'eth0'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 2 3 4 5'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '1 6'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth1'
How can I connect to the OpenWRT DNS from my LAN?