On 04/09/2013 10:14 AM, Mark Morgan Lloyd wrote: > > It might be notable that Debian doesn't volunteer a domain name unless > it's able to contact DNS. I'll get onto nslookup, or just use temporary > text (it's only salt for a password hash, and is stored). >
One of the problems with uname is that the kernel doesn't have a clue on how you are connected to the network. Your computer could have 10 network names if it had 10 addresses (not even 10 NIC's required). Looking up the IP you want the domain name for in a DNS is the only reliable way. And it is portable. Ludo _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal