Creating sub-servers 404 error

4 posts / 0 new
Last post
#1 Sun, 05/18/2014 - 12:41
daman

Creating sub-servers 404 error

Hi there, I've been using Virtualmin for over 5 years now. I needed to create a subdomain/subserver using Virutalmin. For a reason, when I try to access it using a browser I get error that it doesn't exist.

I used to create subdomains effortlessly using cpanel. I'm suspecting something wrong with the DNS setup. I'm using Godaddy's nameservers. Do I have to use my own? What am I doing wrong?

Server: Ubuntu 12.04 Webmin: 1.680 Virtualmin: 4.08 GPL

Cheers, Abdul

Sun, 05/18/2014 - 14:54
justin-turner

Do you have a wildcard DNS record (*) pointing towards your Virtualmin server's IP address or have the subserver you're trying to create listed as a DNS record pointing towards your Virtualmin server's IP address?

If you're actually getting a 404 error, it's reaching some server, we just don't know what server.

If you run: ping -c1 sub.yourdomain.com

EDIT: If using windows: ping -n 1 sub.yourdomain.com

is the ping successful and does it show your server's IP address?

Justin

Sun, 05/18/2014 - 15:25
daman

I think I mislead you with the 404 error. It's the fact that test.mydomain.com can't be resolved.

Most probably its the wildcard DNS record (*) I was missing.

I did a quick reading on wildcard DNS record, but not sure it's the right way to solve my problem.

Cheers, Abdul

Sun, 05/18/2014 - 16:54
justin-turner

The wildcard in your DNS records is a catch all, saying if any subdomain isn't matched by another record, match to this one. If you already have a DNS record (such as an A record) for your subdomain, the wildcard isn't necessary.

Hopefully the DNS records will solve your issue.

Justin

Topic locked