No DNS requests possible all of a sudden, DHCP dead

No DNS requests possible, DHCP dead. Who can help?

uci show network; uci show dhcp; \

ip address show; ip route show; ip rule show

network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd5d:b7e8:09ab::/48'
network.atm=atm-bridge
network.atm.vci='34'
network.atm.encaps='llc'
network.atm.payload='bridged'
network.atm.nameprefix='dsl'
network.atm.vpi='1'
network.dsl=dsl
network.dsl.xfer_mode='ptm'
network.dsl.ds_snr_offset='0'
network.dsl.annex='b'
network.dsl.firmware='/lib/firmware/VDSL.bin'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth0.1'
network.lan.proto='static'
network.lan.ipaddr='192.168.178.1'
network.lan.netmask='255.255.255.0'
network.lan_dev=device
network.lan_dev.name='eth0.1'
network.lan_dev.macaddr='54:64:d9:09:8c:84'
network.wan=interface
network.wan.ifname='dsl0.7'
network.wan.proto='pppoe'
network.wan.username='XXXXXX'
network.wan.password='XXXXXX'
network.wan.ipv6='0'
network.wan_dev=device
network.wan_dev.name='dsl0'
network.wan_dev.macaddr='XXXXXXX'
network.wan6=interface
network.wan6.ifname='@wan'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].vid='1'
network.@switch_vlan[0].ports='0 1 2 4 5 6t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].vid='2'
network.@switch_vlan[1].ports='6t'
network.gast=interface
network.gast.proto='static'
network.gast.ipaddr='192.168.199.1'
network.gast.netmask='255.255.255.0'
network.vpn=interface
network.vpn.proto='wireguard'
network.vpn.private_key='XXXXXXX'
network.vpn.listen_port='51820'
network.vpn.addresses='192.168.9.1/24' 'fdf1:e8a1:8d3f:9::1/64'
network.wgclient=wireguard_vpn
network.wgclient.public_key='XXXXXXX'
network.wgclient.preshared_key='XXXXXXXXX'
network.wgclient.allowed_ips='192.168.9.2/32' 'fdf1:e8a1:8d3f:9::2/128'
network.wgclient.description='BastiLaptop'
network.@wireguard_vpn[1]=wireguard_vpn
network.@wireguard_vpn[1].allowed_ips='192.168.9.3/32'
network.@wireguard_vpn[1].public_key='XXXXXXXX'
network.@wireguard_vpn[1].description='Basti Handy'
network.@wireguard_vpn[1].preshared_key='XXXXXXXXX'
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='0'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.auto'
dhcp.@dnsmasq[0].serversfile='/tmp/adb_list.overall'
dhcp.@dnsmasq[0].confdir='/tmp/dnsmasq.d'
dhcp.@dnsmasq[0].localservice='0'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='24h'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
dhcp.@host[0]=host
dhcp.@host[0].name='Brother'
dhcp.@host[0].dns='1'
dhcp.@host[0].mac='3C:2A:F4:57:D6:DA'
dhcp.@host[0].ip='192.168.178.133'
dhcp.@host[1]=host

.....

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether a6:4f:1c:4c:0d:40 brd ff:ff:ff:ff:ff:ff
inet6 fe80::a44f:1cff:fe4c:d40/64 scope link
valid_lft forever preferred_lft forever
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 54:64:d9:09:8c:84 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.1/24 brd 192.168.178.255 scope global br-lan
valid_lft forever preferred_lft forever
inet6 fe80::5664:d9ff:fe09:8c84/64 scope link
valid_lft forever preferred_lft forever
6: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
link/ether 54:64:d9:09:8c:84 brd ff:ff:ff:ff:ff:ff
7: vpn: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 192.168.9.1/24 brd 192.168.9.255 scope global vpn
valid_lft forever preferred_lft forever
inet6 fdf1:e8a1:8d3f:9::1/64 scope global
valid_lft forever preferred_lft forever
8: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
link/ether 54:64:d9:09:8c:86 brd ff:ff:ff:ff:ff:ff
inet6 fe80::5664:d9ff:fe09:8c86/64 scope link
valid_lft forever preferred_lft forever
9: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default qlen 1000
link/ether 54:64:d9:09:8c:87 brd ff:ff:ff:ff:ff:ff
inet6 fe80::5664:d9ff:fe09:8c87/64 scope link
valid_lft forever preferred_lft forever
10: dsl0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 54:64:d9:09:8c:85 brd ff:ff:ff:ff:ff:ff
inet6 fe80::5664:d9ff:fe09:8c85/64 scope link
valid_lft forever preferred_lft forever
11: dsl0.7@dsl0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 54:64:d9:09:8c:85 brd ff:ff:ff:ff:ff:ff
12: pppoe-wan: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc fq_codel state UNKNOWN group default qlen 3
link/ppp
inet 77.181.31.142 peer 62.52.201.194/32 scope global pppoe-wan
valid_lft forever preferred_lft forever
default via 62.52.201.194 dev pppoe-wan proto static
62.52.201.194 dev pppoe-wan proto kernel scope link src 77.181.31.142
192.168.9.0/24 dev vpn proto kernel scope link src 192.168.9.1
192.168.178.0/24 dev br-lan proto kernel scope link src 192.168.178.1
0: from all lookup local
32766: from all lookup main
32767: from all lookup default

Please use the "Preformatted text </>" button for logs, scripts, configs and general console output.
grafik
Please edit your post accordingly. Thank you! :slight_smile:

2 Likes

Post the output to pastebin.com:

ubus call system board; opkg list-installed dnsmasq\*; \
/etc/init.d/log restart; /etc/init.d/dnsmasq restart; sleep 5; \
head -v -n -0 /etc/resolv.* /tmp/resolv.* /tmp/resolv.*/*; \
nslookup openwrt.org 127.0.0.1; nslookup openwrt.org 8.8.8.8; \
logread -e dnsmasq; netstat -l -n -p | grep -e dnsmasq; pgrep -f -a dnsmasq

Thanks. In the meantime I reset the router and uploaded a 1 month old settings file. With that DHCP works again and I can reach websites on the internet.
What still doesn't work is pinging other machines on the local net.

Pinging another client on the local net from my openwrt router:

PING sf8008 (192.168.178.195): 56 data bytes
64 bytes from 192.168.178.195: seq=0 ttl=64 time=1.226 ms
^C
--- sf8008 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 1.226/1.226/1.226 ms
root@bthub:~# exit
Connection to 192.168.178.1 closed.

Pinging the same device from local windows box=> cannot see it

C:\Windows\system32>ping sf8008
Ping-Anforderung konnte Host "sf8008" nicht finden. Überprüfen Sie den Namen, und versuchen Sie es erneut.

Here are the logs you requested:

1 Like

Ok, it seems to be a local DNS issue. If I ping the box (sf8008) from my windows machine by using it's IP address I can do so but using it's name, it's not possible.

1 Like

Check from the client:

nslookup sf8008
nslookup sf8008 192.168.178.1
nslookup sf8008.lan
nslookup sf8008.lan 192.168.178.1

Hahahaha, I have to laugh.
You know what they say about Windows.
Linux: Be root, Windows: Reboot.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.