Debian Codegraph @

upstream/debian-unstable/man1/inetutils-dnsdomainname.1

raw
1 .\" Copyright © 2015 Free Software Foundation, Inc.
2 .\" License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
3 .\"
4 .\" This is free software: you are free to change and redistribute it.
5 .\" There is NO WARRANTY, to the extent permitted by law.
6 .Dd February 1, 2019
7 .Dt dnsdomainname 1 URM
8 .Os "GNU Network Utilities"
9 .Sh NAME
10 .Nm dnsdomainname
11 .Nd show DNS domain name
12 .Sh SYNOPSIS
13 .Nm dnsdomainname
14 .Op Ar option ...
15 .Sh DESCRIPTION
16 Show the domain part of the system's fully qualified host name.
17 .Pp
18 The tool uses
19 .Xr gethostname 2
20 to get the host name of the system and
21 .Xr getaddrinfo 2
22 to resolve it into a canonical name.
23 The part after the first period
24 .Pq Sq \&.
25 of the canonical name is shown.
26 .Sh OPTIONS
27 .Bl -tag -width Ds
28 .It Fl ? , -help
29 Give this help list.
30 .It Fl -usage
31 Give a short usage message.
32 .It Fl V , -version
33 Print program version.
34 .El
35 .Sh SEE ALSO
36 .Xr gethostname 2 ,
37 .Xr getaddrinfo 3