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! |
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
|
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 |
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 |
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? |
it's a syntax error in the file
|
zone "localhost" IN {
type master; file "localhost.zone"; allow-update { none; }; }; |
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"; }; |
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. |
I was going to say you can paste it.
|
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 :) |
just put the { on the next line
what editor are you using |
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!
|
Oh I am just using vi
|
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. |