How should the file resolv.conf look like?

apfan

Member
Jun 6, 2005
23
0
151
Iceland
Hello i was surfing around here on cpanel forums.
And i stumbled upon this post in an old thread.

Some dude said:
Then resolv.conf should look something like this:
domain "server name"
domain search "server name"
nameserver "Main/Virtual IP of your server"
nameserver "IP of name server 1"
nameserver "IP of name server 2"

Restart Bind after making changes.

As far as "A" name host entry- what does /etc/hosts have in it?
My resolv.conf does not look like the above example at all.
I also want to say that i am running linux and centOS on a vps server.
And i have a lot of downtime due to inaccurate dns settings.
Also i am reciving emails that says "Nameserver failed"

My resolv.conf file looks like this said:
Nameserver 89.238.141.181
Nameserver 89.238.161.35
I then updated the file with the correct ip numbers for my nameservers and saved.
And did the following command /etc/init.d/named restart.
Do i missing information here?? should i also put in my server id and more things into resolv.conf??

Please help me out here i am confused :confused:

/Happy new year!
 

JawadArshad

Well-Known Member
PartnerNOC
Apr 8, 2008
459
6
68
PK
cPanel Access Level
DataCenter Provider
If I were you, I would open this with my host's support and ask them for the recommended resolv.conf entries. Normally hosts set /etc/resolv.conf entries to the recommended settings in VPS templates per their own network. named failed emails may be a result of some other issue as well.

Hello i was surfing around here on cpanel forums.
And i stumbled upon this post in an old thread.



My resolv.conf does not look like the above example at all.
I also want to say that i am running linux and centOS on a vps server.
And i have a lot of downtime due to inaccurate dns settings.
Also i am reciving emails that says "Nameserver failed"



I then updated the file with the correct ip numbers for my nameservers and saved.
And did the following command /etc/init.d/named restart.
Do i missing information here?? should i also put in my server id and more things into resolv.conf??

Please help me out here i am confused :confused:

/Happy new year!