[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim, local resolver, host name lookups and IPv6



On Fri, Apr 11, 2008 at 04:50:17PM +0200, Mike Hommey wrote:

> Host name can be returned by gethostname(2), for example, and you can
> add the result from getdomainname(2) for an FQDN.

Those syscalls has _nothing_ to do with DNS so they can not be used to
form FQDNs. gethostname() is sadly often misused and that usually causes
trouble on multi-homed machines. getdomainname() returns the NIS domain
that does not neccessarily match _anything_ in DNS.

Gabor

-- 
     ---------------------------------------------------------
     MTA SZTAKI Computer and Automation Research Institute
                Hungarian Academy of Sciences
     ---------------------------------------------------------


Reply to: