Next: , Previous: , Up: GNU Inetutils   [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 name.example.org the command will show example.org. 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.

Synopsis:

dnsdomainname [option…]

There is no command specific option.