dns.resolver.query(domain,'NS') - bad answer

133 views
Skip to first unread message

Peter Václavek

unread,
Jan 26, 2013, 5:13:35 AM1/26/13
to dnspyth...@googlegroups.com
I encountered problem with answer from dns.resolver.query. When Im asking NS record for from domain 004.sk it responds with bad answer.
This occurs just with this specific domain: 004.sk


answers = dns.resolver.query('004.sk', 'NS')
print answers[0]

Output:
fivestar.

Expected Output:
ns1.fivestar.sk

With other domains I havent met with this problem.

Bob Halley

unread,
Jan 26, 2013, 12:09:33 PM1/26/13
to dnspyth...@googlegroups.com
The problem is not with dnspython, but with one of the authorities, ns1.fivestar.uk:


; <<>> DiG 9.8.3-P1 <<>> @ns1.fivestar.sk. 004.sk. ns
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39839
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;004.sk. IN NS

;; ANSWER SECTION:
004.sk. 3600 IN NS fivestar.

;; Query time: 74 msec
;; SERVER: 217.73.17.52#53(217.73.17.52)
;; WHEN: Sat Jan 26 17:06:09 2013
;; MSG SIZE  rcvd: 46

(The other authority doesn't have AA set on responses)
 

Peter Václavek

unread,
Jan 27, 2013, 6:27:14 AM1/27/13
to dnspyth...@googlegroups.com
yes, you are right. I apologize, I didnt expected that it might be a problem on the side of authorities.
Reply all
Reply to author
Forward
0 new messages