---
name: "inetutils-dnsdomainname"
section: "1"
platform: "linux"
package: "inetutils-tools"
version: "2:2.6-3+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/inetutils-dnsdomainname"
---

# inetutils-dnsdomainname(1)

show DNS domain name

## NAME

**dnsdomainname** – show DNS domain name

## SYNOPSIS

**dnsdomainname** \[*option* *...*\]

## DESCRIPTION

Show the domain part of the system's fully qualified host name.

The tool uses [gethostname(2)](/gethostname/2.md) to get the host name of the system and getaddrinfo(2) to resolve it into a canonical name. The part after the first period (‘.’) of the canonical name is shown.

## OPTIONS

- ?, **--help**

  Give this help list.

- **--usage**

  Give a short usage message.

- **-V**, **--version**

  Print program version.

## SEE ALSO

[gethostname(2)](/gethostname/2.md), [getaddrinfo(3)](/getaddrinfo/3.md)
