root Domain
Returns the root domain of the domain.
This means it removes the subdomain from the domain. If the domain is already a root domain or an IP address, do nothing.
e.g. "sub.example.com" -> "example.com" "example.com." -> "example.com" "127.0.0.1" -> "127.0.0.1"