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