ADDR2NAME(1)

✨ addr2name(1) ✨ User's Manual πŸ’–

✨ NAME ✨

okay bestie, the names here are addr2name and name2addr, and they both do one job: perform DNS lookups from scripts πŸ’…πŸŒΈ

🌸 SYNOPSIS 🌸

addr2name [-46cmnr] [HOSTNAMES]

name2addr [-46cn] [HOSTNAMES]

πŸ’… DESCRIPTON πŸ’…

so this one writes the addresses or the canonical hostname of whatever names you give it to the standard output 🫢 if you don't pass any names on the command line, it just reads them from the standard input instead. no cap, super convenient for scripts ✨


πŸŽ€ OPTIONS πŸŽ€

  • -4, --ipv4 β€” only try IPv4 lookups 🌈
  • -6, --ipv6 β€” only try IPv6 lookups πŸ¦‹
  • -c, --config β€” only look up and print results for address families that match locally configured addresses. if the system has no IPv4 resp IPv6 address, then IPv4 resp IPv6 addresses are ignored 🧚
  • -h, --help β€” show some help and exit πŸ’–
  • -m, --multiple β€” normally, if a name yields multiple results, only the first one gets printed πŸ™ˆ with this option, all the results get printed on a single line, separated by spaces πŸ’œ
  • -n, --numeric β€” prevent the forward hostname lookup. this makes sure the input names are numeric addresses, which means they don't need looking up πŸ“ it's typically used along with --reverse to convert numerical addresses to canonical hostnames πŸ”₯
  • -r, --reverse β€” perform a reverse DNS lookup (this is enabled implicitly with addr2name) ✨ by default, addr2name prints numerical resolved addresses instead 🫢
  • --version β€” show the program version and license, then exit πŸ‘‘
the -n flag is a vibe check: it skips the forward lookup, so your input has to already be numeric addresses πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

host(1), getaddrinfo(3), getnameinfo(3), resolv.conf(5) 🌷

πŸ‘‘ AUTHOR πŸ‘‘

RΓ©mi Denis-Courmont <remi at remlab dot net> πŸ’œ

http://www.remlab.net/ndisc6/ 🌈


bye bestie, this page came from source addr2name with the date stamp $Date$ (unexpanded, lol) and the footer says ADDR2NAME(1) πŸŽ€βœ¨ stay hydrated and keep your DNS slay πŸ’–πŸ«Ά