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

I am using a linode running nginx. I wanted to have mail sending capabilities on my VPS, so I change the hostnames and reverse DNS but now I have messed up my DNS somehow and the site doesn't even resolve.

Here is what my DNS manager for the domain looks like enter image description here

Here is what my Reverse DNS setting looks like (I changed it to enter image description here

Content of /etc/hostname is

Content of /etc/hosts localhost

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Command hostname -f gives hostname: Name or service not known

I have also rebooted it, but it seems like I have done something wrong. Any advice please?

share|improve this question

The site does not resolve because you've deleted @ entry (@ means no subdomain). According to your screenshot should resolve normally to, but (without www) would not resolve.

Add A-type entry like @ IN to fix this issue.

Your reverse dns entry looks fine. Please note, that your mail server should identify himself as, not

Also, you migth want to add spf TXT record to help spam filters (and avoid your mails being marked as spam). See here:

share|improve this answer
Consider me a noob please. while adding A-type record, what should be my hostname? – Ashfame Apr 20 '11 at 6:54
Also the question does have a screenshot for adding the reverse DNS entry. I can just enter the hostname and it will set that as a reverse dns entry. – Ashfame Apr 20 '11 at 7:00
Access denied for this image. Hostname should be '@' or '' (with '.' at the and - this is important). – rvs Apr 20 '11 at 7:13
May be your firewall or something, I can see that fine. I have added '' as the hostname and now I believe DNS will take full day to propagate, right? This alone should fix my problem, right? Once the site is up, I can get onto other things you mentioned. – Ashfame Apr 20 '11 at 7:18
Yes, this should fix it. – rvs Apr 20 '11 at 8:31
up vote 0 down vote accepted

While @rvs answer is more applicable in general case, linode users have to enter a blank hostname to fix the problem I was having of a missing A record-type. If you are not on linode, I would suggest rvs's answer will be more appropriate for you, so I am marking my answer as accepted and upvoting his answer.

share|improve this answer

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.