Subject: | Net::DNS::Reolver::Base->read_config_file list |
The file /etc/resolv.conf may contain more than one search or
nameserver keyword. In Net-DNS-0.75 a bug has been introduced that
only the last line is taken. Before that, all values were pushed
together, but the push has been removed in 0.75. It worked with
0.74. This little patch fixes the issue.
--- lib/Net/DNS/Resolver/Base.pm.orig Thu May 8 10:12:03 2014
+++ lib/Net/DNS/Resolver/Base.pm Tue May 13 00:35:14 2014
@@ -242,12 +242,14 @@ sub read_config_file {
};
/^search/ && do {
- ( $keyword, @searchlist ) = split;
+ ( $keyword, my @list ) = split;
+ push @searchlist, @list;
next;
};
/^nameserver/ && do {
- ( $keyword, @ns ) = split;
+ ( $keyword, my @list ) = split;
+ push @ns, @list;
foreach my $ns (@ns) {
$ns = '0.0.0.0' if $ns eq '0';
}
OpenBSD t430s.bluhm.invalid 5.5 GENERIC.MP#76 amd64
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
Platform:
osname=openbsd, osvers=5.5, archname=amd64-openbsd
uname='openbsd'
config_args='-dsE -Dopenbsd_distribution=defined -Dccflags=-DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -Dmksymlinks'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -fstack-protector -I/usr/local/include',
optimize='-O2',
cppflags='-DNO_LOCALE_NUMERIC -DNO_LOCALE_COLLATE -fno-strict-aliasing -fno-delete-null-pointer-checks -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.2.1 20070719 ', gccosandvers='openbsd5.5'
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-E -fstack-protector'
libpth=/usr/lib
libs=-lm -lutil -lc
perllibs=-lm -lutil -lc
libc=/usr/lib/libc.so.74.2, so=so, useshrplib=true, libperl=libperl.so.15.0
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-R/usr/libdata/perl5/amd64-openbsd/5.18.2/CORE'
cccdlflags='-DPIC -fPIC ', lddlflags='-shared -fPIC -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE
USE_LOCALE_CTYPE USE_PERLIO USE_PERL_ATOF
Locally applied patches:
uncommitted-changes
Built under openbsd
Compiled at May 12 2014 22:30:04
@INC:
/usr/local/libdata/perl5/site_perl/amd64-openbsd
/usr/libdata/perl5/site_perl/amd64-openbsd
/usr/local/libdata/perl5/site_perl
/usr/libdata/perl5/site_perl
/usr/libdata/perl5/amd64-openbsd/5.18.2
/usr/local/libdata/perl5/amd64-openbsd/5.18.2
/usr/libdata/perl5
/usr/local/libdata/perl5
.