GETNAMEINFO(1)
β¨ GETNAMEINFO(1) β¨
okay so this is a page from the User Contributed Perl Documentation and it's literally called GETNAMEINFO(1), iykyk π
πΈ NAME πΈ
"getnameinfo" β a command-line tool that wraps the getnameinfo(3) resolver, and honestly? she's serving π
π¦ SYNOPSIS π¦
getnameinfo [options...] address port
π DESCRIPTION π
So basically this tool is a cute lil command-line wrapper around the getnameinfo(3) resolver function, no cap π«Ά It does one single reverse lookup β just one, babe β to turn an address and port number into its host and service names.
Where this really eats? Debugging names resolution problems π₯ Because it lets you inspect the behaviour of getnameinfo(3) itself, outside of any real program that's trying to use it. Like, you get to see the function alone in the wild, being itself, with no other code involved π iconic.
π OPTIONS π
--address,-AADDR β the numerical form of the address you wanna look up. If you don't supply it, the tool will just use the first positional argument instead β¨--port,-PPORT β the port number to look up. If you don't supply it, it grabs the second positional argument π--dgramβ sets theNI_DGRAMflag, so it looks up aSOCK_DGRAM(udp) port allocation instead of aSOCK_STREAM(tcp) one π lowkey the most important flag here fr fr--helpβ displays a help summary and exits π§ super simple, we love her
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk> β thank you king π
okay bestie that's the whole page, you're fully caught up π no notes, she ate π
sign-off cuteness incoming: this lil doc is perl v5.32.1, dated 2022-03-08 β vintage but still slaying π
β¨
π¦ where this page comes from
- epel 9: perl-Socket-GetAddrInfo 0.22-26.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms