* Jason Opperisano:
> use a supersede directive for domain-name-servers in dhclient.conf like:
Well, that's exactly what I said: I found several ways to keep
/etc/resolv.conf the way I want it. This is one way. Another would
be to hack in or around dhclient-script(8). Yet another one is that
/etc is going to be read-only, so I can just completely ignore that
part.
> and don't worry about setting up bind to forward to your ISP--in my
> experience it causes more harm than good.
The thing is, in my situation and in my experience, it seems to works
pretty well. I am pretty sure this setup works ok for me because I
had it running for some decent time on another OS. Let me explain
what I see:
For some time, dhcp will give me 1.2.3.4 as the DNS IP I should use.
Then, without notice some day it will start to give me 5.6.7.8 [1]. In
this case, 1.2.3.4 will still point to a valid, working DNS. However,
5.6.7.8 will be closer to me.
If I hardcode the forwarder IPs, the end result is that I won't notice
the change (DNS will still work), but I will use a DNS located at the
other end of the country instead of the one closest to me - hence
driving DNS times up, and annoying my ISP.
Anyway, thanks for your help.
Footnotes:
[1] My guess is that the ISP maintainance periodically moves some
boxes or redistributes its IP addresses on its network, but is
careful not to wreck havoc by completely changing its config. But
that's just a baseless guess.
--
RaphaC+l