PDA

View Full Version : DNS issues with ISPConfig 3


Dag Andresen
17th September 2009, 18:31
EDIT: Issue has been solved, thanks.
( Had to comment out NameVirtualHost *:80 in httpd.conf and create domains using www under autosubdomain... to create alias)..


Hello,

I'm having some issues. I have finally managed to link my server IP with domains. Now there is one problem. I got this domain: "test.com"... and I create many sites...
like:
test.com
ampjuke.test.com
demosite.test.com

the problem is, when I go to test.com, demosite.test.com or ampjuke.test.com everything is fine! but when I use WWW and go to www.test.com, www.demosite.test.com and www.ampjuke.test.com I always end up at the ampjuke.test.com page :confused::confused:

Can someone help me?

I will use these nameservers for all my domains: ns1.test.com and ns2.test.com

Included is some images of my setup:
First, for the is.mu domain ... (the one I also use for nameservers ns1.test.com)
image removed
Second is just one test site demosite.test.com ... it works without www only...
image removed

Dag Andresen
18th September 2009, 00:14
Been trying some more and now I lost it all... now all I see is the Apache 2 Test Page powered by CentOS

You can see:
http://test.com
http://test.test.com
http://www.test.test.com

All goes to that apache page... I've setup zones for both domains and sites... any idea why they don't appear?

damir
18th September 2009, 09:41
If u run following command in terminal:

dig A is.mu and dig A www.is.mu

what is the output message ?

Dag Andresen
18th September 2009, 18:48
dig is.mu:
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5248
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;test.com. IN A

;; ANSWER SECTION:
test.com. 86345 IN A 89.130.21.67

;; AUTHORITY SECTION:
test.com. 86345 IN NS ns2.test.com.
test.com. 86345 IN NS ns1.test.com.

;; ADDITIONAL SECTION:
ns1.test.com. 3372 IN A 89.130.21.67
ns2.test.com. 86345 IN A 89.130.21.67

;; Query time: 12 msec
;; SERVER: 81.167.36.3#53(81.167.36.3)
;; WHEN: Fri Sep 18 17:48:05 2009
;; MSG SIZE rcvd: 107



www.test.com:
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29542
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;www.test.com. IN A

;; ANSWER SECTION:
www.test.com. 3303 IN A 89.130.21.67

;; AUTHORITY SECTION:
test.com. 86271 IN NS ns2.test.com.
test.com. 86271 IN NS ns1.test.com.

;; ADDITIONAL SECTION:
ns1.test.com. 3298 IN A 89.130.21.67
ns2.test.com. 86271 IN A 89.130.21.67

;; Query time: 12 msec
;; SERVER: 81.167.36.3#53(81.167.36.3)
;; WHEN: Fri Sep 18 17:49:19 2009
;; MSG SIZE rcvd: 111


Now I'm back at the problem I had in first post... no matter which domain I enter I always end up at the same...

till
18th September 2009, 19:51
This is not DNS related. You just have to make sure that you selected the IP address in the website settings instead of *.

Dag Andresen
18th September 2009, 20:12
I don't get it to work.... I either end up having all apache pages or all pages the same.... or 404 error not found...

Now I removed everything except from test.com dns and then I did this:

1. Sites -> Add new website -> Choose client, and the IP adress -> write domain: test.test.com and save...
2. Then I go to FTP and create user for this domain.
3. Then I go to DNS and press Add DNS zone... choose client -> enter domain test.test.com and ip, nameservers (ns1.test.com and ns2.test.com) and email...

Now I get apache page? :confused::confused:

Also... what kind of zone should be used for main domain/name server domain? I think it's correct, but what do I know? It looks like this (image_has_been_removed_for_privacy_p) (I added ns2 too after this picture was taken).

Dag Andresen
18th September 2009, 20:58
Ok I tried a few things and came to this conclusion:
If I create a website and use IP the only thing that will be displayed is the Apache 2 page... If I create a website using * as IP then all other websites will be redirected to this site.

I'm doing as "till" said and has created all sites with IP... Now the question is: Why doesn't each domain display their www folder? It seems like all sites are just sent to the standard html folder where the apache page is located... :confused::confused::confused:

till
19th September 2009, 11:51
Please post the vhost files of the created sites.

Dag Andresen
19th September 2009, 17:29
EDIT: Issue solved.
etc/httpd/conf/sites-enabled...

Dag Andresen
19th September 2009, 20:07
OK issue has been solved! Thank you