Skip Menu |

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

Report information
The Basics
Id: 83315
Status: resolved
Priority: 0/
Queue: Net-Nslookup

People
Owner: darren [...] cpan.org
Requestors: kes-kes [...] yandex.ru
Cc:
AdminCc:

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



Subject: do support for SRV record
nslookup error: Unknown type 'SRV' at /usr/local/share/perl/5.14.2/Net/Nslookup.pm line 72.
From: kes-kes [...] yandex.ru
You must add simple line: SOA dummy + SRV target );
On Thu Feb 14 04:09:28 2013, kes-kes@yandex.ru wrote: Show quoted text
> You must add simple line: > > SOA dummy > + SRV target > );
This seems reasonable and simple, and seems to work. Can you supply a hostname with a SRV record for me to test against?
From: kes-kes [...] yandex.ru
Show quoted text
> Can you supply a hostname with a SRV record for me to test against?
# nslookup Show quoted text
> set type=SRV > _jabber._tcp.testforme.ru
Server: 31.31.204.53 Address: 31.31.204.53#53 Non-authoritative answer: _jabber._tcp.testforme.ru service = 20 0 5269 xmpp-server4.l.google.com. _jabber._tcp.testforme.ru service = 5 0 5269 xmpp-server.l.google.com. _jabber._tcp.testforme.ru service = 20 0 5269 xmpp-server1.l.google.com. _jabber._tcp.testforme.ru service = 20 0 5269 xmpp-server2.l.google.com. _jabber._tcp.testforme.ru service = 20 0 5269 xmpp-server3.l.google.com.
I've added your recommended line, and the result is: $ make && perl -Mblib -MNet::Nslookup -wle '@n = nslookup(host => shift, type => "SRV"); print join "\n", @n' _jabber._tcp.testforme.ru xmpp-server4.l.google.com xmpp-server1.l.google.com xmpp-server2.l.google.com xmpp-server.l.google.com xmpp-server3.l.google.com I'll roll a new dist (2.02) for testing.
I uploaded a new release (http://search.cpan.org/~darren/Net-Nslookup-2.02/) which provides SRV records.