20 Debian Domain Name Setup Update

Nis nis or ldap servers are other possible sources.
Debian domain name setup. Henceforth you will not face any issues concerning name resolution on your system. To set the hostname to server1 run. You can use apt command to install bind9 package.
Save the changes and restart the resolvconf service or reboot the system. We will walk you through steps that need to be taken to the setup domain name on your linux server. When you use redhat base systems linux uses etc sysconfig network file and you should set variable hostname to fqdn when you use fqdn linux itself determines domain name.
The entry that involves host name resolution is hosts by default it contains files dns which means that the system consults the etc hosts file first then dns servers. If installed it is a symbolic link. Sudo apt get install y bind9 bind9utils bind9 doc dnsutils.
Vi etc hosts verify it by running the hostnamectl command again. First of all check if your server is having domain name already set up or not using below command. For a system with a permanent ip address and a fully qualified domain name fqdn provided by the domain name system dns that canonical host name domain name should be used instead of just host name.
It is recommended to use a fully qualified domain name fqdn as the system hostname. There are two steps involved when changing the system hostname on debian 10. The hostname in debian is set by a combination of files.
My workstation is called agamemnon which is also the content of etc hostname. Login to your server. Sudo systemctl start resolvconf service now when you check the etc resolv conf file the name server entries should be stored there permanently.