manpagez: man pages & more
info inetutils
Home | html | info | man

File: inetutils.info,  Node: dnsdomainname invocation,  Next: hostname invocation,  Prev: Common options,  Up: Top

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.
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.