There is the Public Suffix List but it doesn't seem to contain those domains. Does HN use that list?
https://publicsuffix.org
Namely, having your hosting domain on the public suffix list means that browsers will not allow setting cookies on the suffix (similar to how you cannot set a cookie for ".com"), which prevents rogue websites on the same root domain from stealing sensitive cookie values from other subdomains.
- s3.amazonaws.com
- blogspot.com
- githubusercontent.com
but there are many other sites in the list which are less notable.