site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Mike Richmond Global Graphics Software Ltd _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I am trying to get an unqualified name for the local host. To do this I loop over the addresses returned by getifaddrs(), select the first AF_INET, running, non-loopback address and call getnameinfo() with the NI_NAMEREQD and NI_NOFQDN flag set. I'm expecting the host name returned by getnameinfo() to be unqualified, but I am getting a fully qualified name as if NI_NOFQDN had not been set. I see this on 10.3.9 and 10.4.2. I've looked at the source at <http://www.opensource.apple.com/darwinsource/10.4.2/bind9-11/bind9/lib/lwres/getnameinfo.c> and that does take notice of the NI_NOFQDN flag. Am I looking at the right code? Am I mis-understanding what the NI_NOFQDN flag does? This email sent to site_archiver@lists.apple.com
participants (1)
-
Mike Richmond