Nslookup returns "no answer" but dig works?!

Nslookup returns "no answer" but dig works?!

Post by Savu » Thu, 23 Jan 2003 03:01:22



I'm having a strange problem, nslookup replies "No answer" when
checking a zone on the dns server. However dig works without a hitch.
We have checked if the problem was related to the firewall, even
though we turned of the firewall nslookup replied no answer. My
question is, could this be a problem related to the sone file? Perhaps
it dislikes how the sone files are formatted?

Here is a printout of one query made by nslookup:
    QUESTIONS:
        bestwestern.no, type = A, class = IN
    ANSWERS:
    AUTHORITY RECORDS:
    ->  bestwestern.no
        origin = etype.nettdesign.no
        mail addr = hostmaster.nettdesign.no
        serial = 2002012101
        refresh = 3600
        retry = 900
        expire = 3600000
        minimum = 3600
    ADDITIONAL RECORDS:
------------
*** Can't find bestwestern.no: No answer

Here is a query on atc.no
------------
    QUESTIONS:
        atc.no, type = A, class = IN
    ANSWERS:
    ->  atc.no
        internet address = 195.159.120.8
    AUTHORITY RECORDS:
    ->  atc.no
        nameserver = ns2.atc.no.
    ->  atc.no
        nameserver = ns.atc.no.
    ADDITIONAL RECORDS:
------------
Non-authoritative answer:
Name:   atc.no
Address: 195.159.120.8

Strange enough, the query on atc.no works.
If any of you guys have any idea on how to solve this, please tell :)

- Savuud

 
 
 

Nslookup returns "no answer" but dig works?!

Post by Mark_Andr.. » Thu, 23 Jan 2003 05:41:59


Quote:

> I'm having a strange problem, nslookup replies "No answer" when
> checking a zone on the dns server. However dig works without a hitch.
> We have checked if the problem was related to the firewall, even
> though we turned of the firewall nslookup replied no answer. My
> question is, could this be a problem related to the sone file? Perhaps
> it dislikes how the sone files are formatted?

> Here is a printout of one query made by nslookup:
>     QUESTIONS:
>         bestwestern.no, type = A, class = IN
>     ANSWERS:
>     AUTHORITY RECORDS:
>     ->  bestwestern.no
>         origin = etype.nettdesign.no
>         mail addr = hostmaster.nettdesign.no
>         serial = 2002012101
>         refresh = 3600
>         retry = 900
>         expire = 3600000
>         minimum = 3600
>     ADDITIONAL RECORDS:
> ------------
> *** Can't find bestwestern.no: No answer

> Here is a query on atc.no
> ------------
>     QUESTIONS:
>         atc.no, type = A, class = IN
>     ANSWERS:
>     ->  atc.no
>         internet address = 195.159.120.8
>     AUTHORITY RECORDS:
>     ->  atc.no
>         nameserver = ns2.atc.no.
>     ->  atc.no
>         nameserver = ns.atc.no.
>     ADDITIONAL RECORDS:
> ------------
> Non-authoritative answer:
> Name:   atc.no
> Address: 195.159.120.8

> Strange enough, the query on atc.no works.
> If any of you guys have any idea on how to solve this, please tell :)

        You need learn how to inteperate nslookups answers.

        "No answer" means that it got no answer that contained the
        type you were requesting.

        It returns a different message if it get no replies from
        the nameserver (No response from server).

        Mark

Quote:

> - Savuud

--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia


 
 
 

Nslookup returns "no answer" but dig works?!

Post by Savu » Fri, 24 Jan 2003 03:55:43



>    You need learn how to inteperate nslookups answers.

>    "No answer" means that it got no answer that contained the
>    type you were requesting.

>    It returns a different message if it get no replies from
>    the nameserver (No response from server).

>    Mark

But why does it return "No answer"?
I was requesting general information from the domain, like this:
nslookup test.bbdo.no etype.nettdesign.no. If I try this with any
other dns servers I don't get the "No answer" error.

I suspect that the problem is related to my sone files.
Here is a print of the sone file:

$ORIGIN test.bbdo.no.
$TTL 3600
test.bbdo.no.        IN      SOA     etype.nettdesign.no.
hostmaster.nettdesign.no.  (
                                2003012101      ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum

        IN      NS      etype.nettdesign.no.
        IN      NS      ns2.rbnet.no.

        MX   10  mail.test.bbdo.no.

www             IN A 193.212.179.10
mail            IN A 193.212.179.10

- Savuud

 
 
 

Nslookup returns "no answer" but dig works?!

Post by Kevin Darc » Fri, 24 Jan 2003 04:25:47




>>        You need learn how to inteperate nslookups answers.

>>        "No answer" means that it got no answer that contained the
>>        type you were requesting.

>>        It returns a different message if it get no replies from
>>        the nameserver (No response from server).

>>        Mark

>But why does it return "No answer"?
>I was requesting general information from the domain, like this:
>nslookup test.bbdo.no etype.nettdesign.no. If I try this with any
>other dns servers I don't get the "No answer" error.

>I suspect that the problem is related to my sone files.
>Here is a print of the sone file:

>$ORIGIN test.bbdo.no.
>$TTL 3600
>test.bbdo.no.        IN      SOA     etype.nettdesign.no.
>hostmaster.nettdesign.no.  (
>                                2003012101      ; Serial
>                                3600    ; Refresh
>                                900     ; Retry
>                                3600000 ; Expire
>                                3600 )  ; Minimum

>        IN      NS      etype.nettdesign.no.
>        IN      NS      ns2.rbnet.no.

>        MX   10  mail.test.bbdo.no.

>www             IN A 193.212.179.10
>mail            IN A 193.212.179.10

The default query type is A. So what you actually asked for was an A
record with the name test.bbdo.no. That name exists (it owns SOA/NS/MX
records), but owns no A records. So you get a NOERROR response with 0
answers. If the name didn't exist at all, you'd get an NXDOMAIN response.

If you want to make a "general" query of a particular name, use the
"ANY" query type (sometimes known as QTYPE=*). But, there's no guarantee
you'll get a *complete* answer to an ANY query unless you send the query
to a server that is authoritative for the zone. If you send an ANY query
to a caching server, you'll probably just get whatever it happens to
have in its cache, if anything.

                                        - Kevin