Next: , Previous: , Up: Top   [Contents][Index]

3 dnsdomainname: Show DNS domain name

dnsdomainname is a program to show the domain part of the system’s fully qualified domain name. For example, if the FQDN of the system is the command will show The output is not necessarily related to the NIS/YP domain name.

The tool uses gethostname to get the host name of the system and then getaddrinfo to resolve it into a canonical name. The domain part of the canonical name is shown, i.e., the part after the first period (.) of the official name.


dnsdomainname [option…]

There is no command specific option.