Skip Menu |

This queue is for tickets about the Net-DNS-Dig CPAN distribution.

Report information
The Basics
Id: 83317
Status: resolved
Worked: 5 hours (300 min)
Priority: 0/
Queue: Net-DNS-Dig

People
Owner: Nobody in particular
Requestors: kes-kes [...] yandex.ru
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: module return unexpected results
this is response for A record $VAR1 = [ '\\&бj' ]; in text format: ;; ;; Got answer. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41985 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 5, ADDITIONAL: 10 ;; QUESTION SECTION: ;testforme.ru. IN A ;testforme.ru. IN A ;; ANSWER SECTION: testforme.ru. 1 IN A 92.38.225.106 testforme.ru. 1 IN A 92.38.225.106 this is a part of response data ofr SRV record { 'RDATA' => [ '^@^T^@^@^T^Lxmpp-server2^Al^Fgoogle^Ccom^@' ], 'CLASS' => 1, 'NAME' => '_jabber._tcp.testforme.ru', 'RDLEN' => 33, 'TTL' => 1, 'TYPE' => 33 }, { 'RDATA' => [ '^@^T^@^@^T^Lxmpp-server3^Al^Fgoogle^Ccom^@' ], in text format% ;; ANSWER SECTION: testforme.ru. 1 IN A 92.38.225.106 testforme.ru. 1 IN A 92.38.225.106 _jabber._tcp.testforme.ru. 1 IN SRV \\# 32 0005000014950b786d70702d736572766572016c06676f6f676c6503636f6d00 _jabber._tcp.testforme.ru. 1 IN SRV \\# 33 0014000014950c786d70702d73657276657231016c06676f6f676c6503636f6d00 _jabber._tcp.testforme.ru. 1 IN SRV \\# 33 0014000014950c786d70702d73657276657232016c06676f6f676c6503636f6d00 _jabber._tcp.testforme.ru. 1 IN SRV \\# 33 0014000014950c786d70702d73657276657233016c06676f6f676c6503636f6d00 _jabber._tcp.testforme.ru. 1 IN SRV \\# 33 0014000014950c786d70702d73657276657234016c06676f6f676c6503636f6d00 _jabber._tcp.testforme.ru. 1 IN SRV \\# 33 0014000014950c786d70702d73657276657231016c06676f6f676c6503636f6d00 _jabber._tcp.testforme.ru. 1 IN SRV \\# 33 0014000014950c786d70702d73657276657232016c06676f6f676c6503636f6d00 _jabber._tcp.testforme.ru. 1 IN SRV \\# 33 0014000014950c786d70702d73657276657233016c06676f6f676c6503636f6d00 _jabber._tcp.testforme.ru. 1 IN SRV \\# 33 0014000014950c786d70702d73657276657234016c06676f6f676c6503636f6d00 _jabber._tcp.testforme.ru. 1 IN SRV \\# 32 0005000014950b786d70702d736572766572016c06676f6f676c6503636f6d00 doging #dig -t SRV _jabber._tcp.testforme.ru ; <<>> DiG 9.8.4-P1 <<>> -t SRV _jabber._tcp.testforme.ru ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65206 ;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 2, ADDITIONAL: 10 ;; QUESTION SECTION: ;_jabber._tcp.testforme.ru. IN SRV ;; ANSWER SECTION: _jabber._tcp.testforme.ru. 1 IN SRV 20 0 5269 xmpp-server1.l.google.com. _jabber._tcp.testforme.ru. 1 IN SRV 20 0 5269 xmpp-server2.l.google.com. _jabber._tcp.testforme.ru. 1 IN SRV 20 0 5269 xmpp-server3.l.google.com. _jabber._tcp.testforme.ru. 1 IN SRV 20 0 5269 xmpp-server4.l.google.com. _jabber._tcp.testforme.ru. 1 IN SRV 5 0 5269 xmpp-server.l.google.com. ;; AUTHORITY SECTION: testforme.ru. 1 IN NS ns1.reg.ru. testforme.ru. 1 IN NS ns2.reg.ru. ;; ADDITIONAL SECTION: ns1.reg.ru. 1 IN A 31.31.205.55 ns1.reg.ru. 1 IN A 88.212.207.121 ns1.reg.ru. 1 IN A 31.31.204.52 ns1.reg.ru. 1 IN A 31.31.205.39 ns1.reg.ru. 1 IN AAAA 2a00:f940::25 ns2.reg.ru. 1 IN A 31.31.204.25 ns2.reg.ru. 1 IN A 31.31.204.37 ns2.reg.ru. 1 IN A 31.31.205.56 ns2.reg.ru. 1 IN A 88.212.207.122 ns2.reg.ru. 1 IN AAAA 2a00:f940::37 ;; Query time: 11 msec ;; SERVER: 31.31.204.53#53(31.31.204.53) ;; WHEN: Thu Feb 14 12:49:40 2013 ;; MSG SIZE rcvd: 491
The results you see returned is the raw "rdata" stream from an unsupported RR type, namely SRV. Support has been added in the next revision of Net::DNS::ToolKit v 0.46 There is also a new version of Net::DNS::Dig, however the only additions are user/developer debug configuration options to print out the raw DNS packet information in human readable form. The new version is not needed to support SRV records, it does so automatically with the updated Net::DNS::ToolKit.