Networking Forums

Networking Forums > Computer Networking > Linux Networking > BIND overwrites resolv.conf on boot

Reply
Thread Tools Display Modes

BIND overwrites resolv.conf on boot

 
 
Vwaju
Guest
Posts: n/a

 
      10-17-2008, 02:35 PM
I am still struggling to learn BIND. Thanks to all of you have helped
me up til now. Let me try to break the problem in to workable pieces.

First Question:

I didn't get an answer when I ran dig for my domain name. I edited
resolv.conf and got the right answer, but when I reboot, resolv.conf
is overwritten with the original file!

I have examined lines /var/log/syslog that might be relevant:

Oct 17 08:07:58 jupiter named[2206]: starting BIND 9.2.4 -u bind -t /
var/lib/named
Oct 17 08:07:58 jupiter named[2206]: loading configuration from '/etc/
bind/named.conf'
Oct 17 08:07:58 jupiter named[2206]: /etc/bind/pri.37.237.207.in-
addr.arpa:1: no TTL specified; using SOA MINTTL instead
Oct 17 08:07:58 jupiter named[2206]: /etc/bind/pri.37.237.207.in-
addr.arpa:1: no TTL specified; using SOA MINTTL instead
Oct 17 08:07:58 jupiter named[2206]: dns_master_load: /etc/bind/pri.
37.237.207.in-addr.arpa:8: unknown RR type
'jupiter.obliqueuniverse.org.'
Oct 17 08:07:58 jupiter named[2206]: zone 37.237.207.in-addr.arpa/IN:
loading master file /etc/bind/pri.37.237.207.in-addr.arpa: unknown
class/type
Oct 17 08:07:58 jupiter named[2206]: zone 255.in-addr.arpa/IN: loaded
serial 1
Oct 17 08:07:58 jupiter named[2206]: zone localhost/IN: loaded serial
1
Oct 17 08:07:58 jupiter named[2206]: /etc/bind/pri.obliqueuniverse.org:
1: no TTL specified; using SOA MINTTL instead
Oct 17 08:07:58 jupiter named[2206]: zone obliqueuniverse.org/IN:
loaded serial 2008100701
Oct 17 08:07:58 jupiter named[2206]: running

However, I haven't found any clues here about what is overwriting
resolv.conf.

Best to all,
Vwaju
NYC
 
Reply With Quote
 
 
 
 
Burkhard Ott
Guest
Posts: n/a

 
      10-17-2008, 02:39 PM
Am Fri, 17 Oct 2008 07:35:54 -0700 schrieb Vwaju:

> However, I haven't found any clues here about what is overwriting
> resolv.conf.


Are you using some dialup connection while you're 'binding'?
Usually the pppd script change the dns to their own ones while you're
connected.

cheers
 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      10-17-2008, 02:50 PM
Hello,

Vwaju a écrit :
>
> I didn't get an answer when I ran dig for my domain name. I edited
> resolv.conf and got the right answer, but when I reboot, resolv.conf
> is overwritten with the original file!
>
> I have examined lines /var/log/syslog that might be relevant:
>
> Oct 17 08:07:58 jupiter named[2206]: starting BIND 9.2.4 -u bind -t /
> var/lib/named

[...]
> However, I haven't found any clues here about what is overwriting
> resolv.conf.


I have never heard about BIND overwriting resolv.conf. AFAIK, BIND does
not care about resolv.conf at all. What makes you think that BIND is the
one ?

My first bet would be the network setup. It could be a DNS setting in a
static interface configuration, or the DHCP client, or pppd for a PPP
connection. As you did not mention the distribution and connection you
use, I cannot say more.
 
Reply With Quote
 
Vwaju
Guest
Posts: n/a

 
      10-17-2008, 03:25 PM
On Oct 17, 10:50*am, Pascal Hambourg <boite-a-s...@plouf.fr.eu.org>
wrote:
> Hello,
>
> Vwaju a écrit :
>
>
>
> > I didn't get an answer when I ran dig for my domain name. *I edited
> > resolv.conf and got the right answer, but when I reboot, resolv.conf
> > is overwritten with the original file!

>
> > I have examined lines /var/log/syslog that might be relevant:

>
> > Oct 17 08:07:58 jupiter named[2206]: starting BIND 9.2.4 -u bind -t /
> > var/lib/named

> [...]
> > However, I haven't found any clues here about what is overwriting
> > resolv.conf.

>
> I have never heard about BIND overwriting resolv.conf. AFAIK, BIND does
> not care about resolv.conf at all. What makes you think that BIND is the
> one ?
>
> My first bet would be the network setup. It could be a DNS setting in a
> static interface configuration, or the DHCP client, or pppd for a PPP
> connection. As you did not mention the distribution and connection you
> use, I cannot say more.


You're right, I have no reason to think that it's BIND.

I have a cable modem connection to RCN, which has assigned my the
static IP address 207.237.37.110.

I have a Dell Truemobile 2300 Broadband router that performs NAT, and
is configured to permanently assign 192.168.2.2 to the computer that
runs my DNS server.

ifconfig outputs:

eth0 Link encap:Ethernet HWaddr 00:01:03:E1:55:98
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:
255.255.255.0
inet6 addr: fe80::201:3ff:fee1:5598/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6268 errors:0 dropped:0 overruns:1 frame:0
TX packets:151 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1291018 (1.2 MiB) TX bytes:11356 (11.0 KiB)
Interrupt:3 Base address:0xdc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:322 (322.0 b) TX bytes:322 (322.0 b)

Does this help?

Thanks!
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      10-17-2008, 04:02 PM
On Fri, 17 Oct 2008 08:25:57 -0700 (PDT), Vwaju wrote:
>
> You're right, I have no reason to think that it's BIND.


> I have a Dell Truemobile 2300 Broadband router that performs NAT, and
> is configured to permanently assign 192.168.2.2 to the computer that
> runs my DNS server.
>
> ifconfig outputs:
>
> eth0 Link encap:Ethernet HWaddr 00:01:03:E1:55:98
> inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:


I am going to guess the values you entered into the eth0 setup is what
is overriding your /etc/resolv.conf.

You may want to improve your Usenet experience by reading
http://www.catb.org/~esr/faqs/smart-questions.html

Providing your linux distribution/release/desktop manager/...
might get you more precise/detailed answers.

Example for Mandriva Linux 2008.1, setting
DNS1=192.168.1.131
DNS2=208.67.222.222
DOMAIN=home.test
in /etc/sysconfig/network-scripts/ifcfg-eth0
creates
nameserver 192.168.1.131
nameserver 208.67.222.222
search home.test
in /etc/resolv.conf
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      10-17-2008, 04:54 PM
Burkhard Ott wrote:
> Am Fri, 17 Oct 2008 07:35:54 -0700 schrieb Vwaju:
>
>> However, I haven't found any clues here about what is overwriting
>> resolv.conf.

>
> Are you using some dialup connection while you're 'binding'?
> Usually the pppd script change the dns to their own ones while you're
> connected.


Or if you have an interface that's dhcp.
bind doesn't touch resolv.conf.
 
Reply With Quote
 
Allen Kistler
Guest
Posts: n/a

 
      10-17-2008, 04:56 PM
Vwaju wrote:
> I have a Dell Truemobile 2300 Broadband router that ...
> is configured to permanently assign 192.168.2.2 to the computer that
> runs my DNS server.


Via dhcp. dhcp is overwriting your resolv.conf.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC3 wiping its own resolv.conf David Bromage Linux Networking 8 07-25-2005 10:24 AM
dhcpd.conf, resolv.conf and the search directive Andy Richardson Linux Networking 4 07-13-2005 08:23 AM
resolv.conf usage Bit Twister Linux Networking 3 11-16-2004 04:00 AM
resolv.conf Stephen Speicher Linux Networking 5 12-10-2003 09:00 AM
NIS, DNS and resolv.conf ncrfgs Linux Networking 2 10-02-2003 05:09 PM



1 2 3 4 5 6 7 8 9 10 11