[plug] Smartlist/Exim and Westnet
Mark O'Shea
mark at musicalstoat.co.uk
Wed May 5 17:43:11 WST 2004
On Wed, 5 May 2004, Mark O'Shea wrote:
> Exim uses uname() first. If that doesn't come back with a FQDN then it
> uses the output of uname() with gethostbyname(), which (it would seem)
> checks /etc/hosts first. So it's the way that glibc does it. AFAIK most
> linux distros use the gnu libc. I can't check on my Irix machine at the
> moment how that does it. I left the machine in the UK with a mate,
> unfotunately he moved and is waiting for his ADSL to be connected.
>
> Regards,
>
Okay, scrap the bit about checking /etc/hosts first. I've just done a
test to satisfy myself and it looks more like gethostbyname() uses the
dns/files/nis etc in the order gives for hosts in the /etc/nsswitch file.
So if you have dns first and then files it will use that first.
More information about the plug
mailing list