Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Networking > Issue <<  135 of 354 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 481
Last update: 03-03-08
Issue:
How do I set up Berkeley Internet Name Domain (BIND) or Domain Name Server (DNS)?
Resolution:

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


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Networking > Issue <<   135  of  354  >>