Networking Forums

Networking Forums > Computer Networking > Linux Networking > Two nameservers, but data not being shared

Reply
Thread Tools Display Modes

Two nameservers, but data not being shared

 
 
tsreyb@yahoo.com
Guest
Posts: n/a

 
      05-15-2005, 06:14 AM
I'm not sure of the proper terminology, so my description of this
problem may be off-base a bit. I'll try my best


I have two name servers, A and B. Nameserver B is the master for a
particular zone (subset of A's zone) and is supposed to feed its
results to nameserver A. The domain of A is 'MAIHAG.com' and the domain
for which B is a master is 'ite.MAIHAG.com'.


Computers pointing to B as their primary DNS server are able to
successfully resolve all hostnames within that zone.


However, computers using A as a nameserver are not able to resolve
anything from B's zone. Why?

NOTE: A's own IP is 192.168.254.251

NOTE: B's own IP is 10.1.245.251

The relevant zone section from A's named.conf pointing to B is:

zone "ite.MAIHAG.com" {
type slave;
file "stub.ite.MAIHAG.com";
masters { 10.1.245.251; };
zone-statistics yes;
};



And the entire named.conf from B is:

options {
directory "/var/named";
forwarders{
192.168.254.251;
};
};


zone "." {
type hint;
file "named.ca";
};


zone "ite.MAIHAG.com"{
type master;
file "db.ite.MAIHAG.com";
notify yes;
allow-transfer { 10.99.10.20; 10.99.10.21; 192.168.254.251; };
};

zone "qaMAIHAG.com"{
type master;
file "db.qaMAIHAG.com";
};


zone "0.0.127.in-addr.arpa"{
type master;
file "named.local";
};

zone "1.10.in-addr.arpa"{
type master;
file "db.10.1";
notify yes;
};

zone "2.10.in-addr.arpa"{
type master;
file "db.10.2";
};

zone "1.222.in-addr.arpa"{
type master;
file "db.222.1";
};

zone "4.10.in-addr.arpa"{
type master;
file "db.10.4";
};



Now, using nslookup with debug enabled and pointing to server A, I get
the following result:


> set debug
> scmbag.ite.MAIHAG.com



Server: turtle.eng.MAIHAG.com
Address: 192.168.254.251

;; res_mkquery(0, scmbag.ite.MAIHAG.com, 1, 1)
------------
Got answer:
HEADER:
opcode = QUERY, id = 45136, rcode = SERVFAIL
header flags: response, want recursion, recursion avail.
questions = 1, answers = 0, authority records = 0,
additional = 0


QUESTIONS:
scmbag.ite.MAIHAG.com, type = A, class = IN


------------
;; res_mkquery(0, scmbag.ite.MAIHAG.com.eng.MAIH*AG.com, 1, 1)
------------
Got answer:
HEADER:
opcode = QUERY, id = 45137, rcode = NXDOMAIN
header flags: response, auth. answer, want recursion,
recursion avail.
questions = 1, answers = 0, authority records = 1,
additional = 0


QUESTIONS:
scmbag.ite.MAIHAG.com.eng.MAIH*AG.com, type = A, class = IN
AUTHORITY RECORDS:
-> eng.MAIHAG.com
ttl = 86400 (1D)
origin = turtle.eng.MAIHAG.com
mail addr = maihag.eng.MAIHAG.com
serial = 2005051359
refresh = 10800 (3H)
retry = 3600 (1H)
expire = 604800 (1W)
minimum ttl = 86400 (1D)


------------
;; res_mkquery(0, scmbag.ite.MAIHAG.com.MAIHAG.c*om, 1, 1)
------------
Got answer:
HEADER:
opcode = QUERY, id = 45138, rcode = NXDOMAIN
header flags: response, auth. answer, want recursion,
recursion avail.
questions = 1, answers = 0, authority records = 1,
additional = 0


QUESTIONS:
scmbag.ite.MAIHAG.com.MAIHAG.c*om, type = A, class = IN
AUTHORITY RECORDS:
-> MAIHAG.com
ttl = 3600 (1H)
origin = hqdc01.MAIHAG.com
mail addr = dns.MAIHAG.com
serial = 2821265003
refresh = 3600 (1H)
retry = 600 (10M)
expire = 86400 (1D)
minimum ttl = 3600 (1H)


------------
;; res_mkquery(0, scmbag.ite.MAIHAG.com.ite.MAIH*AG.com, 1, 1)
------------
Got answer:
HEADER:
opcode = QUERY, id = 45139, rcode = SERVFAIL
header flags: response, want recursion, recursion avail.
questions = 1, answers = 0, authority records = 0,
additional = 0


QUESTIONS:
scmbag.ite.MAIHAG.com.ite.MAIH*AG.com, type = A, class = IN


------------
*** turtle.eng.MAIHAG.com can't find scmbag.ite.MAIHAG.com: Server
failed


Thanks,
-Bob
Andover, MA

 
Reply With Quote
 
 
 
 
soulimane.mammar@gmail.com
Guest
Posts: n/a

 
      05-15-2005, 09:48 AM
hi ,
there's some errors in your configuration files !!
in named.conf file of A you haven't to put :
zone "ite.MAIHAG.com" {
type slave;
file "stub.ite.MAIHAG.com";
masters { 10.1.245.251; };
zone-statistics yes;

}; since this area is not mastered by A !! just add a line like :
ite.MAIHAG.com. IN NS ns.ite.MAIHAG.com.
ns.ite.MAIHAG.com. IN A <ip of B>

in the config file of the zone MAIHAG.com

Good Luck
S. MAMMAR

 
Reply With Quote
 
tsreyb@yahoo.com
Guest
Posts: n/a

 
      05-16-2005, 04:02 PM
Thanks. Do those lines belong inside a zone section, or standalone?

That is, like this:

zone "ite.MAIHAG.com" {
ite.MAIHAG.com. IN NS ns.ite.MAIHAG.com.
ns.ite.MAIHAG.com. IN A 10.1.245.251
};

Or, like this:

ite.MAIHAG.com. IN NS ns.ite.MAIHAG.com.
ns.ite.MAIHAG.com. IN A 10.1.245.251

 
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
custom nameservers eminhanif@googlemail.com Linux Networking 3 03-30-2009 05:36 PM
DNS -- nameservers for .org TLD don't respond when queriednon-recursively Vwaju Linux Networking 3 11-11-2008 02:57 PM
Help understanding nameservers CRC Linux Networking 2 09-08-2008 02:19 AM
Setting up private nameservers on semi-managed server w/ cPanel Jason Linux Networking 0 08-31-2006 01:53 AM
Nameservers on colocated Linux servers Alex Linux Networking 2 02-26-2004 01:21 PM



1 2 3 4 5 6 7 8 9 10 11