What is wrong

redeye

Verified User
Joined
May 11, 2004
Messages
150
Hi,

I try to figure out how to create an slave dns of an DA master.

This is what I have, no errors, no results either :( .

ll /etc/named.conf
-rw-r--r-- 1 named named 1300 Jul 8 18:18 /etc/named.conf

cat /etc/named.conf
## named.conf - configuration for bind
#
# Generated automatically by bindconf, alchemist et al.
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include "/etc/rndc.key";

options {
directory "/var/named/";
check-names master fail;
check-names slave warn;
check-names response ignore;
};
logging {
channel my_file {
file "/var/named/log.msgs";
severity dynamic;
print-category yes;
print-severity yes;
};
category default { default_syslog; my_file; };
category panic { default_syslog; my_file; };
category packet { my_file; };
category eventlib { my_file; };
category queries { my_file; };
};

zone "xxx.nl" { type slave; file "/var/named/xxx.nl.db"; masters { yy.yy.yy.yy; }; };

zone "127.in-addr.arpa" {
type master;
file "127.rev";
};
zone "." in {
type hint;
file "db.cache";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};


include "/etc/rndc.key";

ll /etc/named
drwxr-xr-x 5 named named 4096 Jun 12 11:46 chroot
-rw-r--r-- 1 named named 195 Oct 22 2003 localhost.zone
drwxr-xr-x 2 named named 4096 Jul 7 20:35 manual
-rw-r--r-- 1 named named 2499 Oct 22 2003 named.ca
-rw-r--r-- 1 named named 433 Oct 22 2003 named.local
-rw-r--r-- 1 named named 694 Jul 7 20:35 xxx.nl.db

cat xxx.nl.db

$TTL 14400
@ IN SOA ns1.xxx.nl. root.xxx.nl. (
2004070500
7200
3600
1209600
86400 )

xxx.nl. 14400 IN NS ns1.xxx.nl.
xxx.nl. 14400 IN NS ns2.xxx.nl.

ftp 14400 IN A xx.xx.xx.xx
localhost 14400 IN A xx.xx.xx.xx
mail 14400 IN A xx.xx.xx.xx
pop 14400 IN A xx.xx.xx.xx
www 14400 IN A xx.xx.xx.xx
xxx.nl. 14400 IN A xx.xx.xx.xx

xxx.nl. 14400 IN MX 10 mail

xxx.nl. IN TXT "v=spf1 -all"

When I do a dig @xx.xx.xx.xx xxx.nl
I receive a reply with an other ip (which is the active original ip) of an other dns server. But not the ip I have in my DNS.

What am I doing wrong?
 
redeye said:
Hi,

I try to figure out how to create an slave dns of an DA master.

I can't tell what you're trying to do from the examples you've posted.

Are you trying to slave forward (regular) DNS for your domains, or revers DNS (for your IP#s)?

If you'd replace the "X" marks with the real information and tell us what you're trying to do, perhaps I or someone else here can help you.

DNS is a publicly accessible database, and you're really not hiding anything you're not trying to make puiblic anyway, so it really doesn't make any sense to keep the information private.

And I can't use the diagnostic tools at my disposal unless I know what I'm trying to look for.

Please do NOT send me the "real" information in an email unless you're willing to hire me to work for you.

I'm very happy to help publicly on these forums as time and resources permit, but when I work privately for clients, I do charge.

You may be able to get help on the bind-users list (also available as the comp..protocols.dns.bind newsgroup), but you'll probably find they ask you for the same information I'm asking for.

Please help us help you by giving us the information we'll need to know.

Thanks.

Jeff
 
I'm trying to setup a slave. The xx.xx.xx.xx are the ip of the server running DA and the site. The yy.yy.yy.yy is the ip of the (master)dns on the DA server.

I first want to test if the slave gives me the IP of my site.... If that works, reverse will be the next thing.

the xx.xx.xx.xx can be replaced with 11.11.11.11 and the yy.yy.yy.yy with 22.22.22.22.
 
Unless you're willing to supply the real information in the file I can't help you as my diagnostic tools don't work when I type X characters into them.

Jeff
 
Hey,

On your original posting is that the named.conf of your slave server?

If so, you'll need an entry similar to this:

zone "your_domain_here.com"{
type slave;
file "path_to_the_zone_file";
masters { IP_of_the_master_server; };
};

It can all be on one line as well...

QUOTE
When I do a dig @xx.xx.xx.xx xxx.nl
I receive a reply with an other ip (which is the active original ip) of an other dns server. But not the ip I have in my DNS.

What am I doing wrong?
END QUOTE

This is all guess work on my part but...

Is the domain pointing to the right name servers? In other words, if you are just creating these servers have you changed the name server info at the place you have your domain registered?

Hope all that make sense.

David
 
Back
Top