Results 1 to 7 of 7
Thread: DNS issue
-
07-29-2005, 03:43 PM #1Web Hosting Master
- Join Date
- May 2003
- Posts
- 852
DNS issue
Hi
In my new server I have three sites on it
when I access any domain with www example
http://www.domain.com
it goes to the main site (another domain)
but when I access any domain without www example
http://domain.com
it goes to the wanted site
any idea ??
-
07-29-2005, 03:56 PM #2Aspiring Evangelist
- Join Date
- Jan 2005
- Posts
- 443
Check the CNAME entry for the sites in question
-
07-29-2005, 04:13 PM #3Web Hosting Master
- Join Date
- May 2003
- Posts
- 852
www 14400 CNAME domain.com.
-
07-29-2005, 04:41 PM #4Aspiring Evangelist
- Join Date
- Apr 2004
- Location
- Australia
- Posts
- 419
Hey buddy, Check this for me:
!!!!!!!!! MAKE BACKUPS !!!!!!!!!!!!!
Load up your httpd.conf file and check that this is in there:
Code:ServerName www.domain.com ServerAlias domain.com *.domain.com
Then it might get a bit trickier
1) cd /var/named
2) ls -al
3) Edit the config file for your domain
4) Now, the first number is a serial number to identify changes to the file, so change it to the current YYYYMMDD (Just make sure that number is more than the original)
5) Then underneath that you will find something like
Code:www.domain.com. IN A 127.0.0.1
Code:domain.com. IN A 127.0.0.1
MAKE BACKUPS!
-
07-29-2005, 04:52 PM #5Web Hosting Master
- Join Date
- May 2003
- Posts
- 852
Hi
I tried to add
www.domain.com. IN A 127.0.0.1
but iy shows
There were errors in the new zone which have been highlighted below, please press the back button an try again!
www.domain.com. 14400 IN A 127.0.0.1
www.domain.com: CNAME and other data
-
07-29-2005, 05:08 PM #6Aspiring Evangelist
- Join Date
- Apr 2004
- Location
- Australia
- Posts
- 419
why are you adding the www.domain.com ? =|
add the domain.com without the www!
See if that httpd.conf is right.
I must be off now, sorry mate... I can check again in a few hours.
-
07-30-2005, 06:03 AM #7Web Hosting Master
- Join Date
- May 2003
- Posts
- 852
HI
I don't know whats happen but it's ok now