Trying to understand DNS resolve process in a home lan behind a home gateway.
by chomwitt from LinuxQuestions.org on (#5CARN)
Happy new year to all.
Trying to install pihole in a home lan , i come to a point where
understanding the dns resolve procedure in each host is very important.
The questions that formulated in my mind :
1) Does the ADSL Gateway's DHCP Server DNS setting overrides every other dns related setting in all the other hosts? Or a program can if it wants use its own DNS server?
2) How dhcpcd , systemd.resolved , /etc/resolv.conf , network-manager
take part in tha dns resolv process? Do they clash? Do they cooperate ?
Giving some more details:
In my Debian 10 /KDE box, /etc/resolv.conf has a line saying is generated by network manager.
In my Ubuntu 18.04/Xfce (where pihole in installed) # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
In my Ubuntu 18.04/Xfce laptop it was saying the dhcpd is controlling resolv.conf but i change it and how it says systemd.resolved controls it.


Trying to install pihole in a home lan , i come to a point where
understanding the dns resolve procedure in each host is very important.
The questions that formulated in my mind :
1) Does the ADSL Gateway's DHCP Server DNS setting overrides every other dns related setting in all the other hosts? Or a program can if it wants use its own DNS server?
2) How dhcpcd , systemd.resolved , /etc/resolv.conf , network-manager
take part in tha dns resolv process? Do they clash? Do they cooperate ?
Giving some more details:
In my Debian 10 /KDE box, /etc/resolv.conf has a line saying is generated by network manager.
In my Ubuntu 18.04/Xfce (where pihole in installed) # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
In my Ubuntu 18.04/Xfce laptop it was saying the dhcpd is controlling resolv.conf but i change it and how it says systemd.resolved controls it.