BIND overwrites resolv.conf on boot - Networking

This is a discussion on BIND overwrites resolv.conf on boot - Networking ; 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 ...

+ Reply to Thread
Results 1 to 7 of 7

Thread: BIND overwrites resolv.conf on boot

  1. BIND overwrites resolv.conf on boot

    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

  2. Re: BIND overwrites resolv.conf on boot

    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

  3. Re: BIND overwrites resolv.conf on boot

    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.

  4. Re: BIND overwrites resolv.conf on boot

    On Oct 17, 10:50*am, Pascal Hambourg
    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!

  5. Re: BIND overwrites resolv.conf on boot

    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

  6. Re: BIND overwrites resolv.conf on boot

    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.

  7. Re: BIND overwrites resolv.conf on boot

    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 to Thread