On Tue, 22 Jul 2003
(E-Mail Removed) wrote:
> |So, I'm guessing that there is some conflict between dhclient and dhcpd.
> |I've read the man pages and the docs, but nothing jumps out at me -
> |something like "listen on" as bind uses. What I really want is for dhcpd
> |to only listen on eth0, and not eth1. I'm not really sure how this
> |interferes - I see DHCP DISCOVER going out eth1 and nothing coming back,
> |but as soon as I kill dhcpd DHCP DISCOVER works fine....
>
> Just specify the interface on the command line: dhcpd eth0
> Same for dhclient by the way.
>
> |Also, I really don't want dhclient to mess with the /etc/resolv.conf file.
> | Actually, what I want is for all DNS queries to go to my DNS server, and
> |then, if my DNS server is down, to my ISP's DNS servers.
>
> dhclient runs a shell script called dhclient-script (location depends on
> your distro) when it gets a lease or renewal. In there there are some
> lines to update resolv.conf. What you want to do is study those lines
> and figure out how to disable the update. There may even be a variable
> you set in your system config to say don't update resolv.conf, again
> depends on your distro.
While this can be made to work, if the OP had cared to RTFM, he would find
that dhclient has a config file in which one can override the values
received from the DHCP server. A much easier way to achieve his objective!
>