PDA

View Full Version : subdomain problem


knothje
01-31-2007, 07:35 AM
Hello All,

I have a problem with subdomains, when i make these in userlevel like this:

knoth.domain.nl then i get the following in de DNS administration by domain.nl:

alexander A **.**.**.**
www.alexander A **.**.**.**

But the subdomain dont work at all. This is a problem on the whole server and not one of two accounts.

I have done a DNS lookup for the A records and it seems that it's ok.

Someone a suggestion to solve this problem?

jlandes
01-31-2007, 07:42 AM
What seems to be the problem? Are you getting any errors? How do you know it doesn't work?

knothje
01-31-2007, 07:44 AM
ok i have make alexander.knothhosting02.nl, check for yourself. If i make a subdomain on a other server it works fine then i get a 403/404 error.

jlandes
01-31-2007, 08:37 AM
If I enter http://www.knothhosting02.nl/alexander/, I get a 403/404 error. However, if I enter http://alexander.knothosting02.nl, it cannot be found. You may have to wait for DNS to propogate.

knothje
01-31-2007, 08:42 AM
You may have to wait for DNS to propogate.

On all other servers i don't have this ? When i entered the url from the subdomain i get a 403 / 404 error. I think it's a other problem...

jlandes
01-31-2007, 08:47 AM
Do any subdomains on this server work? What about subdomains on another domain?

knothje
01-31-2007, 08:52 AM
Do any subdomains on this server work? What about subdomains on another domain?

All the subdomains maked befor last week are working, now i have een client and he would make a subdomain but it doesn't work. He has wait for 24 hours but de sub still doesn't work.

If i made a sub domain on any account it doesn't work.

The DNS Administration in DA for knothhosting02.nl is the following:

alexander A 85.17.19.88
ftp A 85.17.19.88
knothhosting02.nl. A 85.17.19.88
localhost A 127.0.0.1
mail A 85.17.19.88
ns1.knothhosting02.nl. A 85.17.19.88
ns2.knothhosting02.nl. A 85.17.19.49
pop A 85.17.19.88
www A 85.17.19.88
www.alexander A 85.17.19.88
knothhosting02.nl. NS ns1.knothhosting02.nl.
knothhosting02.nl. NS ns2.knothhosting02.nl.
mail MX 10
knothhosting02.nl. TXT "v=spf1 a mx ip4:85.17.19.88 ?all"

I have installed APF and BFD last week, but all the servers are the same and i have this problem with subdomains on 2 servers at this moment.

jlandes
01-31-2007, 08:54 AM
Have you checked the domain's Apache configuration file to make certain that the subdomain was added there?

knothje
01-31-2007, 09:00 AM
The following is added in the httpd.conf from the user:

<VirtualHost 85.17.19.88:80>

ServerName www.alexander.knothhosting02.nl
ServerAlias www.alexander.knothhosting02.nl alexander.knothhosting02.nl
ServerAdmin webmaster@knothhosting02.nl
DocumentRoot /home/admin/domains/knothhosting02.nl/public_html/alexander
ScriptAlias /cgi-bin/ /home/admin/domains/knothhosting02.nl/public_html$

UseCanonicalName OFF

User admin
Group admin
CustomLog /var/log/httpd/domains/knothhosting02.nl.alexander.bytes bytes
CustomLog /var/log/httpd/domains/knothhosting02.nl.alexander.log combin$
ErrorLog /var/log/httpd/domains/knothhosting02.nl.alexander.error.log

<Directory /home/admin/domains/knothhosting02.nl/public_html/alexander>
Options +Includes -Indexes
php_admin_flag engine ON
php_admin_flag safe_mode ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f admi$

php_admin_value open_basedir /home/admin/:/tmp:/usr/local/lib/p$

</Directory>

</VirtualHost>

jlandes
01-31-2007, 09:59 AM
I'm assuming that this might be caused by a problem with the server. I would contact DirectAdmin support (support@directadmin.com) and have them take a look at it.

knothje
01-31-2007, 10:09 AM
I have send a mail to support@directadmin.com and i hope that they can tell me what the problem is. If there is a answer i will post it ;-)

Marshall
01-31-2007, 10:35 AM
Just a note but your nameservers are set to:
ns1.transip.net
ns0.transip.net
ns2.transip.net
for that domain, are these pointing to the same server that you are setting up the account on or are they somewhere else? If they are somewhere else then you need to setup the A records for your subdomain at those servers or ISPs wont find it. Either that or change the nameservers on your domain to be ns1/ns2.knothhosting02.nl for it to recognize your DNS changes on that server.

knothje
01-31-2007, 11:10 AM
Just a note but your nameservers are set to:
ns1.transip.net
ns0.transip.net
ns2.transip.net
for that domain, are these pointing to the same server that you are setting up the account on or are they somewhere else? If they are somewhere else then you need to setup the A records for your subdomain at those servers or ISPs wont find it. Either that or change the nameservers on your domain to be ns1/ns2.knothhosting02.nl for it to recognize your DNS changes on that server.


Hello Marshall, i have a A record in the DNS of the domain to my server IP, i use this construction on all of my servers and it was never a problem. If i do an DNS lookup for the subdomain it's all fine. So that's also not the problem.

Marshall
01-31-2007, 11:13 AM
Hello Marshall, i have a A record in the DNS of the domain to my server IP, i use this construction on all of my servers and it was never a problem. If i do an DNS lookup for the subdomain it's all fine. So that's also not the problem.

When I do DNS lookup for the subdomain I am getting an error that it does not exist. I am using http://www.dnsstuff.com/tools/lookup.ch?name=alexander.knothhosting02.nl&type=A what are you using?

knothje
01-31-2007, 11:26 AM
Hmm that's not so nice, when i checked this morning everything was ok. I need to make a A record in the DNS by TransIP where i registrered the domain i think?

I make a A record like this:

alexander.knothhosting02.nl 1day A 85.17.19.88

This is ok? And by the next DNS/Zone update the domain must work?

Marshall
01-31-2007, 11:32 AM
Yup just an A record at TransIP to let it know to go there for the alexander subdomain (and maybe also www.alexander if you want that as well) should get it working.

knothje
01-31-2007, 11:35 AM
Ok, i give it a try... I hope it's working :-)