dnsdomainname(1)

πŸ“¦
version 2.8 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ dnsdomainname β€” show DNS domain name ✨

okay bestie, so you know how you're like "who even am I on this network" β€” this little icon answers that. it's the dnsdomainname page from the User's Reference Manual πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

dnsdomainname [option ...]

🌸 DESCRIPTION 🌸

She shows you the domain part of the system's fully qualified host name. that's it. that's the whole job. and she does it flawlessly, no cap πŸ’…

here's the tea on how she does it:

  • she calls gethostname(2) to grab the host name of the system
  • then she calls getaddrinfo(2) to resolve that into a canonical name
  • then she shows you the part after the first period ('.') of that canonical name

so like. everything past the first dot. periodt. πŸŽ€


πŸ‘‘ OPTIONS πŸ‘‘

  • -?, --help β€” gives you this help list. your girl is helpful fr fr 🫢
  • --usage β€” gives you a short usage message. short & sweet, lowkey iconic 🌈
  • -V, --version β€” prints the program version. main character energy πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page bestie, go forth and domain-name πŸ’–βœ¨

laterrr πŸŽ€ this one's from the GNU Network Utilities, dated February 1, 2019 β€” love that for her, an absolute vintage queen πŸ‘‘

πŸ“¦ where this page comes from