What Is My Domain Name Linux. A slave DNS server which relies on a master DNS server for data. A hostname is a name which is given to a computer and it attached to the network.
I connect to my modemrouter Thomson TG585 v7 Router to access the internet. If hostname command will display your hostname then dnsndomainname command will show your domain name. Another way is to use the following grep command.
Hostname command in Linux is used to obtain the DNSDomain Name System name and set the systems hostname or NISNetwork Information System domain name.
Add below line in etcsysconfignetwork. Lets see the sample. Nameserver is the DNS server to which your machine query for name resolutions. In this way DNS alleviates the need to remember IP addresses.