title: How should I get the fully qualified domain name of "localhost" in c++ (on ubuntu)?
body: <p>I've been messing around with getaddrinfo and getnameinfo but the closest I got to useful output was "localhost.localdomain".  I'm not sure what to pass in for the "node" or "service" args of getaddrinfo, although I think it's the function I want.</p>