Skip Menu |

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

Report information
The Basics
Id: 78878
Status: rejected
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: jhuysing [...] gmail.com
Cc:
AdminCc:

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



Running Net::DNS ver 8.68 This example fails with "no nameserver" when I run this. (replaced example.com with a valid domain for our network) resolve.conf has nameserver localhost Dig and host both return valid results use Net::DNS; my $res = Net::DNS::Resolver->new; my $query = $res->query("example.com", "SOA"); if ($query) { ($query->answer)[0]->print; } else { print "query failed: ", $res->errorstring, "\n"; }
Hi John, Unfortunately I was unable to reproduce your problem. Does it report an error message? Does it also occur if you have "nameserver 127.0.0.1" in /etc/resolv.conf i.s.o. "nameserver localhost"? On Thu 09 Aug 2012 19:23:08, jhuysing@gmail.com wrote: Show quoted text
> Running Net::DNS ver 8.68 > > This example fails with "no nameserver" when I run this. > (replaced example.com with a valid domain for our network) > > resolve.conf has nameserver localhost > > > Dig and host both return valid results > > use Net::DNS; > my $res = Net::DNS::Resolver->new; > my $query = $res->query("example.com", "SOA"); > > if ($query) { > ($query->answer)[0]->print; > } else { > print "query failed: ", $res->errorstring, "\n"; > } >
Subject: Re: [rt.cpan.org #78878]
Date: Thu, 30 Aug 2012 14:06:03 +1000
To: bug-Net-DNS [...] rt.cpan.org
From: John huysing <jhuysing [...] gmail.com>
Problem sort of solved Vendor scripts had configured resolve.conf on server with "localhost" instead of 127.0.0.1. Have modifed Net::DNS to check for "localhost" and replace it with 127.0.0.1 or ::1. On 24 August 2012 00:03, NLnet Labs via RT <bug-Net-DNS@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=78878 > > > Hi John, > > Unfortunately I was unable to reproduce your problem. Does it report an > error message? Does it also occur if you have "nameserver 127.0.0.1" in > /etc/resolv.conf i.s.o. "nameserver localhost"? > > > > On Thu 09 Aug 2012 19:23:08, jhuysing@gmail.com wrote:
> > Running Net::DNS ver 8.68 > > > > This example fails with "no nameserver" when I run this. > > (replaced example.com with a valid domain for our network) > > > > resolve.conf has nameserver localhost > > > > > > Dig and host both return valid results > > > > use Net::DNS; > > my $res = Net::DNS::Resolver->new; > > my $query = $res->query("example.com", "SOA"); > > > > if ($query) { > > ($query->answer)[0]->print; > > } else { > > print "query failed: ", $res->errorstring, "\n"; > > } > >
> > > >
Subject: Re: [rt.cpan.org #78878]
Date: Thu, 30 Aug 2012 20:56:16 -0600
To: bug-Net-DNS [...] rt.cpan.org
From: Rob Brown <bbb [...] cpan.org>
The line "nameserver localhost" is not a valid resolv.conf entry. It whole point of resolv is to resolve names into ips, so having a name for a nameserver is rather cyclical and confusing anyways. On Wed, Aug 29, 2012 at 10:06 PM, John huysing via RT <bug-Net-DNS@rt.cpan.org> wrote: Show quoted text
> Queue: Net-DNS > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=78878 > > > Problem sort of solved > > Vendor scripts had configured resolve.conf on server with "localhost" > instead of 127.0.0.1. > > Have modifed Net::DNS to check for "localhost" and replace it with > 127.0.0.1 or ::1. > > > On 24 August 2012 00:03, NLnet Labs via RT <bug-Net-DNS@rt.cpan.org> wrote: >
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=78878 > >> >> Hi John, >> >> Unfortunately I was unable to reproduce your problem. Does it report an >> error message? Does it also occur if you have "nameserver 127.0.0.1" in >> /etc/resolv.conf i.s.o. "nameserver localhost"? >> >> >> >> On Thu 09 Aug 2012 19:23:08, jhuysing@gmail.com wrote:
>> > Running Net::DNS ver 8.68 >> > >> > This example fails with "no nameserver" when I run this. >> > (replaced example.com with a valid domain for our network) >> > >> > resolve.conf has nameserver localhost >> > >> > >> > Dig and host both return valid results >> > >> > use Net::DNS; >> > my $res = Net::DNS::Resolver->new; >> > my $query = $res->query("example.com", "SOA"); >> > >> > if ($query) { >> > ($query->answer)[0]->print; >> > } else { >> > print "query failed: ", $res->errorstring, "\n"; >> > } >> >
>> >> >> >>
>
On Thu 30 Aug 2012 22:56:25, BBB wrote: Show quoted text
> The line "nameserver localhost" is not a valid resolv.conf entry. It > whole point of resolv is to resolve names into ips, so having a name > for a nameserver is rather cyclical and confusing anyways.
I agree. Closing ticket.