Skip to content
WJunction - Webmaster Forum

Hostname cannot be resolved to ip

Status
Not open for further replies.

soundlover

Experienced Member
560
2011
45
I have a dedicated server with cpanel. Everything works perfectly but every day I receive one error message.

Error Email Message:

MPORTANT: Do not ignore this email.

Your hostname (s1.lilithserver.com) could not be resolved to an IP
address. This means that /etc/hosts is not set up correctly, and/or
there is no dns entry for s1.lilithserver.com. Please be sure that
the contents of /etc/hosts are configured correctly, and also that
there is a correct 'A' entry for the domain in the zone file.

Some or all of these problems can be caused by /etc/resolv.conf
being setup incorrectly. Please check that file if you believe
everything else is correct.

You may be able to automatically correct this problem by using the
'Add an A entry for your hostname' option under 'Dns Functions' in
your Web Host Manager.

Through ssh I checked hostname and it seems good, but still receive this error message.
Anyone has any ideas as to what may be causing this?
Thanks.
 

17 comments

Can you please tell me what does that mean exactly?

If you mean when I enter hostname into browser url, then it does not work.
When I enter into ssh through putty it shows hostname and its written good, under it there's ipv4 and my main ip.
 
Your sub-domain isnt pointing to an IP.

You need to point the s1 sub-domain to your server IP.
 
You need to create an A record, You should be able to do it from where your DNS is managed (NameServers).

If you are using registrars nameservers, then you'll find an option to create an A record in their management panel.
If you are using your own nameservers, then use your hosting panel to do the same.
 
I am using my own nameservers, like ns1.lilithserver.com so I use WHM.

Its add an A entry for your hostname under DNS Functions.
Just tried but get this:

Sorry, a DNS entry for s1.lilithserver.com already exists
 
Have you created the A record then for them ?,

there is a option in WHM where you specify the nameservers, to create an A record for them
or use DNS Functions option to do it manually.
 
Yes I had done it before. That's why it told me that when I tried again now.
But then why I am receiving that email?
 
something is definitely wrong in the bind(naming) setup of your server.

recheck the DNS template for any irregularities.
 
I cannot ask the hosting provider to check it as the server is unmanaged.

Under dns functions, nameserver ips, is it normal that under IP it shows no ip?
 
If you are facing problems with it,

then why not switch to a external DNS server ? like afraid.org it's easy enough to use and you get all kind of flexibility.
 
All sites on server working fine, whm and cpanel too. The only thing is the email which like you said shows that there's something wrong. I will check that link as never heard of external dns server. Do you use one?
 
If you arent receiving continuous mails then it might be some problem with your named service and should have fixed.

Yes, have used external DNS in past. It's good when you have cluster configuration.
 
I receive the email only once daily, same time. I suppose the error reporting can be configured in whm and its set at that time.
 
I would recommend to first try work out with WHM.

Else then jump to external DNS solution.
 
Status
Not open for further replies.

About the author

S
Experienced Member · Joined
560
Messages
45
Reactions
28
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom