iam trying to execute the following command
nslookup -type=NS mit.edu
but each time it gives the following answer
Non-authoritative answer:
*** Can't find mit.edu: No answer
i have tried several sites other than mit.edu and got the same results
it only works when i use another dns server like:
nslookup -type=NS mit.edu 8.8.8.8
so what could be the reason for that ?
thanks
EDIT :
some suggested this is because nslookup is old and broken but the same happens with dig also
when executing dig ns mit.edu
the result doesn't contain the answer
; <<>> DiG 9.7.0-P1 <<>> ns mit.edu
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58275
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mit.edu. IN NS
;; Query time: 0 msec
;; SERVER: 10.0.0.138#53(10.0.0.138)
;; WHEN: Mon Nov 7 13:16:08 2011
;; MSG SIZE rcvd: 25
but when executing dig ns mit.edu @8.8.8.8
the result have the answer
; <<>> DiG 9.7.0-P1 <<>> ns mit.edu @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24574
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mit.edu. IN NS
;; ANSWER SECTION:
mit.edu. 2385 IN NS BITSY.mit.edu.
mit.edu. 2385 IN NS W20NS.mit.edu.
mit.edu. 2385 IN NS STRAWB.mit.edu.
;; Query time: 124 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Nov 7 13:16:36 2011
;; MSG SIZE rcvd: 86
so why does my local dns server (10.0.0.138) refuses to answer NS queries (either by dig or nslookup) ?