I was able to solve my problem by putting only the hostname in /etc/hostname
(just 'snafu' instead of 'snafu.selfip.org'). hostfqdn() now returns the correct
domain.

A little googling revealed that there's no clear rule whether /etc/hostname 
should
contain only the short name or the FQDN, so I think perl should work with both,
especially as the other commands and languages also managed to return the right
FQDN.


Cheers,
Markus


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to