Skip to content

/etc/resolv.conf does not use DNS servers from DHCP. #235

@IguanaBob

Description

@IguanaBob

I noticed while trying to improve network documentation that /etc/resolv.conf is not populated by the DNS servers advertised by DHCP.

View that the DHCP lease does have the DNS server info:

cat /useremain/home/rinkhals/dhcp.lease
DHCP-Lease received or renewed
Interface: wlan0
IP-Adresse: 192.168.21.21
Subnetzmaske: 255.255.255.0
Gateway: 192.168.21.1
DNS-Server: 192.168.21.1 192.168.21.1
NTP-Server: 192.168.21.1 192.168.21.1

But it is not used by /etc/resolv.conf

# wlan0
nameserver 192.168.21.1 # wlan0
nameserver 192.168.21.1 # wlan0

Nor is it used on a dig:

# nslookup google.com
Server:		1.1.1.1
Address:	1.1.1.1:53

Non-authoritative answer:
Name:	google.com
Address: 142.251.116.102
Name:	google.com
Address: 142.251.116.100
Name:	google.com
Address: 142.251.116.101
Name:	google.com
Address: 142.251.116.138
Name:	google.com
Address: 142.251.116.139
Name:	google.com
Address: 142.251.116.113

Likely this is a bug in the stock firmware, but maybe Rinkhals can fix it. I may be able to fix it, but putting the issue here in case I don't have time to get to it.

Thanks again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions