LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   slave DNS problems (https://www.linuxquestions.org/questions/linux-networking-3/slave-dns-problems-39521/)

granny 12-27-2002 12:08 PM

slave DNS problems
 
Hey all, I can't get my slave server to work for DNS. Ok I have 2 DNS servers, ServerA is master for domainA and ServerB is master for domainB. I want to get ServerA to be a slave for domainB. IP for serverA is 192.168.1.2 and ServerB 192.168.1.13 I open up my /etc/named.conf file on serverA and enter the following

};

zone "domainB" { <------wouldn't let me do correct char
type slave;
file "domainB.hosts";
masters "192.168.1.13";

};


the closing brackets for some reason got translated to { it is correct though in the file. serverB works just fine as a master, domain lookups work just fine and dandy. What am I doing wrong? I did notice in the named.conf file there is a line under the controls tag that only lists localhost, could this have something to do with it. Running RH 7.3. Any help would be appreciated. This is my first attempt setting up DNS on a Linux box. Thanks in advance!

granny 12-27-2002 12:11 PM

little more info on prob
 
sorry guys, the problem I am having is as soon as I put that slave zone entry into my named.conf file on serverA, I try to restart named using the sys V scripts, but it fails. That's my actual error. I am pretty sure it isn't syntax. Thanks

DavidPhillips 12-27-2002 12:16 PM

what error does it give when it fails

start it in an xterm with

service named start

or restart

also there may be something shown in /var/log/messages

granny 12-27-2002 12:21 PM

when I run /etc/rc.d/init.d/named restart

stop ok
start failed

I will check the logs right now and look for anything suspicious.ty

granny 12-27-2002 12:28 PM

ok here is what looks significant in /var/log/messages

loading configuration from '/etc/named.conf'
/etc/named.conf:25: '{' expected near '"'
loading configuration: unexpected token
exiting (due to fatal error)

any ideas?

DavidPhillips 12-27-2002 12:30 PM

it's a syntax error in the file

DavidPhillips 12-27-2002 12:32 PM

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

DavidPhillips 12-27-2002 12:34 PM

zone "domainB" { <------wouldn't let me do correct char

what was the problem with the character



zone "domainB" {
type slave;
file "domainB.hosts";
masters "192.168.1.13";

};

granny 12-27-2002 01:04 PM

just in the posting it when I type the } char it comes out fine but the other way { come out like that. It is correct in the file though. I dont' know why it won't let me use that char in the post ? Weird. I'll recheck my syntax in named.conf on both machines...brb....

It looks exactly as you just typed it in your last post.

In the post @ 6:32 pm, where do I put that allow update section, I am gueessing serverB? I'll try it but instead of none, I will put serverA's IP.

DavidPhillips 12-27-2002 01:12 PM

I was going to say you can paste it.

granny 12-27-2002 01:20 PM

zone "domainB"{
type slave;
file "domainB.hosts";
masters "192.168.1.13";
};


nope still shows up like that, I just cut and pasted it, weird. but that's exactly what it is, yes I am positive the { character is correct :)

DavidPhillips 12-27-2002 01:22 PM

just put the { on the next line

what editor are you using

granny 12-27-2002 04:21 PM

whoa really weird, I just actually read my post and the { shows up fine in the actual post but as I type it right now, it shows up like a bracket, freaky! Anyways, I'll give it a shot! Thanks buddy!

granny 12-27-2002 04:24 PM

Oh I am just using vi

granny 12-27-2002 04:29 PM

I tried it, no luck. I like that affero thing! It seems really cool!


All times are GMT -5. The time now is 08:54 PM.