Skip Menu |

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

Report information
The Basics
Id: 72860
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: brigg100 [...] umn.edu
Cc:
AdminCc:

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



Subject: DNS suffixed onto domain?
Date: Wed, 30 Nov 2011 19:35:01 -0600
To: bug-Net-DNS [...] rt.cpan.org
From: Taylor Briggs <brigg100 [...] umn.edu>
Perl version 5.12.3 Distribution: Net::Dns v0.67 OS: Windows Vista I just have a general question more than a bug I guess. Sorry if this isn't the right place but I couldn't find anything on your site to use to contact you other than this. I am a college student working on a DNS project for school and am using Net::Dns to assist me. My question pertains to the response handler detailed on this page: http://www.net-dns.org/docs/Net/DNS/Nameserver.html The replyHandler gets back a variable 'qname' from the nameserver. I have noticed that qname is always of the form: <domain sought>.<dns>. Where the domain sought is something like "google.com" and the dns is (for me) " hsd1.mn.comcast.net". e.g. "google.com.hsd1.mn.comcast.net". For the purposes of my assignment I really need the dns to not be suffixed onto the qname. I really would like to just get "google.com" (for our example) back from this. Is there someway I can configure this to not suffix qname with the dns? here is how I setting up my nameserver: my $name_server = Net::DNS::Nameserver->new( LocalAddr => "127.0.0.1", LocalPort => "53", ReplyHandler => \&reply_handler, Verbose => 1 ) || die "Couldn't create nameserver object\n"; Thanks for your help, Taylor -- Taylor Briggs Computer Science, Undergraduate University of Minnesota - Twin Cities
Subject: Re: [rt.cpan.org #72860] DNS suffixed onto domain?
Date: Thu, 01 Dec 2011 10:26:08 +0100
To: bug-Net-DNS [...] rt.cpan.org
From: Willem Toorop <willem [...] net-dns.org>
Hi Taylor, I have just enabled willem at net-dns dot org, and listed the address on the authors page of the site. A Nameserver instance gets the query name from the packet and does not append a search domain. I suspect that the tool you use to query the nameserver must have appended the search domain. You can probably prevent it from doing that by appending a trailing dot to the name you are querying. So try querying for "google.com." and let me know what happens via RT or directly. Regards, Willem
Tayler confirmed by e-mail that the issue is resolved.