LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   WARNING: One or more of your nameservers did not return any of your NS records. (https://www.linuxquestions.org/questions/linux-server-73/warning-one-or-more-of-your-nameservers-did-not-return-any-of-your-ns-records-4175482723/)

eiger3970 10-30-2013 01:25 AM

WARNING: One or more of your nameservers did not return any of your NS records.
 
Hi,
I need some help making a website live.
I tested www.intodns.com and it says my site has a number of errors:

www.intodns.com gives errors:
Error 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 respond are:
WAN IP.

Error Multiple Nameservers ERROR: Looks like you have less than 2 nameservers. According to RFC2182 section 5 you must have at least 3 nameservers, and no more than 7. Having 2 nameservers is also ok by me.

Error Missing nameservers reported by your nameservers You should already know that your NS records at your nameservers are missing, so here it is again:

ns2.domain.com.
ns1.domain.com.

SOA Error SOA record No valid SOA record came back!
MX Error MX Records Oh well, I did not detect any MX records so you probably don't have any and if you know you should have then they may be missing at your nameservers!
WWW Error WWW A Record ERROR: I could not get any A records for www.domain.com!

(I only do a cache request, if you recently added a WWW A record, it might not show up here.)

Any suggestions please?

bathory 10-30-2013 03:37 AM

Hi and welcome to LQ,

Without the zone file it's difficult to find what's wrong.
So please post your zone file, masking sensitive data (domain name and real IPs) if you want.

Regards

eiger3970 10-30-2013 04:50 AM

Thank you for the reply.
I think this is the zone file which I found in etc/named.conf/, however it doesn't look like the right details compared to an example I found online https://www.virtualmin.com/node/15567:
Code:

$ttl 38400
yourdomain.com.    IN    SOA    ns1.yourdomain.com. webmaster.yourdomain.com. (
            1055026205
            6H
            1H
            5D
            20M )
yourdomain.com.        IN    A    1.2.3.4
mysql.yourdomain.com.  IN    A    1.2.3.4
www.yourdomain.com.    IN    CNAME yourdomain.com.
ns1.yourdomain.com.    IN    A    1.2.3.4
ns2.yourdomain.com.    IN    A    1.2.3.5
yourdomain.com.        IN    NS    ns1.yourdomain.com.
yourdomain.com.        IN    NS    ns2.yourdomain.com.
mail.yourdomain.com.  IN    MX    1 yourdomain.com.



My details:
Code:

//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// 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";
        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";
        recursion yes;

        dnssec-enable yes;
        dnssec-validation yes;
        dnssec-lookaside auto;

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

        managed-keys-directory "/var/named/dynamic";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

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

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

zone "domain.com" {
        type master;
        file "/var/named/domain.com.hosts";
        allow-transfer {
                127.0.0.1;
                localnets;
                };
        };


bathory 10-30-2013 06:27 AM

I guess this is not the zone file in question, as this one has no errors.
Since you're running RHEL (or clone) the zone file should be located under /var/named (or under /var/named/chroot/var/named if you're running bind chrooted).

eiger3970 10-30-2013 05:34 PM

Thank you, yes, I found it in /var/named.

Here are the Zone file results:
Code:

$ttl 38400
@      IN      SOA    localhost.localdomain. root.localhost.localdomain. (
                        1383110743
                        10800
                        3600
                        604800
                        38400 )
@      IN      NS      localhost.localdomain.
domain.com.        IN      A      WAN IP
www.domain.com.    IN      A      WAN IP
ftp.domain.com.    IN      A      WAN IP
m.domain.com.      IN      A      WAN IP
localhost.domain.com.      IN      A      127.0.0.1
webmail.domain.com.        IN      A      WAN IP
admin.domain.com.  IN      A      WAN IP
mail.domain.com.  IN      A      WAN IP
domain.com.        IN      MX      5 mail.domain.com.
domain.com.        IN      TXT    "v=spf1 a mx a:domain.com ip4:192.168.1.163 ip4:WAN IP ?all"


eiger3970 10-30-2013 05:42 PM

Also, I think the issue is port 53 not receiving and/or letting packets through.
I need to figure out how to open port 53, as I have port forwarded port 53 on my router.

I will address this issue first as apparently this is the 1st priority before I check the Zone file.

bathory 10-31-2013 03:24 AM

Quote:

Originally Posted by eiger3970 (Post 5055500)
Also, I think the issue is port 53 not receiving and/or letting packets through.
I need to figure out how to open port 53, as I have port forwarded port 53 on my router.

I will address this issue first as apparently this is the 1st priority before I check the Zone file.

Do that and also change the NS record to read
Code:

@      IN      NS      domain.com.
or else your domain will not be resolvable


All times are GMT -5. The time now is 02:48 AM.