Get and validate the DNS domain name in .Net

Basically if I want to get the root of domain and check it in C#, is there any library similar to publicsuffix2 in python