|
|
|
|
|
by qwertox
679 days ago
|
|
I issue a wildcard cert for *.something.example.com. All subdomains which are meant for public consumption are at the first level, like www.example.com or blog.example.com, and the ones I use internally (or even privately accessible on the internet, like xmpp.something.example.com) are not up for discovery, as no public records exist. Everything at *.something.example.com, if it is supposed to be privately accessible on the internet, is resolved by a custom DNS server which does not respond to `ANY`-requests and logs every request. You'd need to know which subdomains exist. something.example.com has an `NS`-record entry with the domain name which points to the IP of that custom DNS server (ns.example.com). The intranet also has a custom DNS server which then serves the IPs of the subdomains which are only meant for internal consumption. |
|
Regarding the certificates, if you don’t want to set up stuff on clients manually, the only drawback is the use of a wildcard certificate (which when compromised can be used to hijack everything under something.example.com).
An intermediate CA with name constraints (can only sign certificates with names under something.example.com) sounds like a better solution if you deem the wildcard certificate too risky. Not sure which CA can issue it (letsencrypt is probably out) and how well supported it is