Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding FQDN on Darwin



> The real issue is what his ultimate aim is, since "the" FQDN is
> ill-defined.

Sure. How about *a* FQDN, or a list of all applicable FQDN's, or
"what the Python standard library function socket.getfqdn() returns",
or "what uname -n outputs", or...

For example, the ILU configuration script fqdn.sh first looks at the
output of "uname -n", then if that doesn't return a dotted name, tries
the output of "hostname", then tries "nslookup `uname -n`", then, if
all that fails, in desperation checks the banner message from the
local SMTP server.

Bill
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Finding FQDN on Darwin (From: Justin Walker <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.