DNS stopped working, wrong system time

Hi, I am looking for some help because I don't have much hair left to pull out anymore.

I installed OpenWRT 23.05, with LuCI on Redmi AX6000. Installation was successfull.
The ISP internet comes into my TP-Link. As a test I connected the TP-Link LAN port into Redmi OpenWRT WAN port. Into Redmi's LAN I plugged in my laptop. I configured wireless network, some fancy things with LEDs. Everything was working fine. I went out for an hour or two, I came back and DNS is not working on my laptop at all. I can ping website via IP but by no means I can access sites via domain. I tried tweaking dnsmasq, /etc/resolv.conf, but nothing seems to help.

cat /etc/config/network

config interface 'loopback'
            option device 'lo'
            option proto 'static'
            option ipaddr '127.0.0.1'
            option netmask '255.0.0.0'

config globals 'globals'
            option ula_prefix 'fd4d:104a:148::/48'

config device
            option name 'br-lan'
            option type 'bridge'
            list ports 'lan2'
            list ports 'lan3'
            list ports 'lan4'

config interface 'lan'
            option device 'br-lan'
            option proto 'static'
            option ipaddr '192.168.1.2'
            option netmask '255.255.255.0'
            option ip6assign '60'

config device
            option name 'br-lan'
            option macaddr '60:c6:28:a1:16:5f'

config interface 'wan'
            option device 'wan'
            option proto 'dhcp'

config interface 'wan6'
            option device 'wan'
            option proto 'dhcpv6'

cat /etc/resolv.conf

search lan
nameserver 127.0.0.1
nameserver ::1

In the systemlog I can see something like:

daemon.warn dnsmasq[1]: Maximum number of concurrent DNS queries reached (max: 150)

Please treat me like total newbie - I have very basic idea of what DNS is and how to create files under Unix but that's all.

And the time problem - the time is all the way wrong despite correct timezone and trying NTC servers like 0.openwrt.pool.ntp.org or pl.pool.ntp.org, only choosing 'Sync with browser' seems to set the right time.

Do you have any suggestions?

Your TP-Link doesn't by any chance use the same LAN subnet as your Redmi?

1 Like

The quick overview of the TP-Link:

Status:
Connected
Internet Connection Type:
Dynamic IP
IP Address:
10.50.41.211
Subnet Mask:
255.255.255.0
Default Gateway:
x.x.x.x
Primary DNS:
193.105.32.42
Secondary DNS:
193.105.32.66
LAN
MAC Address:
9C-A2-F4-67-1F-74
IP Address:
192.168.1.1
Subnet Mask:
255.255.255.0
DHCP Server
DHCP Server:
Enabled
IP Address Pool:
192.168.1.100-192.168.1.249
Dynamic DNS
Service Provider:
TP-Link

So it does, that's why it isn't working...

Change the Redmi's LAN IP to 192.168.2.1.

Well, I am at 192.168.1.2 and it is working right now - I went into Network->Interfaces->wan, disabled the 'Use DNS servers advertised by peer' and manually set the DNS's that I can see on my TP-Link page. It also resolved the problem with time discrepancy after rebooting.

Let's now steer the discussion here please:

  • I was connected via corporate VPN before the problems started - may it be the reason why the DNS worked without issues then?
  • Can somehow my TP-Link advertise the DNS servers so my Redmi can get it automatically?
  • Do I have to change my Redmi to 192.168.2.1?

No
We don't know
Depends on the use case for the Redmi.

1 Like

Well, fortunately I got it working, I'll explore the subnet issue that you raised and try more configuration (eg. replacing the TP-Link). Thanks for the input!