.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.1. .TH DNSDOMAINNAME "1" "December 2023" "GNU inetutils 2.5" "User Commands" .SH NAME dnsdomainname \- show DNS domain name .SH SYNOPSIS .B dnsdomainname [\fI\,OPTION\/\fR...] .SH DESCRIPTION Show domain part of the system's fully qualified host name. .PP The tool uses gethostname to get the host name of the system and getaddrinfo to resolve it into a canonical name. The part after the first period ('.') of the canonical name is shown. .TP \-?, \fB\-\-help\fR give this help list .TP \fB\-\-usage\fR give a short usage message .TP \fB\-V\fR, \fB\-\-version\fR print program version .SH AUTHOR Written by Simon Josefsson. .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT Copyright \(co 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH "SEE ALSO" gethostname(2), getaddrinfo(3) .PP The full documentation for .B dnsdomainname is maintained as a Texinfo manual. If the .B info and .B dnsdomainname programs are properly installed at your site, the command .IP .B info dnsdomainname .PP should give you access to the complete manual.