Forum Moderators: phranque

Message Too Old, No Replies

Nameserver Problems

nameserver problems

         

webtime

8:57 pm on Jun 13, 2003 (gmt 0)

10+ Year Member



Please help with your great insight to the following, access to my site from my ns1 (dedicated ip 1) works fine, I’m directed to my /public_html/index.html, as it should be, but when trying to get to my site from ns2 (dedicated ip 2) I’m directed to my root directory. Could my host have something setup incorrectly? Or could it be some other problem? Your help and answers are really appreciated.

oilman

9:26 pm on Jun 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



webtime - welcome to WebmasterWorld.

I'm not sure I really understand what you are getting are asking. Nameservers are more like pointers that point to your website - your website will not have the same IP address as your nameservers usually - especially not in a shared environment. If I type in the ips of my nameservers I get my hosting company's site not my own. What happens when you type in your domain name?

webtime

9:34 pm on Jun 13, 2003 (gmt 0)

10+ Year Member



Thanks for the reply Oilman, when I type the ip (dedicated) that is assigned for my ns1, I see my index.html page. When I type in the ip for my ns2, I see an Apache page that seems to be the root directory index.html, but if I follow the links on the Apache message, I'm led to my own domain/apache_manauls.

Any ideas?

I forgot to add, I'm set up with a reseller account so I can host multiple sites.

Netizen

9:41 pm on Jun 13, 2003 (gmt 0)

10+ Year Member



I think oilman was asking what happens when you type nin the IP address that has been assigned to your web server, not your name servers. These are two completely different things.

webtime

9:51 pm on Jun 13, 2003 (gmt 0)

10+ Year Member



yes, I see what you're saying, my account is assigned two dedicated ip's, used for the nameservers, ns1 and ns2. My domain names do not have dedicated ips. I was having problems accessing my sites, so I changed my zone files so each of my domain names point to the ips of the nameservers, the @ points to ns1's ip and the www points to ns2's ip, for each domain.
So, when you enter mydomain1.com in a browser you are sent to mydomian1.com/index.html, lifes good, but when you type in www.mydomain1.com (remember, I've mapped this to my ns2 ip) your are sent to the root/index.html.

Perhaps I'm messing things up pointing like this from my zone file, but I'm troubleshooting and did not know what else to try.

Netizen

10:36 pm on Jun 13, 2003 (gmt 0)

10+ Year Member



Generally you will have something like

ns1.domain.com
ns2.domain.com

and

www.otherdomain.com

The zone files on ns1 and ns2 should point www.otherdomain.com to a particular IP address to which your web server has been bound.

It seems like the web server you have been assigned has the same IP address as ns1 in this case, so that works, but pointing your domain to ns2 will just cause what you saw.

Hope that helps.

webtime

2:55 pm on Jun 14, 2003 (gmt 0)

10+ Year Member



Okay, heres an update, I changed my zone files and pointed my domain back to my normal nameservers (rememember I have a reseller account, with dedicated ips for my nameservers)

Now when I go to www.mydomain.com I get my normal index.html, this is what I want, but when I leave off the www and just go to mydomain.com, I'm still seeing the root directory Apache page.

Any ideas why I'm not seeing my normal index.html from the non-www address?

Netizen

7:09 pm on Jun 14, 2003 (gmt 0)

10+ Year Member



Is the web server configured for both www.domain.com and domain.com? In Apache you would need something like:

ServerName www.domain.com
ServerAlias domain.com

in the configuration somewhere.