Score:0

With DNS e.g. A record, can I add a regex for any subdomain?

es flag

E.g. in my DNS providers UI, I have a A record for the main domain along the lines: mydomain.com.: <my server ip address>

This works fine. I'd like to obtain a wildcard SSL certificate to be able to add several subdomains.

Can I add a record of the form *.mydomain.com: <my server ip address> Is this normal or sound practice?

Michael Hampton avatar
cz flag
Yes, and you do it just like that.
es flag
OK thanks, set that up just now
Patrick Mevzek avatar
cn flag
If you are new to DNS configuration, you should avoid using wildcards. They do work, but can be complicated to understand. Or at least try wildcards first on non important domains until you master DNS. You don't need a wildcard DNS entry to get a wildcard certificate, like at LetsEncrypt. You don't need a wildcard DNS entry later to use a certificate with a wildcard entry in it.
es flag
Thanks for the pointers @PatrickMevzek, in the end I removed the wildcard dns entry anyway
Score:0
cn flag

Yes, you may use * as a wild card for subdomains, as stated in RFC1034 sections 4.3.2 and 4.3.3 with some changes and clarifications in RFC4592.

At least one drawback will be the clever and less tasteful subdomains people choose to use to link to your site.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.