United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
Red Hat implements a standard version of Berkeley Internet Name Domain (BIND). In general, all that is needed is to verify that BIND is installed (rpm -q bind), configure /etc/named.conf, populate /var/named with the appropriate dns database files, and start the service named (service named start).
In the following example, the domain test.org is set up to resolve for some hosts. This is just a quick example, users looking for more details or complicated configurations might want to consider picking up a copy of DNS and BIND, By Paul Albitz, Cricket Liu, O'Reilly publishing.
Edit /etc/named.conf, add the following:
zone "test.org" {
type master;
file "named.test.org";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "named.0.168.192.in-addr.arpa";
};
Create the file /var/named/named.test.org:
@ IN SOA ns.test.org. hostmaster.test.org. (
2003060101 ; Serial (yyyymmddxx)
86400 ; Refresh (1 day)
7200 ; Retry (2 hours)
604800 ; Expire (7 days)
86400 ) ; Minimum (1 day)
IN NS ns.test.org.
example.com. IN A 192.168.0.1
www IN CNAME test.org.
ftp IN CNAME test.org.
host1 IN A 192.168.0.1
host2 IN A 192.168.0.2
host3 IN A 192.168.0.3
Create the file /var/named/named.0.168.192.in-addr.arpa:
@ IN SOA ns.test.org. hostmaster.yahoo.com. (
2003060101 ; Serial (yyyymmddxx)
86400 ; Refresh (1 day)
7200 ; Retry (2 hours)
604800 ; Expire (7 days)
86400 ) ; Minimum (1 day)
IN NS ns.test.org.
1 IN PTR host1.test.org.
2 IN PTR host2.test.org.
3 IN PTR host3.test.org.
To start the bind daemon: service named start
To have the bind daemon start upon booting: chkconfig --level 35 named on