Check whether the hostname host is equal to or a subdomain of domain.
Both host and domain are UTF-8 strings and can be IDNs (which will be punycode-encoded for comparison).
| host |
The hostname to check. |
| domain |
The domain name. |
|
true if |