A wildcard DNS record is specified by using a "*" as the part of a domain name, e.g., *. example.com. NOTE: A wildcard DNS record does not cover a root domain (e.g. yourdomain. tld), thus you will need to create a record for @ host additionally.
1 Answer. Usually /etc/hosts file doesn't support any wild card entries.
To enable the wildcard subdomain, go to your Site Tools > Domain > Subdomains. The wildcard subdomain is the one with an * in front of the domain. You can enable it from the Manage Subdomains > Actions menu.
Create a configuration to map the wildcard subdomains to the same IP. Restart the service. Create /etc/resolver directory. Create a custom DNS resolver where the file name is the domain name.
I am starting to develop a site which basically acts as WordPress MU, in the sense that a user can signup and have their own blog. I will be coding this in Rails, however I am hoping to be able to utilize wildcard subdomains, so I can use the format such as blog.example.com. I've done some searching but I can't find any good resources.
Since I am using Rails, I'm not sure where to put this, as I am using Mongrel, and not Apache. I can bypass doing this on my local machine by developing remotely on my server, however I would only like to keep this as a last resort.
I can give more details about my development environment if needed, but here are the basics:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With