Web Hosting Talk







View Full Version : New server setup - resolve.conf ??


XyD
03-27-2002, 11:35 PM
Hi ,

I'm setting up my first server and I 'm using WHM and Cpanel4.
I really don't know much about DNS and stuff but i think i configured everything right:eek:

The only prob is none of my domains resolve the ips i assigned for them. I try to ping my domains and i get "unknown host"
The propagation should be finished by now, it's been 2 days since i registered the domains so i guess this is my fault
Is there something wrong in the /etc/resolv.conf file maybe ??

Here is whats in it:

domain darkorb.net
search darkorb.net
nameserver 127.0.0.1
nameserver 205.162.50.248
nameserver 66.96.193.2
nameserver 66.96.194.2

None of these ips are mine.
I have my own nameservers and i entered them correctly in the WHM. The /etc/resolv.conf didn't change a bit.
Should i manualy change that file.
What do you think ??
Can you give me an example how does a real resolv.conf look like ?

Thanks in advance

protector330
03-29-2002, 03:49 AM
hi :) I'm sorry not to be able to tell you the 100% correct thing to do. I'm also new with nameservers and I had the same question days ago.

Somebody told me to put my own ns in the, others told me to put those of my isp there.

right now I have the one of my isp in there and everything seems to be working fine:rolleyes:

serve-you
03-29-2002, 04:01 AM
resolv.conf should contain the nameserver to which your machine looks for domain resolution. Generally if you have your own nameserver, you should put it here. I always put my own nameserver, followed by my ISP nameserver. That way if my nameserver is inaccessable, it will move on to the ISP nameserver for resolution.

-Dan

XyD
03-29-2002, 06:33 AM
Thanks for the aswers guys.
I tryed them out right away
I put my nameservers : nothing happens
I put my VDI's nameserver : nothing happens
I tryed both of them together and still nothing
:bawling:
I restart named after every change just in case.

I am trying nslookup using my computer and other sites offering this kind of network tools.
None seams to resolve an ip address for my domains.
The only computer on this planet who knows my domains ips is my box and it's keeping it like it's a secret. :angry:

What am i doing wrong? Do i have to wait a few hours for the nameservers to actualy work, or am i gonna see the difference right away when i do something right ??

Thanks again
I hate DNS

priyadi
03-29-2002, 10:08 AM
Try running named on the server, and use 127.0.0.1 as your DNS server in resolv.conf. It's strange if it won't work, except if there is something with your network configuration.

T_E_O
03-29-2002, 10:16 AM
Ok, time to get some things straight:

- resolv.conf is a systemwide file that is used by some libraries to resolve host names to ip addresses and vice-versa. if "nslookup www.webhostingtalk.com" gives you an IP address, than you shouldn't have to edit this file anymore.
If it doesn't, try some of the other nameserver you talked about. Your ISP's for instance.

- DNS servers for your domain are there to make sure your site can be found on the internet. You can run your own nameserver on the machine you were talking about, but maybe you can also use the dns servers of the registrar of your domain for free. Many registrars nowadays offer this kind of service and it might be useful if you're not fully acquainted with the DNS system. This is (almost) totally unrelated to the resolv.conf file mentioned above.

The resolv.conf file is used for YOUR machine to resolve names to ip addresses and vice-versa. The nameservers for your domain are used by OTHERS to resolve your domain to an ip address.

XyD
03-30-2002, 08:16 AM
Thanks T_E_O . That cleared things up for me.
That really helped
I finaly reached my provider's support and they say they are gonna work on it soon. Yeah right...

I hate companies w/ lousy support (but they are cheap;) )

webx
03-30-2002, 12:52 PM
Hi XyD,

Have you registered your nameservers with your registrar?

That is under your domain, you should have two nameservers setup against two separate IP addresses.

That is the first part of name resolution (for your domain and subdomains) that rest of the world needs.

XyD
03-30-2002, 04:23 PM
Yes Masood , I registered 2 nameservers and some domains 4 days ago with GoDaddy.
I don't think i did anything wrong.
It seems like my nameservers don't work properly
This is what i get from their DNS records.

ns1.mydomain.com IN A ***.***.***.*** 86400s (1d)
***.***.***.in-addr.arpa IN SOA server: localhost
email: root@localhost
serial: *******
refresh: 28800
retry: 14400
expire: 3600000
minimum ttl: 86400
86400s (1d)

jw
03-31-2002, 02:07 PM
Sounds to me like its more of a netmask problem. Check your netmasks and be sure they are correct.

XyD
03-31-2002, 04:23 PM
Netmask ??? :confused:

How can i check this out jw ?