Server's IP not resolving to the main domain

tangerine

New member
Joined
Apr 15, 2006
Messages
2
I've searched the forum, but I'm still confused, so please bear with me :)

The situation is the following:
- I'm using DA with a Virtual Private Server account.
- I've set up ns1.my-domain.com and ns2.my-domain.com ("my-domain.com" is just an example) on the 2 IPs.
- I've registered ns1 and ns2 nameservers with my domain registrar (some 18 hours ago).
- The domain works fine now (I can browse the website).

The problem: when type the IP in the browser's address bar, it doesn't take me to the domain (doesn't resolve?). Instead, I see some kind of default page ("We'll Have More Soon - This domain has been parked. This site is currently under construction and we will have more for you soon.").

Any advice?

Many thanks in advance.

--
Tangerine
 
At the moment you only have 1 domain on your server and you may think it's strange that you do see the website if you type the domain name in the address bar of your browser but not if you type the IP address.

But imagine you add a 2nd, 3rd, 4th etc. domain to your server, they will all get that same IP address. So how should Apache know which website to serve if given only an IP address?
Apache will look at the domainname the visitor entered in the address bar of his browser and serve the corresponding website from the user's home directory ('/home/username/public_html' for example).
But if given only an IP address Apache will serve webpages from its 'default' folder ('/var/www/html' for example on my server).
 
Thank you for your kind reply, Aspegic.
I know that the first IP is (supposed to be) shared among several domains.
It's easy to set a second domain to "own" an IP (and have a "static IP"), I see how I can do that. But what should I do in order to set a static IP for my primary domain? I thought of assigning the second IP as a static IP for my primary domain, but then I would have ns1 on IP1 (shared, not related to any particular domain), and ns2 on IP2 ("owned" by the primary domain). Would that be technically corect?

--
Tangerine
 
It depends on what you mean by technically.

Nameservers can be assigned (in the realworld sense) to any IP# that resolves to the server.

The reason DA allows you to assign two IP#s to nameservers is because DA doesn't actually turn on the IP# unless it's assigned to something.

So if you use the second IP# as a static IP#, your nameserver can use it as well.

But if you delete that domain or move it to another IP#, the IP# assigned to your second nameserver URL may stop resolving.

Jeff
 
Back
Top