#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Name server not working


    I have tried setting up my own name server for my domain but this is my first time and cannon t get it working . I am trying to set it up so it works remotely. I have forwarded port 53 to the server. This is my

    /etc/named.conf

    Code:
    //
    // /etc/named.conf
    //
    
    options {
            directory "/var/named";
            pid-file "/run/named/named.pid";
            auth-nxdomain yes;
            datasize default;
    // Uncomment these to enable IPv6 connections support
    // IPv4 will still work:
    //      listen-on-v6 { any; };
    // Add this for no IPv4:
    //      listen-on { none; };
    
            // Default security settings.
            allow-recursion { 127.0.0.1; };
            allow-transfer { none; };
            allow-update { none; };
        version none;
        hostname none;
        server-id none;
    };
    
    zone "localhost" IN {
            type master;
            file "localhost.zone";
            allow-transfer { any; };
    };
    
    zone "0.0.127.in-addr.arpa" IN {
            type master;
            file "127.0.0.zone";
            allow-transfer { any; };
    };
    
    zone "." IN {
            type hint;
            file "root.hint";
    };
    zone "codepent.com" IN {
            type master;
            file "codepent.zone";
            allow-query { any; };
            allow-transfer { any; };
    };
    
    logging {
            channel xfer-log {
                    file "/var/log/named.log";
                    print-category yes;
                    print-severity yes;
                    print-time yes;
                    severity info;
            };
            category xfer-in { xfer-log; };
            category xfer-out { xfer-log; };
            category notify { xfer-log; };
    };
    and my /var/named/codepent.zone

    Code:
    $TTL    86400 ; 24 hours could have been written as 24h or 1d
    $ORIGIN codepent.com.
    @  1D  IN        SOA ns1.codepent.tk.   admin.codepent.com. (
                                  2002022401 ; serial
                                  3H ; refresh
                                  15 ; retry
                                  1w ; expire
                                  3h ; minimum
                                 )
           IN  NS     ns1.codepent.com. 
           IN  NS     ns2.codepent.com. 
           IN  MX 10  codepent.com. 
    ; server host definitions
    ns1    IN  A      192.168.1.7  
    www    IN  A      192.168.1.7 
    *    IN  CNAME  www.codepent.com.
    ns1    IN  CNAME  ns1.codepent.tk
    I hav masked my name server using another domain ns1.codepent.tk. Any help would be greatly appreciated.
  2. #2
  3. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,103
    Rep Power
    5049
    To get DNS working remotely, you need to use your external IP address.
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0
    Hi , Check your domain name server is working properly or not by visiting the site Whoisxy.com . If not working properly , then call the DNS professional to fix the problem .
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    2
    Rep Power
    0
    ns1 IN A 192.168.1.7
    www IN A 192.168.1.7
    Those are internal IPs, OP. Go to Google and type "what is my IP?" to get your external IP address.

    Once you've established your external IP, try doing some DiGs against it to see if you're getting an answer. Something like this (from a bash prompt with BIND tools):

    dig @x.x.x.x hostname

    If you get back your record for the host in the zone, you'll know it's answering.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Location
    India
    Posts
    14
    Rep Power
    0
    After making all changes, check your domain at intodns.com. It will show you all errors that present in the dns zone.

IMN logo majestic logo threadwatch logo seochat tools logo