LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-09-2004, 08:43 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
How do i backup a dns server? I am using rsync but the key dont match


How do i backup a dns server? I am using rsync but the key dont match

I rsync, /etc/named.conf /etc/rndc.conf and -r /var/named

But when I type
rndc status
I get
rndc: connect failed: connection refused

Is there a way to input a key? How does bind know that its key and the key in /etc/named.conf and /etc/rndc.conf are different?
 
Old 03-10-2004, 03:15 PM   #2
Technonotice
Member
 
Registered: Mar 2004
Location: UK
Distribution: Debian Unstable
Posts: 58

Rep: Reputation: 15
Hi abefroman,

Can you please be a little more specific - you say you're rsyncing your BIND config files, but from where and to where? Also, where are you running those commands?

I assume you've got a running DNS servers running on a box, and you're on a workstation syncing the contents from the server to your workstation... but I'm lost on where you're trying to run rndc. If you're running it on the workstation then chances are that your named.conf config file is set up to only allow rndc to connect from the same machine using the key for extra security.

The rndc application will read /etc/rndc.conf and send the key found inside it to the running BIND server which must match the access control list of IPs in the /etc/named.conf running on the server itself and it also must match the key on the server.
 
Old 03-11-2004, 08:16 AM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
I have 2 servers, I want to rsync -r /var/named/ and /etc/named.conf so that I have a backup primary dns servers available in case both my primary and secondary go down. After I rsync I do a rndc reload but get the error...
rndc: connect failed: connection refused

I put the same key in /etc/rndc.conf on both servers and /etc/named.conf will match as I am rsync'ing it but it still won't let me connect.

I even tried rsync'ing /etc/rndc.conf

What am I doing wrong?

 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync as backup? ziggie216 Linux - Software 3 03-13-2005 02:22 PM
dynamic dns for backup server? wooshyFox Linux - General 4 03-04-2005 11:59 AM
Using rsync for local server backup. Some issues. enygma Linux - Networking 0 02-03-2005 01:46 PM
How do i backup a dns server? I am using rsync but the key dont match abefroman Linux - Newbie 1 03-09-2004 07:39 PM
rsync backup... tarballed Linux - Networking 10 06-27-2003 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration