Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Trying on DNS

  1. #21
    Join Date
    Nov 2010
    Location
    Kerala
    Beans
    376
    Distro
    Ubuntu

    Re: Trying on DNS

    Thanks am going to check this site and test it on my server

  2. #22
    Join Date
    Nov 2010
    Location
    Kerala
    Beans
    376
    Distro
    Ubuntu

    Re: Trying on DNS

    what is external and internal network? why external entries have second name used
    you can learn what is computer ubuntu is the best way .I start learning ubuntu in 2-1-2010 .start with UBUNTU 9 now using 12.04

  3. #23
    Join Date
    Nov 2010
    Location
    Kerala
    Beans
    376
    Distro
    Ubuntu

    Re: Trying on DNS

    Quote Originally Posted by hawkmage View Post
    OK, Here you go here is a sample of my DNS config.

    /etc/bind/db.my.domain
    Code:
    $TTL 3D
    @ 86400    IN      SOA     my.domain.com. root.my.domain.com. (
                            110127002       ; serial, todays date + todays serial #
                            8H              ; refresh, seconds
                            2H              ; retry, seconds
                            4W              ; expire, seconds
                            1D )            ; minimum, seconds
                    NS    myns1
                    NS    myns2
                    MX    10    mailhost
    _nfsv4idmapdomain    IN    TXT    "my.domain.com"
    @        IN    A    192.168.100.113
    @        IN    AAAA    ####:####:####:####::1
    test1        IN    CNAME    @
    test2        IN    CNAME    @
    fw          IN    A    192.168.200.1
    fw        IN    AAAA    ####:####:####:####::1
    host1        IN    A    192.168.200.3
    host1        IN    AAAA    ####:####:####:####::3
    myns1        IN    A    192.168.200.4
    myns1        IN    AAAA    ####:####:####:####::4
    mtns2        IN    A    192.168.200.5
    mtns2        IN    AAAA    ####:####:####:####::5
    mailhost    IN    A    192.168.200.6
    mailhost    IN    AAAA    ####:####:####:####::6
    /etc/bind/db.200.168.192
    Code:
    $TTL 3D
    @ 86400         IN      SOA     my.doamin.com. root.my.doamin.com. (
                                    110113000       ; Serial
                                    28800   ; Refresh
                                    7200    ; Retry
                                    604800  ; Expire
                                    86400)  ; Minimum TTL
                            NS      myns1.my.doamin.com.
    ;
    ;       Servers
    ;
    1    PTR    fw.my.doamin.com.
    3    PTR    host1.my.doamin.com.
    4    PTR    myns1.my.doamin.com.
    5    PTR    myns2.my.doamin.com.
    6    PTR    mailhost.my.doamin.com.
    /etc/bind/db.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#
    Code:
    $TTL 3D
    @ 86400         IN      SOA     my.domain.com. root.my.domain.com. (
                                    110404000       ; Serial
                                    28800   ; Refresh
                                    7200    ; Retry
                                    604800  ; Expire
                                    86400)  ; Minimum TTL
                            NS      vaio.thekeepv6.com.
    ;
    ;       Servers
    ;
    1.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#   14400 IN      PTR     fw.my.doamin.com.
    3.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#   14400 IN      PTR     host1.my.doamin.com.
    4.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#   14400 IN      PTR     myns1.my.doamin.com.
    5.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#   14400 IN      PTR     myns2.my.doamin.com..
    6.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#   14400 IN      PTR     mailhost.my.doamin.com.
    /etc/bind/named.conf
    Code:
    // This is the primary configuration file for the BIND DNS server named.
    //
    // Please read /usr/share/doc/bind/README.Debian for information on the 
    // structure of BIND configuration files in Debian for BIND versions 8.2.1 
    // and later, *BEFORE* you customize this configuration file.
    //
    include "/etc/bind/rndc.key";
    include "/etc/bind/named.conf.acl";
    
    controls {
        inet 127.0.0.1 port 953
        allow { 127.0.0.1; } keys { "rndc-key"; };
    };
    
    include "/etc/bind/named.conf.options";
    
    // reduce log verbosity on issues outside our control
    logging {
        category lame-servers { null; };
    };
    
    view "internal" {
        match-clients { internal_nets; };
        recursion yes;
        include "/etc/bind/named.conf.local";
    };
    
    
    view "external" {
        match-clients { !internal_nets; };
        recursion yes;
        include "/etc/bind/named.conf.external";
    };
    
    view "default" {
        match-clients { any; };
        zone "." {
            type hint;
            file "/etc/bind/db.root";
        };
    
    
        zone "localhost" {
            type master;
            file "/etc/bind/db.localhost";
        };
    
        zone "127.in-addr.arpa" {
            type master;
            file "/etc/bind/db.127";
        };
    
        zone "0.in-addr.arpa" {
            type master;
            file "/etc/bind/db.0";
        };
    
        zone "255.in-addr.arpa" {
            type master;
             file "/etc/bind/db.255";
        };
    };
    /etc/bind/named.conf.local
    Code:
    //
    // Add local zone definitions here.
    zone "my.domain.com" {
            type master;
            file "/etc/bind/db.my.domain";
        allow-transfer { zone_transfers ; };
    };
    
    zone "myotherdomain.com" {
            type master;
            file "/etc/bind/db.myotherdomain.com";
        allow-transfer { zone_transfers ; };
    };
    
    zone "200.168.192.in-addr.arpa" in {
            type master;
            file "/etc/bind/db.200.168.192";
        allow-transfer { zone_transfers ; };
    };
    
    zone "#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.ip6.arpa" {
            type master;
            file "/etc/bind/db.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#";
    };
    /etc/bind/named.conf.external
    Code:
    //
    // Add local zone definitions here.
    
    zone "myotherdomain.com" {
            type master;
            file "/etc/bind/db.ext.myotherdomain.com";
        allow-transfer { zone_transfers ; };
    };
    
    zone "#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.ip6.arpa" {
            type master;
            file "/etc/bind/db.ext.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#";
    };
    /etc/bind/named.conf.acl
    Code:
    acl "internal_nets" {
        192.168.200.0/24;
        ####:####:####:####::1/96;
    };
    
    acl "zone_transfers" {
        192.168.200.###;
        192.168.200.###;
        ####:####:####:####::11;
        192.168.200.###;
        ####:####:####:####::::1;
    };
    // // Add local zone definitions here. zone "myotherdomain.com" { type master; file "/etc/bind/db.ext.myotherdomain.com"; allow-transfer { zone_transfers ; }; }; zone "#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.ip6.arpa" { type master; file "/etc/bind/db.ext.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#"; };
    how db.ext.myotherdomain.com entries will come .Is this for second site ........?
    Last edited by Rakeshvijayan; December 14th, 2012 at 08:39 AM.
    you can learn what is computer ubuntu is the best way .I start learning ubuntu in 2-1-2010 .start with UBUNTU 9 now using 12.04

Page 3 of 3 FirstFirst 123

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •