Re: [exim] Primary_hostname - returns short name

Startseite
Nachricht löschen
Nachricht beantworten
Autor: James C. McPherson
Datum:  
To: Always Learning, Exim
Betreff: Re: [exim] Primary_hostname - returns short name
On 2/01/15 02:03 PM, Always Learning wrote:
>
> On Thu, 2015-01-01 at 23:44 +0000, John Horne wrote:
>
>> It seems that the server returning just the short hostname had the
>> following entry in the '/etc/nsswitch.conf' file:
>>
>>    hosts:  files dns myhostname

>>
>> If I remove the 'myhostname' entry (which doesn't exist on the working
>> server), then Exim correctly resolves the servers FQDN.
>
> Thanks for that. I never knew about /etc/nsswitch.


http://www.tldp.org/LDP/nag2/x-087-2-resolv.library.html provides
a decent introduction to the name service switch (nsswitch) facility.

Or if you're using Solaris, man nsswitch.conf will show you.


James C. McPherson
--
Oracle
Systems / Solaris / Core
https://www.jmcpdotcom.com/blog