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