LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-27-2002, 12:08 PM   #1
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Rep: Reputation: 15
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!
 
Old 12-27-2002, 12:11 PM   #2
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Original Poster
Rep: Reputation: 15
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
 
Old 12-27-2002, 12:16 PM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,153

Rep: Reputation: 56
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
 
Old 12-27-2002, 12:21 PM   #4
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Original Poster
Rep: Reputation: 15
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
 
Old 12-27-2002, 12:28 PM   #5
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Original Poster
Rep: Reputation: 15
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?
 
Old 12-27-2002, 12:30 PM   #6
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,153

Rep: Reputation: 56
it's a syntax error in the file
 
Old 12-27-2002, 12:32 PM   #7
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,153

Rep: Reputation: 56
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
 
Old 12-27-2002, 12:34 PM   #8
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,153

Rep: Reputation: 56
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";

};
 
Old 12-27-2002, 01:04 PM   #9
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Original Poster
Rep: Reputation: 15
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.
 
Old 12-27-2002, 01:12 PM   #10
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,153

Rep: Reputation: 56
I was going to say you can paste it.
 
Old 12-27-2002, 01:20 PM   #11
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Original Poster
Rep: Reputation: 15
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

Last edited by granny; 12-27-2002 at 04:28 PM.
 
Old 12-27-2002, 01:22 PM   #12
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,153

Rep: Reputation: 56
just put the { on the next line

what editor are you using
 
Old 12-27-2002, 04:21 PM   #13
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Original Poster
Rep: Reputation: 15
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!
 
Old 12-27-2002, 04:24 PM   #14
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Original Poster
Rep: Reputation: 15
Oh I am just using vi
 
Old 12-27-2002, 04:29 PM   #15
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Original Poster
Rep: Reputation: 15
I tried it, no luck. I like that affero thing! It seems really cool!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS SLAVE problem cccc Linux - General 0 11-29-2005 05:08 PM
Slave Dns Question kemplej Linux - Networking 5 12-23-2004 01:58 PM
DNS Slave not getting zones from master tysonh04 Fedora 1 06-06-2004 05:10 PM
Slave DNS server guntanis Linux - Networking 4 12-10-2003 09:02 AM
Managing DNS under DHCP slave GAVollink Linux - Networking 1 07-01-2002 01:32 PM


All times are GMT -5. The time now is 09:13 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration