Mobile app version of vmapp.org
Login or Join
Merenda212

: How to make a sub-domain an alias of other domain when a wilcard exist to that level in the dns server Possible Duplicate: vhost set up help — domain and ip point to the same

@Merenda212

Posted in: #Dns

Possible Duplicate:
vhost set up help — domain and ip point to the same site




I have recently set up Linux CentOS on a little VPS.

I have bought my own domain and made A records to my VPS like this.

mydomain.com IP
*.mydomain.com IP

Everything here works fine.

I've installed Webmin with Apache and everything. Then I've created a Virtual Server in Webmin, to host my website. Also works fine, and I can access it in my browser.

Now I've created a sub-server to host phpmyadmin. I can access this on phpmyadmin.mydomain.com. But also on klweridsncvx.mydomain.com. It catches all subdomains.

It's annoying because I tried to create an Alias to my Google Apps account.
mail.mydomain.com should point to ghs.google.com, but it also goes to phpmyadmin.mydomain.com.

Any suggestions how I can get rid of this catchall subdomain?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Merenda212

1 Comments

Sorted by latest first Latest Oldest Best

 

@Moriarity557

Depending in the software you (or your service provider) use in the DNS server, this solution may not work, so test it before accepting.

The usual behavior of the DNS is to try to find a exact match before using any wilcard. This is defined in the section 3.1 of RFC-4592: The Role of Wildcards in the Domain Name System

So, if you make a entry like this in your DNS table, it may work:

mydomain.com. A IP
mail.mydomain.com. CNAME ghs.google.com
*.mydomain.com. A IP


Not current syntax, take is at an example

It may work properly.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme