Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I run my web application which sends mail on my dev machine, the mail is not sent. The file shows that there was a host name lookup failure. How do i fix it? (i am trying to send mail to my gmail account.)

share|improve this question

migrated from May 4 '10 at 4:22

This question came from our site for professional and enthusiast programmers.

What OS is the machine running ? – nc3b May 3 '10 at 19:05
ubuntu 8.04 is it – umar May 3 '10 at 19:06

Looks like there is something wrong with your server's dns settings or sendmail itself if it has separate dns settings. Make sure they are valid and alive.

share|improve this answer
how do i correct my server's dns settings? – umar May 4 '10 at 16:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.