Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We're setting up a software firewall, and one of the issues we're facing is that eth0 has a dynamic IP address.

In /etc/network/interfaces we've got the following:

# The loopback network interface
auto lo
iface lo inet loopback

# internet-facing interface
auto eth0
iface eth0 inet dhcp
    dns-search -------.local

# The primary network interface
auto eth1
iface eth1 inet static
    dns-search -------.local

# This is an autoconfigured IPv6 interface
iface eth1 inet6 auto

The problem is that resolv.conf ends up with the DNS IP's of our ISP...

Update As stated above, resolv.conf gets the DNS IP addresses of our ISP that are part of the DHCP Package. The idea is that we get just an IP address, but basically only use our internal DNS servers. So the DNS parameters of DHCP should be ignored. Any ideas how to accomplish this?

share|improve this question
So, what is your problem ? cannot understand – krisFR Mar 20 '14 at 23:22
He wants to use his own DNS servers instead of the ISP dhcp discovered ones and the DNS servers in the eth0 network stub are being overridden. – squarebear Mar 20 '14 at 23:28
@Shutupsquare Sorry, i don't have my crystal ball under hands ;) – krisFR Mar 20 '14 at 23:33
@user2196728 The first time I read it I didn't get the problem till I read the config. – squarebear Mar 20 '14 at 23:35
@Shutupsquare Ok great ! BTW i am glad to see that i was not the only one thinking that it was unclear ! Feel free to reword the question to make it more clear and stop the "on hold" status – krisFR Mar 20 '14 at 23:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.