Subject: Re: bin/12876: NetBSD's INET6 patches to Postfix break non-INET6 features!
To: None <gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 05/08/2001 23:42:28
>> 	then, you at least need to check if the machine is running NIS or not,
>> 	and suppress getdomainname() case if NIS is running.  IMHO.
>
>No, not really.  Half the time the NIS domain is the same as the DNS
>domain, and the rest of the time you have to set $mydomain anyway so
>it's never a loss (the $mydomain setting overrides in all cases).

the nis domain name is stored, for nis purposes, by setdomainname().

a host's domain name, for dns purposes, is usually stored in
/etc/resolv.conf.

a host's domain for mail purposes is usually the dns domain name,
unless overriden in whatever configuration files your mua/mta reads.

a host's kerberos realm is stored in yet another file.

most things fall back to dns (for mx records, or srv records, etc)
unless told otherwise.  no one falls back on nis.

fwiw - i have no idea why nis gets kernel help for its dirty work.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."