Friday, May 16, 2008

sendmail caused freebsd hang at boot time

fressbsd hang at the boot time when it came to the sendmail period.

the solution is to add one line into /etc/hosts like this:

192.168.28.26 bsd.local bsd


My unqualified host name (localhost) unknown; sleeping for retry


Make sure the host's names (including localhost) are defined in
/etc/hosts, and that /etc/hosts is being used in name resolution
(on 5.3 that would be configuration via nsswitch.conf(5)).



1996: SUMMARY: gethostbyaddr() failed

I solved the problem by adding back my ppp ip address into my hosts file.

There is no lookup for your IP address into a hostname. If you have
multiple interfaces or multiple addresses on one interface then you
must have a lookup for all the IP addresses.

The message there isn't an error - it's a warning. Just an annoying one :-)

rgds
Stephen

>From casper@holland.Sun.COM Fri Apr 5 04:53 EST 1996
To: ying@share.sph.jhu.edu (ying He )
Content-Type: text
Content-Length: 543

>Dear Sun managers;
>My system keep getting following messages in file /var/adm/messages
>when sendmail, what caused these and Any way I can stop these?
>(alive is our hostname)
>--------------------------------------------------------------
>Apr 4 17:55:15 alive sendmail[28489]: gethostbyaddr() failed
>Apr 4 23:42:26 alive sendmail[28869]: gethostbyaddr() failed
>Apr 4 23:42:55 alive sendmail[28880]: gethostbyaddr() failed

Your system can't find all names for all interfaces.

Check for funny addresses with "ifconfig -a"

Casper

Ying

No comments: