Configuring a test domain (Internal domain)

From: Shyam Shantikumar (skshyam_at_hotmail.com)
Date: 04/27/05

  • Next message: Shyam Shantikumar: "errors while starting named"
    To: <freebsd-net@freebsd.org>
    Date: Wed, 27 Apr 2005 13:59:46 -0700
    
    

    Dear all,

     

    I am a novice when it comes to setting up a dns domain in FreeBSD. I am
    trying to set up this domain called "simple" only for 2 machines in my
    internal network.

     

    This is my db.domain file

    $TTL 3h

    simple. in SOA
    LDAPSERVER.simple. (

                                        1

                                        3h

                                        1h

                                        1w

                                        ih )

     

    simple. in NS
    LDAPSERVER.simple.

     

    localhost.simple. in A 10.1.3.197

    shyam.simple in A 10.1.3.195

     

    This is the db.address file for reverse resolution.

     

    $TTL 3h

    simple. in SOA
    LDAPSERVER.simple. (

                                        1

                                        3h

                                        1h

                                        1w

                                        ih )

     

    simple. in NS
    LDAPSERVER.simple.

     

    localhost.simple. in A 10.1.3.197

    shyam.simple in A 10.1.3.195

     

     

    This is the named.conf file

     

    key "rndc-key" {

                algorithm "hmac-md5";

                secret "ho7if1SMtvTZ4vSj2dY2Alt3HHKIvX6yT2CA1nY4Yn0=";

     

    };

     

    controls {

                inet 127.0.0.1 port 953 allow {localhost;} keys {rndc-key;};

     

    };

     

    options {

     

                directory "/etc/namedb";

                pid file "var/run/named/pid";

                dump-file "/var/dump/named_dump.db";

                statistics-file "/var/stats/named.stats";

     

    forwarders {

                10.1.3.1;

    };

     

    zone "." {

                type hint;

                file "db.cache";

    };

     

    zone "0.0.127.in-addr.arpa" {

                type master;

                file "db.127.0.0";

    };

     

    zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.arpa"$

                type master;

                file "master/localhost-v6.rev";

    };

     

     

    zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.int"$

                type master;

                file "master/localhost-v6.rev";

    };

     

     

    zone "simple" in {

                type master;

                file db.simple";

    };

     

    zone "3.1.10.in-addr.arpa" {

                type master;

                file "db.10.1.3";

    };

     

     

    Please bear with me if I have made any stupid mistakes on the configuration.

     

    Thanx

    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Shyam Shantikumar: "errors while starting named"

    Relevant Pages

    • Re: Apache Installation
      ... make install clean ... > I am a novice at FreeBSD! ... I want to install apache v 1.3.28 in my FreeBSD ... To unsubscribe, ...
      (freebsd-questions)
    • Apache Installation
      ... I am a novice at FreeBSD! ... I want to install apache v 1.3.28 in my FreeBSD ... To unsubscribe, ...
      (freebsd-questions)
    • Edit handbook.
      ... make obj ... novice with FreeBSD. ... To unsubscribe, ...
      (freebsd-questions)