Afnan Bashir
Afnan Bashir

Reputation: 7419

Checking domain availibility with DNS

I was implementing DNS getbyhostname by address but The software fails if a user has custom DNS addresses like OpenDNS in the network or is inside a private network (Office or School or Behind a firewall).

Basicly i am checking domain avilibility Any solutions

My code so far

IPHostEntry hostInfo = Dns.GetHostByName(adderess);
MessageBox.Show(hostInfo.HostName);

Upvotes: 0

Views: 1130

Answers (1)

The Moof
The Moof

Reputation: 804

You should use whois to check if a domain name has been registered or not.

Besides it being the purpose of whois, it's also possible that a domain name may not have any DNS records, but still be registered.

Upvotes: 5

Related Questions