It's probably worth noting that, even if uname() returns a hostname that contains a '.', that may not be the correct FQDN (for example, it might give you something lame like spiffyname.localdomain). The code I suggested should, in most instances, produce a correct FQDN even where the OS vendor (or the user) is partially brain-damaged, if such a thing is possible (i.e. if the IP address of the machine can be resolved to a real FQDN, using the system's configured host resolution scheme). -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
Description: PGP signature