Results 1 to 7 of 7
  1. #1
    Join Date
    May 2004
    Posts
    237

    Setup name server for a website ?

    Hi everyone,

    I've been setting up name server for my website. I'm using Centos 5, but never get it works.

    Here what i have done so far:
    yum install named
    Then i create named.conf in /etc
    PHP Code:
    options {
            
    version "Version Secured";
            
    directory "/var/named";
            
    /*
             * If there is a firewall between you and nameservers you want
             * to talk to, you might need to uncomment the query-source
             * directive below.  Previous versions of BIND always asked
             * questions using port 53, but BIND 8.1 uses an unprivileged
             * port by default.
             */
            // query-source address * port 53;
            
    recursion no;
    };
    logging {
            
    category lame-servers null; };
    };

    //
    // a caching only nameserver config
    //
    controls {
            
    inet 127.0.0.1 allow localhost; } keys rndckey; };
    };
    zone "." IN {
            
    type hint;
            
    file "named.ca";
    };

    zone "localhost" IN {
            
    type master;
            
    file "localhost.zone";
            
    allow-update none; };
    };

    zone "0.0.127.in-addr.arpa" IN {
            
    type master;
            
    file "named.local";
            
    allow-update none; };
    };

    include 
    "/etc/rndc.key";

    zone "glueg99.com" type masterfile "/var/named/glueg99.com.db"; }; 
    I created glueg99.com.db in /var/named
    PHP Code:
         
    $TTL 14400
    @       IN      SOA     ns1.glueg99.com.      root.glueg99.com. (
                                                    
    2007081300
                                                    14400
                                                    3600
                                                    1209600
                                                    86400 
    )

    glueg99.com14400   IN      NS      ns1.glueg99.com.


    ftp     14400   IN      A       209.99.56.22
    localhost       14400   IN      A       127.0.0.1
    mail    14400   IN      A       209.99.56.22
    pop     14400   IN      A       209.99.56.22
    glueg99
    .com14400   IN      A       209.99.56.22
    www     14400   IN      A       209.99.56.22
    glueg99
    .com14400   IN      MX      10 mail



    glueg99
    .com14400   IN      TXT     "v=spf1 a mx ip4:209.99.56.22 ?all" 
    When i start 'named' (service named restart), it tells me these errors:
    PHP Code:
    [root@v named]# service named restart
    Stopping named:                                            [FAILED]
    Starting named:
    Error in named configuration:
    zone localhost/INloading master file localhost.zonefile not found
    _default
    /localhost/INfile not found
    zone 0.0.127
    .in-addr.arpa/INloading master file named.localfile not found
    _default
    /0.0.127.in-addr.arpa/INfile not found
    zone glueg99
    .com/INloaded serial 2007081300
                                                              
    [FAILED
    Would someone tell me what did i do wrong here ? My website has been down and i am so frustrate about it. I don't like to use free NS from other sites , i'd rather set up my own NS. Thanks alot.

  2. #2
    Join Date
    Aug 2003
    Location
    Taiwan
    Posts
    1,103
    it should be

    zone "." {
    type hint;
    file "named.ca";
    };

    without IN
    © www.hostinginside.com AS9678 √
    © Taiwan Colocation and Dedicated Server
    © Taiwan, Singapore, US, UK & Germany KVM Based VPS with RAID 10

  3. #3
    Join Date
    May 2004
    Posts
    237
    the named is started but i got a error in dnsstuff.com

    Code:
    Failed - No NS A records at nameservers
    
    WARNING: Your nameservers do not include any corresponding A records when asked for your NS records. 
    
    They probably are not returning the A records when asked, which can prevent some other DNS servers from contacting your DNS servers. 
    They should do this if they are authoritative for those A records (in BIND, you should not use 'minimal-responses yes;').

  4. #4
    Did you create an A record for ns1.glueg99.com inside of /var/named?

  5. #5
    Join Date
    May 2004
    Posts
    237
    Quote Originally Posted by FirmbIT View Post
    Did you create an A record for ns1.glueg99.com inside of /var/named?
    thanks. I fixed it and it works now.

    Last question, i don't really understand this message from dnsstuff

    Code:
    WARNING: One or more of your DNS servers does not accept TCP connections. 
    Although rarely used, TCP connections are occasionally used instead of UDP connections.
    When firewalls block the TCP DNS connections, it can cause hard-to-diagnose problems. The problem servers are:
    
    209.99.56.22: Error [Connection refused (10061)].
    is that matter to my dns ?Thanks

  6. #6
    Do you have a hardware/software firewall enabled on this server?

  7. #7
    Join Date
    May 2004
    Posts
    237
    Quote Originally Posted by FirmbIT View Post
    Do you have a hardware/software firewall enabled on this server?
    nope, this server was install with fresh Centos. I can ping from other server to that server fine, from that server i can go online and access to other server just fine too.

Posting Permissions

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