Solved

Where are important name server configuration file stored in FreeBSD 8.3

Posted on 2014-09-03
5
258 Views
Last Modified: 2016-02-11
I have a mail server alongside with name server.
I want to Backup information. What should I save as backup? Related to the bind name server.
Is this directory enough to save
/etc/namedb
?

How to backup information in future?
I have using Communigate and bind name server.
The question is about mechanism of backup information.
0
Comment
Question by:Nusrat Nuriyev
  • 2
  • 2
5 Comments
 
LVL 76

Expert Comment

by:arnold
ID: 40300861
IMHO, best backup deals with having a secondary/slave and then backup the named.conf file.
Look into having mysql backend.

 It takes a few seconds to convert an instance configured as salve into a primary role.

I.e. Named.conf change removing type slave and commenting out the masters{} entry! and reconfiguring/reloading named.
0
 
LVL 61

Assisted Solution

by:gheist
gheist earned 250 total points
ID: 40303058
First file - /etc/named.conf (it might be symlink to 2nd)
Second - directory /var/named except for dynamic and log subdirectories)
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40305572
Is chroot like "sandbox"?
in case of /usr/local/etc/rc.d  /etc/rc.d pair
what is original?
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40305576
arnold, could you provide an article/methodology which shows that it's easy to do what you are saying. But in more details. In my settings there are both settings for current zone is type of master.
0
 
LVL 76

Accepted Solution

by:
arnold earned 250 total points
ID: 40306262
You have two systems.
one master with allow-transfer { ip of slave;} in the options.

on the slave, the named.conf for the zone has
type slave
master {ip of master}

The difference, will be the format of the file.

Now should the master stop functioning.
Replacing the current slave named.conf with the named.conf from the master will convert the former backup server into the master role.

.i.e. replacing type slave; master {ip of master}; with type master;
master zone
zone "somedomain.com" {
type master;
file "db.somedomain.com";
};

slave zone
zone "somedomain.com" {
type slave;
file "db.domedomain.com";
master {ip of master;};
};

dig @127.0.0.1 AXFR somedomain.com.
Usually the configuration includes that localhost is allowed to transfer.

The output is what the secondary file will look like and is a valid format for bind, while not most convinient for human readable.....

After the change on your existing server you would run the reconfigure/reload to get named to reread the configuration file.

rndc reconfig
rndc reload

http://www.experts-exchange.com/OS/Linux/Q_28252748.html

A search for bind master/slave yields a variety of articles.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now