Find the answer to your Linux question:
Results 1 to 2 of 2
Hello everybody, I have just bought a new domain and created ns1.domain.com Nameserver point to XXX.XXX.XXX.XXX of the DNS server( the public static ip address) I have installed the DNS ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    11

    Need for help about BIND9


    Hello everybody,

    I have just bought a new domain and created ns1.domain.com Nameserver point to XXX.XXX.XXX.XXX of the DNS server( the public static ip address)

    I have installed the DNS server on Centos 6.3 64bits. I have configured to nat the port on Firewall for query from port 53 to DNS server. But i can not resolve any record of the DNS Server from internet. The DNS local is ok, 3 days was gone. Here is my configuration file.Please help me.

    Code:
    options {
    listen-on port 53 { 127.0.0.1; 192.168.0.108; };
    listen-on-v6
    { none; };
    directory "/var/named";
    
    dump-file "/var/named/data/cache_dump.db";
    
    statistics-file "/var/named/data/named_stats.txt";
    
    memstatistics-file "/var/named/data/named_mem_stats.txt";
    allow-query
    { 
    any;
    
    };
    allow-transfer { localhost; 192.168.0.0/24; };
    recursion yes;
    dnssec-enable yes;
    dnssec-validation yes;
    
    dnssec-lookaside auto;
    bindkeys-file "/etc/named.iscdlv.key";
    };
    
    logging {
            channel default_debug {
                    file "data/named.run";
                    severity dynamic;
            };
    };
    
    view "internal" {
            match-clients {
                    localhost;
                    192.168.0.0/24;
            };
            zone "." IN {
                    type hint;
                    file "named.ca";
            };
            zone "domain.com" IN {
                    type master;
                    file "domain.com.lan";
                    allow-update { none; };
            };
            zone "0.168.192.in-addr.arpa" IN {
                    type master;
                    file "192.db";
                    allow-update { none; };
            };
    //include "/etc/named.rfc1912.zones";
    };
    view "external" {
            match-clients { any; };
            allow-query { any; };
            recursion no;
            zone "domain.com" IN {
                    type master;
                    file "domain.com.wan";
                    allow-update { none; };
            };
            
    };
    [CODE]
    Zone domain.com.lan
    Code:

    Code:
    $TTL 86400
    @   IN  SOA     ns1.domain.com. root.domain.com. (
            2011071001  ;Serial
            3600        ;Refresh
            1800        ;Retry
            604800      ;Expire
            86400       ;Minimum TTL
    )
            IN  NS      ns1.domain.com.
            IN  A       192.168.0.108
            IN  MX 10   ns1.domain.com.
    
    ns1     IN  A       192.168.0.108
    www	IN CNAME	ns1
    mail	IN CNAME	ns1
    Zone domain.com.wan
    Code:
    Code:
    $TTL 86400
    @   IN  SOA     ns1.domain.com. root.domain.com. (
            2011071001  ;Serial
            3600        ;Refresh
            1800        ;Retry
            604800      ;Expire
            86400       ;Minimum TTL
    )
            IN  NS      ns1.domain.com.
            IN  A       XXX.XXX.XXX.XXX
            IN  MX 10   ns1.domain.com.
    ns1     IN  A       XXX.XXX.XXX.XXX
    www	IN CNAME	ns1
    mail   IN CNAME ns1
    fpt	IN	A	XXX.XXX.XXX.XXX

  2. #2
    Just Joined!
    Join Date
    Jan 2012
    Posts
    8
    Did you open port 53 upd/tcp in IPTABLES for your external interface? Also make sure you have both UPD/TCP open on the firewall.
    Last edited by ellisgl; 10-02-2012 at 03:42 AM.

Posting Permissions

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