BIND is an open-source software that implements the Domain Name System (DNS) protocols for the Internet. The name BIND stands for “Berkeley Internet Name Domain”. This article describes how to install and configure BIND in Red Hat Enterprise Linux 5 or CentOS 5.
Installing BIND
The steps below will install the chrooted BIND and the GUI configuration tool.

2. Start the named service. Learn how to start and stop services.
3. Open the TCP port 53 and UDP port 53. Learn how to configure the firewall.Configuring BIND
The steps shows how to configure BIND using the GUI configuration tool.

1. Click System, select Administration and click Domain Name System. This will launch the BIND Configuration GUI window.Creating a DNS Zone
The steps below will show you how to create a DNS zone named “acme.local”.
Creating DNS Records
The steps below describes how to create some of the most common DNS records.
Creating an A record
An A record maps a hostname to its IPv4 address.
Creating a CNAME record
A CNAME record specifies that a domain name is an alias of another domain name.
Creating an MX record
An MX record specifies how Internet e-mail should be routed using SMTP.

1. Right click the zone you where you want to add an MX record, select Add and click MX Mail Exchange.Testing BIND
To test your BIND setup, you can use the nslookup and dig utility.

1. Type the command below in a terminal window to use nslookup
nslookup mail.acme.local localhostReplace mail.acme.local with the domain you want to check. If your DNS server is not on localhost then change it.

2. Type in the command below to query any records using dig.
dig @localhost acme.local ANYReplace acme.local with your own domain. If your DNS server is not on localhost then change it.
Recommended Book
A working DNS is required to operate a mail server. Actually, almost every server requires it. But learning how to get it to work is just too difficult.
Red Hat provides tools to simplify working with BIND. But actually using BIND in a live production environment requires a really deep understanding of how DNS and BIND works.
A deep understanding of DNS and BIND will enable you to deploy a secure, stable and reliable DNS service which can operate without too much maintenance for a long, long time.
This book does a great job of explaining DNS in general and installing, configuring, and maintaining a BIND server in particular.
Get this book if you intend to deploy and administer a DNS server using BIND.
Visit the forum to ask for help or to give a comment.
***
Posted on 10/24/2009 and last updated on 10/10/2010
Filed under Uncategorized














