dns.name.is_subdomain

dns.name

is_subdomain(child, parent) -> is_sub

Check if child is a strict subdomain of parent

Returns true if child ends with .parent and child ≠ parent. Root (".") is parent of all names except itself.