: 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
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?
More posts by @Merenda212
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.