I am facing a DNS issue. I have openwrt with a single LAN Interface on br-lan.
When the Interface IP addressing is set to DHCP client , the OpenWRT router can perform DNS queries to the DHCP assigned servers.
When a Static IP address is set on the LAN interface and manually setting the DNS servers Network> Interfaces > Edit > Advanced Settings > Use Custom DNS , router cannot perform any query to DNS servers. Seems that ignoring the set DNS servers.
config interface 'lan'
option proto 'static'
option device 'br-lan'
option ipaddr '192.168.x.x'
option netmask '255.255.255.0'
option gateway '192.168.x.x'
list dns '8.8.8.8'
The only workaround is to manually change the /etc/resolv.conf to point a DNS server other that the 127.0.0.1 , which file after any network change is overridden.
I have testing on multiple H/W with 24.10.1 with same behavior.
Any idea ? Is it a bug ?
No need to redact private IP addresses (RFC1918) , redacting those makes it difficult to give proper support.
The gateway must be the address of the next hop and not of the router otherwise it wont work
It can help if you show your configs, please connect to your OpenWRT device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button
Remember to redact keys, passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/dhcp
cat /etc/config/firewall
ip route show