How to repair DNS

Kernels & Hardware, configuring network, installing services

Re: How to repair DNS

Postby fred44nl » 2020-07-12 08:07

p.H wrote:dhclient is a DHCP client, and as such, a DNS information provider.

yes, ok, but I don't have dhclient on my system anymore.
so where does my ip-adres through DHCP come from ??
does this happen in /etc/dhcp/dhclient-enter-hooks.d/resolvconf ??
Debian 10 - Buster on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 196
Joined: 2018-07-14 08:54

Re: How to repair DNS

Postby p.H » 2020-07-12 08:23

dhclient is not the only DNS information provider nor the only DHCP client.
Maybe /etc/network/interfaces{,.d/*}, dhcpcd (another DHCP client that seems to be used on your system).
p.H
 
Posts: 1422
Joined: 2017-09-17 07:12

[solved] Re: How to repair DNS

Postby fred44nl » 2020-07-12 08:27

p.H wrote:dhclient is not the only DNS information provider nor the only DHCP client.
Maybe /etc/network/interfaces{,.d/*}, dhcpcd (another DHCP client that seems to be used on your system).


I do have /sbin/dhcpcd

ok, thanks
Debian 10 - Buster on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 196
Joined: 2018-07-14 08:54

Re: How to repair DNS

Postby sickpig » 2020-07-12 11:11

fred44nl wrote:
sickpig wrote:check your /etc/dhcp/dhclient.conf, pi-hole doesn't seem to remove entries added by it


yes, yes, yes, thank you

I commented the added lines in /etc/dhcp/dhclient out.
also I commented the temporary lines in /etc/resolvconf/resolv.conf.d/tail out.
now my resolv.conf looks like this:
Code: Select all
fred44nl@Debian:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.1.1
search WORKGROUP
## nameserver 1.1.1.1
## nameserver 192.168.1.1
fred44nl@Debian:~$


and DNS is working.
I did have to reboot, as
Code: Select all
sudo resolvconf -u
was not good enough.
is this because previously (in Stretch) I used dhclient and now in Buster it is resolvconf ??


the default dhcp client in buster is still dhclient ref: https://wiki.debian.org/DHCP_Client.
pi-hole might have added the package resolvconf. Not needed though if you are using only dhcpcd to assign dns to /etc/resolv.conf. Just edit /etc/dhcpcd.conf to remove the entries added by pi-hole.
User avatar
sickpig
 
Posts: 412
Joined: 2019-01-23 10:34

Previous

Return to System configuration

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable