- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail error: gethostbyaddr
Operating System - HP-UX
1821868
Members
3207
Online
109638
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2006 04:55 PM
тАО10-10-2006 04:55 PM
Hi .. could you tell me what is the meaning of the following error located into syslog.log file :
sendmail[4906]: gethostbyaddr(10.10.27.16) failed: 1
Thanks, Manuales.
sendmail[4906]: gethostbyaddr(10.10.27.16) failed: 1
Thanks, Manuales.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2006 09:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-10-2006 09:27 PM
тАО10-10-2006 09:27 PM
Re: Sendmail error: gethostbyaddr
Hi;
From the Sendmail ReleaseNotes we have :
The Name Service Switch feature allows you to configure the name
service policy for hostname and address lookups. This policy is used
by gethostbyname() and gethostbyaddr() library calls. You can choose
any combination of the supported name services: DNS, NIS, and files
(local hosts file).
Therefore the fix for this issue is to either :
a) ignore the message, or
b) add hostname resolution to either your /etc/hosts file, your
dns server, or your nis database depending on the hostname
resolution method incorporated within your environment.
regards;
mustafa
From the Sendmail ReleaseNotes we have :
The Name Service Switch feature allows you to configure the name
service policy for hostname and address lookups. This policy is used
by gethostbyname() and gethostbyaddr() library calls. You can choose
any combination of the supported name services: DNS, NIS, and files
(local hosts file).
Therefore the fix for this issue is to either :
a) ignore the message, or
b) add hostname resolution to either your /etc/hosts file, your
dns server, or your nis database depending on the hostname
resolution method incorporated within your environment.
regards;
mustafa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2006 01:02 AM
тАО10-11-2006 01:02 AM
Re: Sendmail error: gethostbyaddr
There are a couple of locations to check for proper DNS resolution in sendmail. The first is /etc/nsswitch.conf which defines the rules for searching. The best solution is to have the hosts: line read this way:
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
This will ensure that if DNS cannot find an address, you can simply add the IP and hostname to /etc/hosts. To test the name resolution in your HP-UX system, use this command:
nsquery hosts 10.10.26.16
The other files to check are /etc/mail/sendmail.cw and /etc/mail/service.switch. The .cw file should have (after all the comments):
localhost
myhostname
myhostname.domain.org
where myhostname and domain.org are your local machine ID's. The service.switch file should have at the end:
hosts files dns
aliases files
Once changes have been made, restart sendmail with:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Bill Hassell, sysadmin
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
This will ensure that if DNS cannot find an address, you can simply add the IP and hostname to /etc/hosts. To test the name resolution in your HP-UX system, use this command:
nsquery hosts 10.10.26.16
The other files to check are /etc/mail/sendmail.cw and /etc/mail/service.switch. The .cw file should have (after all the comments):
localhost
myhostname
myhostname.domain.org
where myhostname and domain.org are your local machine ID's. The service.switch file should have at the end:
hosts files dns
aliases files
Once changes have been made, restart sendmail with:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP