Seemingly simply DNS Problems

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
jestep
Forum Newbie
Posts: 4
Joined: Fri Jan 30, 2004 11:38 am

Seemingly simply DNS Problems

Post by jestep »

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
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

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>
Post Reply