Use Domain Name Linux. Local hostname and the domain name of your server defined in text configuration file located in etc directory. Its main purpose is to uniquely identify over a network.
Enter a domain name followed by the nslookup command to verify the A record IP address of the domain. Both Linux UNIX comes with the following utilities to display hostname domain name. D nisdomainname show or set systems NISYP domain name.
Domainname command in Linux is used to return the Network Information System NIS domain name of the host.
1 How to Lookup a Domain A Record on Linux Using the nslookup Command. 1 How to Lookup a Domain A Record on Linux Using the nslookup Command. Local hostname and the domain name of your server defined in text configuration file located in etc directory. Keep in mind that in order to change etchostname file we require root privileges which can be get with the sudo command.