Hello, I'm using OpenWRT for the first time.
|Model|SIM SIMAX1800T|
|Architecture|MediaTek MT7621 ver:1 eco:3|
|Target Platform|ramips/mt7621|
|Firmware Version|OpenWrt 24.10.0 r28427-6df0e3d02a / LuCI openwrt-24.10 branch 25.168.50434~d6b13f6|
|Kernel Version|6.6.73|
But I'm having a problem with DNS.
The router keeps communicating with 127.0.0.1
I changed it, I made a link but it always comes back.
Demo >
nameserver 1.1.1.1
nameserver 8.8.8.8
root@OpenWRT:~# cat /tmp/resolv.conf
nameserver 1.1.1.1
nameserver 8.8.8.8
root@OpenWRT:~# ping google.com
PING google.com (2800:3f0:4004:80d::200e): 56 data bytes
64 bytes from 2800:3f0:4004:80d::200e: seq=0 ttl=117 time=11.778 ms
64 bytes from 2800:3f0:4004:80d::200e: seq=1 ttl=117 time=11.918 ms
64 bytes from 2800:3f0:4004:80d::200e: seq=2 ttl=117 time=10.687 ms
64 bytes from 2800:3f0:4004:80d::200e: seq=3 ttl=117 time=10.820 ms
64 bytes from 2800:3f0:4004:80d::200e: seq=4 ttl=117 time=11.093 ms
64 bytes from 2800:3f0:4004:80d::200e: seq=5 ttl=117 time=10.757 ms
64 bytes from 2800:3f0:4004:80d::200e: seq=6 ttl=117 time=10.827 ms
^C
--- google.com ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max = 10.687/11.125/11.918 ms
root@OpenWRT:~# /etc/init.d/dnsmasq restart
udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: no lease, failing
udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: no lease, failing
udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: no lease, failing
root@OpenWRT:~# cat /tmp/resolv.conf
search lan
nameserver 127.0.0.1
nameserver ::1
root@OpenWRT:~# ping google.com
^C
root@OpenWRT:~# cat /tmp/resolv.conf.auto
nameserver 1.1.1.1
nameserver 8.8.8.8
root@OpenWRT:~# ls -lha /tmp/
drwxrwxrwt 18 root root 520 Jun 23 10:09 .
drwxr-xr-x 1 root root 608 Feb 3 20:09 ..
drwx------ 2 root root 200 Feb 3 20:09 .uci
---------- 1 root root 0 Jun 23 10:09 .ujailnoafile
-rw-r--r-- 1 root root 7 Jun 23 00:12 TZ
-rw-r--r-- 1 root root 285 Dec 31 1969 board.json
-rw-r--r-- 1 root root 675 Jun 23 10:08 dhcp.leases
drwxr-xr-x 2 root root 40 Feb 3 20:09 dnsmasq.cfg01411c.d
drwxr-xr-x 3 root root 80 Jun 23 10:09 etc
drwxr-xr-x 2 root root 80 Jun 23 10:09 hosts
drwxr-xr-x 5 root root 100 Jun 23 00:07 lib
drwxrwxrwt 2 root root 460 Jun 23 10:04 lock
drwxr-xr-x 2 root root 80 Feb 3 20:09 log
-rw------- 1 root root 10.3K Jun 22 23:53 luci-indexcache.e744c87f.json
drwxr-xr-x 2 root root 320 Jun 23 10:04 opkg-lists
drwxr-xr-x 2 root root 40 Dec 31 1969 overlay
-rw-r--r-- 1 root root 47 Jun 23 10:09 resolv.conf
-rw-r--r-- 1 root root 38 Jun 23 09:51 resolv.conf.auto
drwxr-xr-x 2 root root 60 Jun 23 10:08 resolv.conf.d
-rw-r--r-- 1 root root 50 Jun 23 10:01 resolv.conf.ppp
drwxr-xr-x 9 root root 640 Jun 23 10:09 run
drwxrwxrwt 2 root root 40 Jun 23 10:01 shm
drwxr-xr-x 2 root root 80 Jun 22 21:21 state
drwxr-xr-x 2 root root 80 Dec 31 1969 sysinfo
drwxr-xr-x 2 root root 40 Feb 3 20:09 tmp
drwxr-xr-x 3 root root 60 Jun 22 21:26 usr
root@OpenWRT:~# ping google.com
ping: bad address 'google.com'
root@OpenWRT:~# cat /tmp/resolv.conf
search lan
nameserver 127.0.0.1
nameserver ::1
root@OpenWRT:~# ls -lha /tmp/resolv.conf
-rw-r--r-- 1 root root 47 Jun 23 10:09 /tmp/resolv.conf