The following statement would be true:
dnsDomainIs("www.example.com", ".example.com")
The following statements would be false:
dnsDomainIs("www", ".example.com") dnsDomainIs("www.mcom.com", ".example.com")