Subject: | if /etc/resolv.conf is not readable then importing Net::DNS fails |
Date: | Sun, 3 Jan 2010 22:30:13 +0100 |
To: | bug-Net-DNS [...] rt.cpan.org |
From: | Arkadiusz Miskiewicz <arekm [...] maven.pl> |
If /etc/resolv.conf is not readable (for example due to SELinux policy) then even "use Net::DNS" fails.
[builder@ymir-builder ~]$ perl
use Net::DNS;
Could not open /etc/resolv.conf: Permission denied at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-pld-linux-thread-multi/Net/DNS.pm line 91
Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-pld-linux-thread-multi/Net/DNS.pm line 91.
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-pld-linux-thread-multi/Net/DNS.pm line 91.
Compilation failed in require at - line 1.
BEGIN failed--compilation aborted at - line 1.
At least import should success in such case.
--
Arkadiusz Miśkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/