BIND
By Joshua Erdman
Digital Foundation, inc.
What's new in Bind?
I was in for quite a surprise when I built a new Fedora Core 3 server. Security was much higher making things a bit more inconvenient
and definitely confusing. Specifically the files paths changed from /var/named to /var/named/chroot/var/named. It looks like this is a
security measure that protects the really important system file locations by emulating them to the user of the Bind service. As soon as
you know about the location of the new path, everything makes sense again. Just refer to the file paths below:
Location and Purpose of Bind DNS Files
Adding a Domain
Step 1: Edit /etc/named.conf and add the
zone of the new domain. Save and Exit.
Example:
zone "newdomain.com" IN {
type master;
file "newdomain.db";
};
Step 2: Change
directory to /var/named.
Type: cd /var/named/chroot/var/named.
Step 3: Copy new domain template to the
new domain. (/var/named/chroot/var/named/nd is the template file)
Type: cp nd newdomain.db
Step 4: Edit /var/named/chroot/var/named/newdomain.db
and change settings to reflect your new domain name. Don't forget
to also update the serial! (the date line of the file)
Step 5: Once you have made the proper
changes to newdomain.db, save the file. You must now restart the
name server in order for the changes to become active. From the Linux
prompt,
type: rndc reload
Step 6: Check the system log to verify
that the zone (domain) was loaded and that no errors occurred.
Type: tail /var/log/messages
Step 7: If you have any secondary DNS servers, edit /etc/named.conf
and add the zone of the new domain & Then reload the Name Server.
Example:
zone "newdomain.com" IN {
type slave;
file "newdomain.db";
masters { Primary.DNS.Server.IP; };
};
Step 10:
You must now restart the name server in order for the changes to
become active. From the Linux prompt, type: rndc reload (rndc
is in new version of bind)
Step 11: Check the system log to verify
that the zone (domain) was loaded and that no errors occurred. Type
the alias: tmess
CNAME: The CNAME in the DB file creates an alias to an address.
Example: Pointing a domain such as newdomain.org to
newdomain.com. In the newdomain.org DB file, adding a line such
as:
www 1D IN
CNAME www.newdomain.com.
This line will make an alias from www.newdomain.org and point it at
www.newdomain.com
References:
- ICANN - Internet Corporation for
Assigned Names and Numbers
- IANA - Internet Assigned Numbers
Authority
- ISC - The Makers of BIND (A DNS
Server)
- Bind 9 Manual
Article last reviewed: 02/12/2005
|
|
del.icio.us
|
|
Created by: Digital Foundation,
inc.
Copyright © 2002-2005 Digital Foundation,
inc.
www.networkclue.com
|
|
|
All content of the NetworkClue website is copyrighted. Articles, notes,
outlines, and all other materials may not be stored on the Internet or sold or
placed by themselves or with other material in any electronic or printed format in whole or
part. However materials may be referenced by links to the site.
|