Click to See Complete Forum and Search --> : gethostbyname error ???


imfscked
10-23-2001, 10:12 AM
Can anyone help me out to fix this error message ??? Ive reviewed /etc/hosts and HOSTNAME and triedto ensure that it is set appropriately .. but ...

Erorr message reads from /var/log/messages

Oct 21 04:02:00 wazzup syslogd 1.4-0: restart.
Oct 21 04:02:00 wazzup syslogd 1.4-0: restart.
Oct 21 04:02:00 wazzup syslogd 1.4-0: restart.
Oct 21 04:02:00 wazzup syslogd 1.4-0: restart.
Oct 21 04:02:00 wazzup syslogd 1.4-0: restart.
Oct 21 04:18:12 wazzup rpc.statd[522]: gethostbyname error for ^X÷ÿ¿^X÷ÿ¿^Z÷ÿ¿^Z÷ÿ¿%8x%8x%8x%8x%8x%8x%8x%8x%8x%62 716x%hn%51859x%hn\220\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220
Oct 21 11:09:44 wazzup rpc.statd[522]: gethostbyname error for ^X÷ÿ¿^X÷ÿ¿^Z÷ÿ¿^Z÷ÿ¿%8x%8x%8x%8x%8x%8x%8x%8x%8x%62 716x%hn%51859x%hn\220\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220\220\220\220\ 220\220\220\220\220\220\220\220\220\220\220\220\22 0\220\220\220\220
Oct 21 14:30:10 wazzup gdm(pam_unix)[15233]: session opened for user root by (uid=0)
Oct 21 14:30:10 wazzup gdm[15233]: gdm_slave_session_start: root on :0
Oct 21 14:30:16 wazzup gnome-name-server[22387]: starting
Oct 21 14:30:17 wazzup gnome-name-server[22387]: name server starting
Oct 21 14:30:17 wazzup kernel: hdc: ATAPI 20X CD-ROM drive, 1800kB Cache, DMA
Oct 21 14:30:17 wazzup kernel: Uniform CD-ROM driver Revision: 3.12
Oct 21 14:30:17 wazzup insmod: Note: /etc/modules.conf is more recent than /lib/modules/2.4.2-2/modules.dep
Oct 21 14:30:17 wazzup insmod: Note: /etc/modules.conf is more recent than /lib/modules/2.4.2-2/modules.dep
Oct 21 14:30:17 wazzup kernel: es1370: version v0.34 time 19:49:28 Apr 8 2001
Oct 21 14:30:17 wazzup kernel: PCI: Found IRQ 12 for device 00:13.0
Oct 21 14:30:17 wazzup kernel: es1370: found adapter at io 0x6c00 irq 12
Oct 21 14:30:17 wazzup kernel: es1370: features: joystick off, line in, mic impedance 0
Oct 21 14:30:18 wazzup insmod: Note: /etc/modules.conf is more recent than /lib/modules/2.4.2-2/modules.dep

bdg1983
10-23-2001, 04:33 PM
Here's the Google search results (http://www.google.com/linux?site=search&restrict=linux&hl=en&q=gethostbyname+error&btnG=Google+Search) for gethostbyname error. Hopefully something there will help you fix the problem.

posterboy
10-23-2001, 05:04 PM
It appears to me that you are running the Sun's RPC (Remote Proceedure Call). stat.d is one of it's initializing routines. Do a locate for rpc.statd, and you will find it (likely) in /usr/sbin. It's failing on getting out (somewhere), as gethostbyname is a library function that opens a socket to another host. While I don't know why you are running that at all, I would call to your attention that this is one of the most widely attacked open sockets on the internet. Unless you have a life and death need for RPC, get rid of it.Cut it off in inetd.conf. Now, if it turns out that you know exactly what you are doing, and were aware of all this 10 years ago, excuse me.

By the way, run depmod -a to get rid of those complaints about modules.conf being newer than blah, blah.

[ 23 October 2001: Message edited by: posterboy ]

imfscked
10-23-2001, 11:00 PM
Thanks guys for the great responses..

I was not aware that the machine was running rpc...and it is definately not needed..

The interesting thing was that the error message just atarted to happen recently.. Nothing really major changed.. installed php, mysql and apache... but thats bout it..

Thanks..