1.9 KiB
dns
dynamic naming service that transforms IP addresses into human readable form. can be used to give server domain names (A-entry) or to giver domain names an alias (Cname-entry).
How To change the local resolving dns server
If the pc changes the network interface (e.g. when connecting/disconnecting from wireguard subet) the network manager checks for the corresponding dns server. The usual server responsible for that is the networking router (ftitzbox 192.168.178.1). In the case of an internal server running the local dns this is not the case, because the Fritzbox does not have the corresponding dns entries for the local network. To change this behaviour one could change the wireguard DNS Setting in /etc/wireguard/w1.conf for every peer that needs the new dns. If the dns should not be dependent on the wireguard connection ( relevance for cluster server in local networks) the resolve.conf file should be changed to the local dns server. For that you must:
alter the file
Change ther file to look for the local dnbs server. (root priv. needed (sudo)
sudo nano /etc/resolv.conf
To include the nameserver of your choice for example:
nameserver 127.0.0.1
If the Peer has its own nameserver running, or any other IP in the local network.
NOTE: The server has to deploy the dns server on port 53 for that to work and the client in question has to have acces to this server port.