解析域名注册答案 [英] Parse whois answer
本文介绍了解析域名注册答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要创建这样的WHOIS类
I want to create whois class like that
public class DomainInfo
{
public string NameServer {get;set;}
public string CreationDate {get;set;}
public string UpdatedDate {get;set;}
public string ExpirationDate {get;set;}
public string Status {get;set;}
public string RegistrantName {get;set;}
public string RegistrantOrganization {get;set;}
public string Registrantemail {get;set;}
public static DomainInfo Parse(string inputData)
{
......
}
}
但我有一些问题,因为不同的DNS服务器返回不同的答案,这是一个非常艰巨的任务解析返回的答案。 ?如何才能做到这一点。
But I have some problems because different DNS servers return different answers and it's a very difficult task to parse returned answers. How can this be done?
推荐答案
下面是一个博客帖子有一些C#代码,可以帮助一个链接:
Here is a link to a blog post with some C# code that might help:
的 http://blog.flipbit.co.uk/2009/06/querying-whois-server-data-with-c.html
你很可能调整的解析代码,你遇到,你没有得到你需要的数据实例,但我不认为这是一个鞋适合所有的解决方案。
You could probably tweak the parsing code as you run into instances where you are not getting the data you need but I don't think there is a one shoe fits all solution.
这篇关于解析域名注册答案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文