Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2001 11:28:54 -0700
From:      Jonathan Hilgeman <JHilgeman@ecx.com>
To:        "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@FreeBSD.ORG>
Subject:   Host name lookup failure
Message-ID:  <5D90F61EB6FDD411836500508B137F1A2689C5@mailsvr.ecx.com>

next in thread | raw e-mail | index | archive | help
Hi,
I just installed Webmin on my FreeBSD 4.2 box, and tried to update CPAN via
its Perl module interface, but the output says that it can't see
ftp.perl.org when it tries to fetch something. So I went back to the shell
and tried the following:

su-2.04# ping perl.org
ping: cannot resolve perl.org: Host name lookup failure

su-2.04# ping ftp.perl.org
ping: cannot resolve ftp.perl.org: Unknown server error

su-2.04# ping ftp.perl.com
PING www.perl.com (208.201.239.56): 56 data bytes
64 bytes from 208.201.239.56: icmp_seq=0 ttl=52 time=47.158 ms
64 bytes from 208.201.239.56: icmp_seq=1 ttl=52 time=69.657 ms
^C
--- www.perl.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 47.158/58.407/69.657/11.249 ms

su-2.04# host perl.com
perl.com has address 208.201.239.56
perl.com mail is handled (pri=0) by mail.perl.com

su-2.04# host perl.org
perl.org mail is handled (pri=12801) by perlmail.valueclick.com
perl.org mail is handled (pri=12816) by lux.valueclick.com

su-2.04# host ftp.perl.org
ftp.perl.org is a nickname for ftp.perl.org.develooper.com
ftp.perl.org.develooper.com is a nickname for ftp.cpan.ddns.develooper.com
ftp.cpan.ddns.develooper.com has address 206.253.222.50
ftp.cpan.ddns.develooper.com mail is handled (pri=10) by
miette.develooper.com
ftp.cpan.ddns.develooper.com mail is handled (pri=11) by
relaybackup.netcetera.dk

How come I can access perl.com but not perl.org? I can access both in my
browser in Windows on the very same network! Does it have something to do
with my /etc/hosts file? This is what I have in it:

::1                     localhost localhost.ecx.com devbox.ecx.com
127.0.0.1               localhost localhost.ecx.com devbox.ecx.com

Then...

su-2.04# hostname
localhost.ecx.com

su-2.04# cat /etc/rc.conf
# This file now contains just the overrides from /etc/defaults/rc.conf
# please make all changes to this file.

# Enable network daemons for user convenience.
# -- sysinstall generated deltas -- #
ifconfig_fxp0="DHCP"
hostname="localhost.ecx.com"
# kern_securelevel="2"
# kern_securelevel_enable="YES"
sendmail_enable="YES"
sshd_enable="YES"
portmap_enable="NO"
nfs_server_enable="NO"
inetd_enable="YES"
usbd_enable="YES"
# -- sysinstall generated deltas -- #
named_flags="-c /etc/namedb/named.conf -u bind -g bind"
named_enable="YES"

Any ideas why I'd be getting that error? I tried typing in hostname
127.0.0.1 on the command line per the suggestion of a friend, and I was able
to start Apache as a standalone server (which I couldn't before), but
nothing else seems to have changed. 

- Jonathan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5D90F61EB6FDD411836500508B137F1A2689C5>