Domain Lookup Tasks Fixes
This commit is contained in:
parent
3fc43037bf
commit
6fcfa205f5
3 changed files with 5 additions and 3 deletions
Binary file not shown.
|
@ -302,7 +302,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
|
|
||||||
var dnsRecord = new DnsRecordInfo
|
var dnsRecord = new DnsRecordInfo
|
||||||
{
|
{
|
||||||
Value = match.Groups[1].Value != null ? match.Groups[1].Value.Replace("\r\n", "").Replace("\r", "").Replace("\n", "").Trim() : null,
|
Value = match.Groups[1].Value != null ? match.Groups[1].Value.Replace("\r\n", "").Replace("\r", "").Replace("\n", "").ToLowerInvariant().Trim() : null,
|
||||||
RecordType = recordType,
|
RecordType = recordType,
|
||||||
DnsServer = dnsServer
|
DnsServer = dnsServer
|
||||||
};
|
};
|
||||||
|
|
|
@ -54,12 +54,14 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
|
|
||||||
private static List<string> _createdDatePatterns = new List<string> { @"Creation Date:(.+)", // base
|
private static List<string> _createdDatePatterns = new List<string> { @"Creation Date:(.+)", // base
|
||||||
@"created:(.+)",
|
@"created:(.+)",
|
||||||
|
@"Created On:(.+) UTC",
|
||||||
@"Created On:(.+)",
|
@"Created On:(.+)",
|
||||||
@"Domain Registration Date:(.+)",
|
@"Domain Registration Date:(.+)",
|
||||||
@"Domain Create Date:(.+)",
|
@"Domain Create Date:(.+)",
|
||||||
@"Registered on:(.+)"};
|
@"Registered on:(.+)"};
|
||||||
|
|
||||||
private static List<string> _expiredDatePatterns = new List<string> { @"Expiration Date:(.+)", // base
|
private static List<string> _expiredDatePatterns = new List<string> { @"Expiration Date:(.+) UTC", //base UTC
|
||||||
|
@"Expiration Date:(.+)", // base
|
||||||
@"Registry Expiry Date:(.+)", //.org
|
@"Registry Expiry Date:(.+)", //.org
|
||||||
@"paid-till:(.+)", //.ru
|
@"paid-till:(.+)", //.ru
|
||||||
@"Expires On:(.+)", //.name
|
@"Expires On:(.+)", //.name
|
||||||
|
@ -2682,7 +2684,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
{
|
{
|
||||||
DataProvider.UpdateDomainLastUpdateDate(domain.DomainId, DateTime.Now);
|
DataProvider.UpdateDomainLastUpdateDate(domain.DomainId, DateTime.Now);
|
||||||
|
|
||||||
var whoisResult = WhoisClient.Query(domain.DomainName);
|
var whoisResult = WhoisClient.Query(domain.DomainName.ToLowerInvariant());
|
||||||
|
|
||||||
var createdDate = GetDomainInfoDate(whoisResult.Raw, _createdDatePatterns);
|
var createdDate = GetDomainInfoDate(whoisResult.Raw, _createdDatePatterns);
|
||||||
var expiredDate = GetDomainInfoDate(whoisResult.Raw, _expiredDatePatterns);
|
var expiredDate = GetDomainInfoDate(whoisResult.Raw, _expiredDatePatterns);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue