DNS Issues, resolve.conf and /etc/hosts

rublind

Member
Aug 17, 2003
13
0
151
I keep getting this e-mail from cPanel:
IMPORTANT: Do not ignore this email.
The hostname (FryLock.xxx.x.xxx) resolves to . It should resolve to xx.xxx.x.xxx. Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain.

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


You may be able to
automaticly correct this problem by using the ' Add an A entry for your
hostname ' under ' Dns Functions ' in your Web Host Manager
I don't know exactly how to fix that... can anyone help?
 

sawbuck

Well-Known Member
Jan 18, 2004
1,365
10
168
cPanel Access Level
Root Administrator
The resolv.conf should look something like this:

domain "server name"
search "server name" (may be optional)
nameserver "IP address" (not 127.0.0.1 but the primary/virtual IP of your server)
nameserver "IP address"
nameserver "IP address"
 

rublind

Member
Aug 17, 2003
13
0
151
search box.net
nameserver 66.90.68.25
nameserver 66.90.68.26
That's what I have, but my server name is FryLock, so it should be
domain "FryLock"
search "FryLock"
nameserver 66.90.68.25
nameserver 66.90.68.26
right?

EDIT:
Also, what should my /etc/hosts look like?
# Do not remove the following line, or various programs
# that require network functionality will fail.
67.159.5.118 FryLock.159.5.118 FryLock fast.box.net fast
127.0.0.1 localhost
That's what it looks like, but I think it's also wrong.
 
Last edited:

rublind

Member
Aug 17, 2003
13
0
151
I don't have domain name frylock, I just wanted it as the server name... for the tld should it just be the main domain that will be using the server?
 

sawbuck

Well-Known Member
Jan 18, 2004
1,365
10
168
cPanel Access Level
Root Administrator
rublind said:
FryLock.159.5.118 is the current hostname.
Sounds a little unusual to me but couldn't tell you for a fact it won't work. In the /etc/hosts file remove the additional info "fast.box.net fast" and save the file.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
I can tell you for a fact that won't work ;)

FryLock.159.5.118 is not a valid hostname. Your hostname must be a fully qualified domain name (FQDN), i.e. a subdomain of a domain that you own and have access to the zonefile for. For example, if you own the domain bob.com, your server could have a hostname of server1.bob.com and then you must have an A record in the zonefile for bob.com for server1.bob.com.

What you currently have will mean, for example, that a great many email servers will simply not accept email from your server.
 

verdon

Well-Known Member
Nov 1, 2003
919
12
168
Northern Ontario, Canada
cPanel Access Level
Root Administrator
chirpy said:
No. server1 should just be an A record in the bob.com's zonefile.
Thanks, that's what I thought.

I do have the zonefile for server1.bob.com in my case, and I didn't think that was right. I recently migrated to a new server from a VPS and had some dns confusion/issues at first. Things are running pretty good now, but I noticed the server1.bob.com zone file and couldn't really remember creating it (but who knows). I'm trying to do some tidy up now and guess it better go :)
 

rublind

Member
Aug 17, 2003
13
0
151
What exactly do you mean zonefile?

I may an A record for server1.bob.com to point to the main IP of the server? Or... ?

EDIT
I added FryLock.nanashi-fansubs.com and set it to point at the main server IP, then I used the change hostname thing and added an A entry. So I guess it should work now, right?
 
Last edited:

ilir038

Member
Feb 26, 2005
13
0
151
chirpy said:
I can tell you for a fact that won't work ;)

FryLock.159.5.118 is not a valid hostname. Your hostname must be a fully qualified domain name (FQDN), i.e. a subdomain of a domain that you own and have access to the zonefile for. For example, if you own the domain bob.com, your server could have a hostname of server1.bob.com and then you must have an A record in the zonefile for bob.com for server1.bob.com.

What you currently have will mean, for example, that a great many email servers will simply not accept email from your server.
Hello,

So what should the file be (assuming you have the correct hostname). This is what I have now:

67.xx.xx.xxx satellite.ev1servers.net
67.xx.xx.xxx srv1.mydomain.com srv1 cpanel.ev1servers.net cpanel
127.0.0.1 localhost



To me it looks like that second line "cpanel.ev1servers.net cpanel" isn't right. Can you please tell me if i should change it and to what?

Thanks a lot for all these resources, guys :)


I.