hello, i have managed to install dietpi with pihole unbound gravity-sync wireguard openssh on two raspberry pi 4. everything through dietpi-software except gravity sync, it has been done quite easy, good job. But I have a doubt, comparing configurations of the two raspberry pi, I have seen that /etc/resolv.conf is different in the two. in the primary:
nameserver 192.168.1.38
Which is the ip of the primary raspeberry . And in the second one it appears:
nameserver 192.168.1.38 nameserver 192.168.1.45
Which is the address of the first raspberry and the second in this order. I do not know if this is right, and if not why they are different? should not they be the same? I’m quite novice in these things sorry
Thanks in advance.
Edit: Apparently everything is working fine, both piholes are working, I have no dns browsing problems, the unbound tests answer what they should answer, wireguard and gravity are working too. just FYI.
I think this is fine.
Primary device uses itself for DNS, if the device crashes there is no point in defining a second entry.
And the second device uses the first entry in resolv.conf, if this domain/ times out it will use the next entry, which is in this case itself again.
Basically, the configuration of /etc/resolv.conf has nothing to do with one of the installed software titles. Our software install script will also not make any changes to the settings in /etc/resolv.conf. The entries in /etc/resolv.conf are rather the basic configuration of the IP address stack and whether DHCP or STATIC IP is used. With DHCP, the value is set by the DHCP server. Whereas with STATIC IP, the user makes the settings himself in the corresponding network configuration options.