Sounds like a resolv.conf issue ... make sure that you have an entry in the
resolv.conf file that maps ns1.example.de to 1.1.1.1 and ns2.example.de to
1.1.2.2



-----Original Message-----
From: bind-users-bounces+imran=netwave...@lists.isc.org
[mailto:bind-users-bounces+imran=netwave...@lists.isc.org] On Behalf Of
Dotan Cohen
Sent: Monday, October 04, 2010 5:09 PM
To: bind-users@lists.isc.org
Subject: Unable to query the nameserver

I am configuring BIND on two servers: ns1.example.de on a server with
IP address 1.1.1.1 and ns2.example.de on a server with IP address
1.1.2.2. BIND starts fine on both servers, but when I try to configure
my domain name in the registrar's control panel I get this error:
"""
Error : Unable to query the nameserver ns1.example.de
"""

Of course I have been googling this for hours and I've been reading
BIND manuals for about two weeks now! I'm really stuck. Here are my
configuration files:

// On 1.1.1.1
[r...@1.1.1.1]# cat /etc/named.conf
options {
        directory "/etc";
        pid-file "/var/run/named/named.pid";
        listen-on {
                any;
                };
        };

zone "." {
        type hint;
        file "/etc/db.cache";
        };

zone "example.de" {
        type master;
        file "/var/named/example.de.hosts";
        notify yes;
        allow-query { any; };
        };
zone "example.eu" {
        type master;
        file "/var/named/example.eu.hosts";
        };
[r...@1.1.1.1]# cat /var/named/example.de.hosts
$ORIGIN example.de.
$TTL 86400
example.de. IN      SOA     example.de. foo.example.de. (
                        2010100401; Serial - increment me
                        10800
                        3600
                        604800
                        38400 )
       IN  NS    ns1.example.de.
       IN  NS    ns2.example.de.
       IN  A     1.1.1.1
www    IN  A     1.1.1.1
ns1    IN  A     1.1.1.1
ns2    IN  A     1.1.2.2




// On 1.1.2.2
[r...@1.1.2.2]# cat /etc/named.conf
options {
        directory "/etc";
        pid-file "/var/run/named/named.pid";
        listen-on {
                any;
                };
        };

zone "." {
        type hint;
        file "/etc/db.cache";
        };

zone "example.de" {
        type slave;
        masters { 1.1.1.1; };
        allow-update { 1.1.1.1; };
        file "/var/named/example.de.hosts";
        notify yes;
        allow-query { any; };
        allow-notify { 1.1.2.2; };
        };
[r...@1.1.2.2]# cat /var/named/example.de.hosts
$ORIGIN example.de.
$TTL 86400
example.de. IN      SOA     example.de. foo.example.de. (
                        2010100401; Serial - increment me
                        10800
                        3600
                        604800
                        38400 )
       IN  NS    ns2.example.de.
ns2    IN  A     1.1.2.2




Of course, when I make a change to a hosts file I increment the serial
number and restart bind. I also restart bind after making a change to
named.conf. What am I doing wrong? Thanks!

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to