I found this in dhclient.conf:

#prepend domain-name-servers 127.0.0.1;

I uncommented it, then restarted my ethernet interface and now
resolv.conf looks like this:

$ cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 10.18.11.68
nameserver 10.18.11.69

and my cache hits are going up.

On 1/18/07, Christian Hofstädtler <[EMAIL PROTECTED]> wrote:

--On 18/1/2007 12:38 -0500 Gerald Britton <[EMAIL PROTECTED]> wrote:
> Ah -- so I should modify resolv.conf to point to localhost, right?  If
> so, that leads to an interesting problem, since resolv.conf is updated
> by dhcp.  Also, I've seen the nameservers in resolv.conf change from
> time to time.  Any idea how to get around this?

If you are running Ubuntu's dhcp3-client package, you can put something
like this in your /etc/dhcp3/dhclient.conf:

supersede domain-name-servers 127.0.0.1;

dhclient.conf should also contain other useful examples.

--
Christian Hofstaedtler

_______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users

_______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to