Having some DNS problems.
Our websites work fine, but if the www, is left out of the address, we are unable to get to the site. Im not sure if it is a DNS error or a mod rewrite problem, but the page wont display. If I ping the domain it registers to the correct IP address and correct name servers. If anyone has some info on how to fix this, please help.
Thanks
Jamie
Seemingly simply DNS Problems
Moderator: General Moderators
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC
I believe it would be a DNS problem.
You'd need two DNS entries to have domain.com and http://www.domain.com to work.
http://www.domain.com would be an A record pointing to the IP address of the server, and domain.com would be a CNAME to that A record.
You'd need two DNS entries to have domain.com and http://www.domain.com to work.
http://www.domain.com would be an A record pointing to the IP address of the server, and domain.com would be a CNAME to that A record.
First checkout if foo.tld and http://www.foo.tld resolve to the correct ip.
Next check your webserver that it is listening to both hostnames.
In apache it would look like this
<Virtualhost 127.0.0.1>
ServerName foo.tld
ServerAlias http://www.foo.tld
</Virtualhost>
Next check your webserver that it is listening to both hostnames.
In apache it would look like this
<Virtualhost 127.0.0.1>
ServerName foo.tld
ServerAlias http://www.foo.tld
</Virtualhost>