How can force sendmail to use local cache DNS Server

Dan Ritter dsr-mzpnVDyJpH4k7aNtvndDlA at public.gmane.org
Thu Jul 30 13:26:23 EDT 2009


On Thu, Jul 30, 2009 at 10:03:45AM -0700, Dave Peters wrote:
> 
> Hello all,
> 
> I have setup djbdns as a local cache DNS Server and sendmail mail server. They are in the same box and both are up and running. My question is how can I force sendmail to use.
> 
> Here is the /etc/resolv.conf
> nameserver 4.2.2.1
> nameserver 4.2.2.2

Well, I'm pretty sure that 4.2.2.1 is not your local IP. Start
your /etc/resolv.conf with 

nameserver 127.0.0.1

and make sure dnscache is serving that address (if you followed
the default instructions, it is).

dig @127.0.0.1 www.apple.com

ought to get good results.

Then sendmail may need to be restarted. 


-dsr-


-- 
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.

You can't defend freedom by getting rid of it.





More information about the Discuss mailing list