few problems centos 5.5 dns

Discussion in 'HOWTO-Related Questions' started by 911, Apr 14, 2011.

  1. 911

    911 New Member

    Hello. Well I decided to create a server following the perfect server centos 5.5 guide. Few problems I am having, first is the nameserver. I use godaddy for my domains and I can't follow the other posts I have seen on ispconfig 3 and godaddy to create a nameserver as it has changed a bit. If I use my own nameservers, everything else in total dns isn't accessible. Only create ipv6 nameservers ns1 and ns2.domain.com, and the ip. Is that correct? Then ispconfig dns controls the rest such as mail, etc? Seems this is the only way, if i let godaddy control the other records, then im stuck with there nameservers.

    [​IMG]
     
    Last edited: Apr 14, 2011
  2. 911

    911 New Member

    After some time I checked dig also, I have 1 domain that I set the nameserver the way I explained before, and 1 I just set a few mins ago, here are the replies:

    The domain I set yesterday
    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> @localhost any pcgeekit.com
    ; (1 server found)
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached



    The domain I just set a few minutes ago
    # dig @localhost any videomole.com

    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> @localhost any videomole.com
    ; (1 server found)
    ;; global options: printcmd
    ;; connection timed out; no servers could be reached
    # dig @localhost any videomole.com

    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> @localhost any videomole.com
    ; (1 server found)
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 16348
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;videomole.com. IN ANY

    ;; Query time: 3103 msec
    ;; SERVER: 127.0.0.1#53(127.0.0.1)
    ;; WHEN: Thu Apr 14 05:45:05 2011
    ;; MSG SIZE rcvd: 31
     
  3. 911

    911 New Member

    OK. The way i have done the nameservers in godaddy was correct and here is the result. Domain NS records Nameserver records returned by the parent servers are:

    ns1.videomole.com. ['70.105.222.29'] [TTL=172800]
    ns2.videomole.com. ['70.105.222.29'] [TTL=172800]

    k.gtld-servers.net was kind enough to give us that information. This is from intodns.com. Now the problem is this. Mismatched NS records WARNING: One or more of your nameservers did not return any of your NS records.
    Error DNS servers responded ERROR: One or more of your nameservers did not respond:
    The ones that did not responded are:
    70.105.222.29. Any ideas? Thanks in advance.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Please make sure that port 53 (TCP and UDP!) is open in your firewall.

    Also, can you post your named.conf and the outputs of
    Code:
    netstat -tap
    and
    Code:
    netstat -uap
    ?
     
  5. 911

    911 New Member

    Thanks for your response. I port forward tcp and udp 53. Here is the check:Success: I can see your service on 70.105.222.29 on port (53)
    Your ISP is not blocking port 53


    # netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:imaps *:* LISTEN 2708/dovecot
    tcp 0 0 *:pop3s *:* LISTEN 2708/dovecot
    tcp 0 0 localhost.localdomain:10024 *:* LISTEN 2731/amavisd (maste
    tcp 0 0 localhost.localdomain:10025 *:* LISTEN 2790/master
    tcp 0 0 *:mysql *:* LISTEN 2679/mysqld
    tcp 0 0 *:pop3 *:* LISTEN 2708/dovecot
    tcp 0 0 localhost.local:dyna-access *:* LISTEN 2591/clamd
    tcp 0 0 *:kerberos-iv *:* LISTEN 2264/rpc.statd
    tcp 0 0 *:imap *:* LISTEN 2708/dovecot
    tcp 0 0 *:sunrpc *:* LISTEN 2227/portmap
    tcp 0 0 server1.911.com:domain *:* LISTEN 3801/named
    tcp 0 0 localhost.localdomai:domain *:* LISTEN 3801/named
    tcp 0 0 *:ftp *:* LISTEN 2837/pure-ftpd (SER
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2575/cupsd
    tcp 0 0 localhost.localdomain:rndc *:* LISTEN 3801/named
    tcp 0 0 *:smtp *:* LISTEN 2790/master
    tcp 0 0 *:imaps *:* LISTEN 2708/dovecot
    tcp 0 0 *:pop3s *:* LISTEN 2708/dovecot
    tcp 0 0 *:pop3 *:* LISTEN 2708/dovecot
    tcp 0 0 *:imap *:* LISTEN 2708/dovecot
    tcp 0 0 *:webcache *:* LISTEN 2820/httpd
    tcp 0 0 *:http *:* LISTEN 2820/httpd
    tcp 0 0 *:tproxy *:* LISTEN 2820/httpd
    tcp 0 0 *:domain *:* LISTEN 3801/named
    tcp 0 0 *:ftp *:* LISTEN 2837/pure-ftpd (SER
    tcp 0 0 *:ssh *:* LISTEN 2562/sshd
    tcp 0 0 localhost6.localdomain:rndc *:* LISTEN 3801/named
    tcp 0 0 *:https *:* LISTEN 2820/httpd
    tcp 0 148 server1.911.com:ssh ::ffff:192.168.3.101:50256 ESTABLISHED 4998/0
    tcp 0 0 server1.911.com:http ::ffff:119.63.192.134:25055 TIME_WAIT -
    #

    # netstat -uap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    udp 0 0 *:domain *:* 3801/named
    udp 0 0 server1.911.com:domain *:* 3801/named
    udp 0 0 localhost.locald:domain *:* 3801/named
    udp 0 0 *:34759 *:* 2955/avahi-daemon:
    udp 0 0 *:flexlm *:* 2264/rpc.statd
    udp 0 0 *:mdns *:* 2955/avahi-daemon:
    udp 0 0 *:fujitsu-dev *:* 2264/rpc.statd
    udp 0 0 *:sunrpc *:* 2227/portmap
    udp 0 0 *:ipp *:* 2575/cupsd
    udp 0 0 *:51202 *:* 2955/avahi-daemon:
    udp 0 0 *:domain *:* 3801/named
    udp 0 0 *:mdns *:* 2955/avahi-daemon:
    #

    named.conf :

    # vi /var/named/chroot/etc/named.conf
    // server as a caching only nameserver (as a localhost DNS resolver only).
    //
    // See /usr/share/doc/bind*/sample/ for example named configuration files.
    //
    options {
    listen-on port 53 { any; };
    listen-on-v6 port 53 { any; };
    directory "/var/named/chroot/var/named";
    dump-file "/var/named/chroot/var/named/data/cache_dump.db";
    statistics-file "/var/named/chroot/var/named/data/named_stats.txt";
    memstatistics-file "/var/named/chroot/var/named/data/named_mem_stats.txt";
    allow-query { any; };
    recursion yes;
    query-source address * port 53;
    };
    logging {
    channel default_debug {
    file "data/named.run";
    severity dynamic;
    };
    };
    include "/var/named/chroot/etc/named.conf.local";
     
  6. falko

    falko Super Moderator Howtoforge Staff

    What's in /var/named/chroot/etc/named.conf.local and /var/named/chroot/var/named/named.local?
     
  7. 911

    911 New Member

    Well, I'm not exactly sure what I did wrong, but it looks like at godaddy you have to set your ns1 and ns2, and they cant be alone, you have to keep the default nameservers also. Not sure if this is correct but it works. nslookup shows the correct info. Seems there should be a way to only use your nameservers and have the server control all the records. yes?
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Usually yes (see http://www.howtoforge.com/ispconfig_dns_godaddy to get the idea; GoDaddy's web interface has changed in the meantime).
     

Share This Page