I can't understand why my dns server won't work. i get this, when i testing with "dig

Discussion in 'Server Operation' started by d3w4n664, Jul 18, 2013.

  1. d3w4n664

    d3w4n664 New Member

    i have some configuration for my local virtual private server ( Centos 6.4 ), when i do " DIG " appears notification ";; connection timed out; no servers could be reached"

    // my ipaddress 192.168.42.12/24
    // my VPS ipaddress 192.168.42.12
    // my VPS namesever 192.168.42.13

    ======================named.conf===========================
    options {
    listen-on port 53 {127.0.0.1; };
    listen-on-v6 port 53 { ::1; };
    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 { 192.168.42.0/24; localhost; };
    recursion yes;
    allow-recursion {any;};


    /* Path to ISC DLV key */
    bindkeys-file "/etc/named.iscdlv.key";

    managed-keys-directory "/var/named/dynamic";
    };
    controls { inet 127.0.0.1 allow {localhost;} keys {rndc-key;};
    };

    logging {
    channel default_debug {
    file "data/named.run";
    severity dynamic ;};
    };
    zone "." IN {
    type hint;
    file "named.ca";
    };

    zone "dewangga.com" IN {
    type master ;
    file "fwd.dewangga.com";
    allow-update { none; };
    };

    zone "42.168.192.in-addr.arpa" IN {
    type master;
    file "rev.dewangga.com";
    allow-update {none;};
    };

    include "/etc/named.rfc1912.zones";
    include "/etc/named.root.key";
    include "/etc/rndc.key";
    =====================================================

    =====================fwd.dewangga.com==================
    $TTL 86400
    @ IN SOA dns1.dewangga.com. root.dewangga.com. (
    2011071001 ;Serial
    3600 ;Refresh
    1800 ;Retry
    604800 ;Expire
    86400 ;Minimum
    )
    @ IN NS dns1.dewangga.com.

    dns1 IN A 192.168.42.12
    ======================================================

    =====================rev.dewangga.com===================

    TTL 86400
    @ IN SOA dns1.dewangga.com. root.dewangga.com. (
    2011071001 ; serial
    3600 ; refresh
    1800 ; retry
    604800 ; expire
    86400 ; minimum
    )
    NS dns1.dewangga.com.
    1 PTR dns1.dewangga.com.
    dns1 A 192.168.42.12

    ======================================================

    when I wrote "dig dns1.dewangga.com" show

    [[email protected] /]# dig dns1.dewangga.com

    ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6_4.4 <<>>dns1.dewangga.com
    ;; global options: +cmd
    ;; connection timed out; no servers could be reached



    Please help me to solved my problems, im sory if my word disorderly, because i newbie. please help me.
     

Share This Page