cant send mails from server or ping to hostnames..

trebbor

Verified User
Joined
Jun 21, 2005
Messages
33
I have a problem on one of my webservers. Sinds a couple of days I cant mail, i will get a message from the server in 24 hours that the hostname cant be found.

Ping to hostnames failed, only my main domein and localhost can all ips can be pinged.

[root@server01 etc]# ping google.com
ping: unknown host google.com

[root@server01 etc]# ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=0 ttl=64 time=0.072 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.041 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.042 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.040 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=4 ttl=64 time=0.044 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=5 ttl=64 time=0.042 ms

[2]+ Stopped ping localhost
This is the message a get from the server:

This message was created automatically by mail delivery software.
A message that you sent has not yet been delivered to one or more of its
recipients after more than 24 hours on the queue on server01.technotop.nl.

The message identifier is: 1EXMij-0000yH-R2
The subject of the message is: testing mail
The date of the message is: Wed, 2 Nov 2005 17:41:51 +0100

The address to which the message has not yet been delivered is:

[email protected]
Delay reason: host lookup did not complete

No action is required on your part. Delivery attempts will continue for
some time, and this warning may be repeated at intervals if the message
remains undelivered. Eventually the mail delivery software will give up,
and when that happens, the message will be returned to you.

All mails will come back... strange problem. Getting mails from servers all works... sending will work but within 24 hours i get a message that it has been failed, and nobody gets the mail!

I can Ping to all ips but only the hostnames will fail...
 
Last edited:
hostpc.com said:
Sounds like BIND isn't running...

have you tried (assuming Redhat) /sbin/service named restart

??

Yup restarted everything... But I think the problem is maybe a second nameserver.

ns2.domain.com is changed to a new ip for the fallback mail and dns. Only my main domein issn't changed. The server is changed etc. But the domain ns2.domein.com on the domain is not set to the new ip...

Im testing with an other domain that already is changed...
 
The problem is most likely related to bind on the server not running, or being blocked by a firewall.

Jeff
 
jlasman said:
The problem is most likely related to bind on the server not running, or being blocked by a firewall.

Jeff

The Problem is fixed. The problem was a broken dns server to lookup hostnames. Thats why he cant lookup.
 
Back
Top