Skip to content

Commit 67412a6

Browse files
committed
resolve cname fixed
1 parent 21ab9c2 commit 67412a6

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Source/NETworkManager/Models/Network/DNSLookup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public void LookupAsync(List<string> hosts, DNSLookupOptions dnsLookupOptions)
109109
// Process the results...
110110
ProcessResponse(dnsResponse);
111111

112-
// If we get a CNAME back (from a result), do a second request and try to get the A, AAAA etc...
113-
if (dnsLookupOptions.ResolveCNAME && dnsLookupOptions.Type != QType.CNAME)
112+
// If we get a CNAME back (from an ANY result), do a second request and try to get the A, AAAA etc...
113+
if (dnsLookupOptions.ResolveCNAME && dnsLookupOptions.Type == QType.ANY)
114114
{
115115
foreach (RecordCNAME r in dnsResponse.RecordsCNAME)
116116
{

Source/NETworkManager/Resources/Localization/Resources.de-DE.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
<system:String x:Key="String_NoDNSRecordFoundCheckYourInputAndSettings">Kein DNS-Eintrag für "{0}" gefunden! Überprüfe deine Eingabe und die Einstellungen.</system:String>
237237
<system:String x:Key="String_UnkownError">Unbekannter Fehler!</system:String>
238238
<system:String x:Key="String_TimeoutWhenQueryingDNSServer">Timeout beim Abfragen des DNS-Servers mit der IP-Adresse "{0}"!</system:String>
239-
<system:String x:Key="String_ResolveCNAME">CNAME auflösen</system:String>
239+
<system:String x:Key="String_ResolveCNAME">CNAME auflösen bei ANY anfragen</system:String>
240240
<system:String x:Key="String_Host">Host</system:String>
241241
<system:String x:Key="String_CouldNotResolveHostnameFor">Hostname konnte nicht aufgelöst werden für: "{0}"</system:String>
242242
<system:String x:Key="String_NothingToDoCheckYourInput">Nichts zu tun. Überprüfen Sie Ihre Eingabe!</system:String>

Source/NETworkManager/Resources/Localization/Resources.en-US.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
<system:String x:Key="String_NoDNSRecordFoundCheckYourInputAndSettings">No DNS record found for "{0}"! Check your input and the settings.</system:String>
237237
<system:String x:Key="String_UnkownError">Unkown error!</system:String>
238238
<system:String x:Key="String_TimeoutWhenQueryingDNSServer">Timeout when querying the DNS server with the IP address "{0}"!</system:String>
239-
<system:String x:Key="String_ResolveCNAME">Resolve CNAME</system:String>
239+
<system:String x:Key="String_ResolveCNAME">Resolve CNAME on ANY requests</system:String>
240240
<system:String x:Key="String_Host">Host</system:String>
241241
<system:String x:Key="String_CouldNotResolveHostnameFor">Could not resolve hostname for: "{0}"</system:String>
242242
<system:String x:Key="String_NothingToDoCheckYourInput">Nothing to do. Check your input!</system:String>

0 commit comments

Comments
 (0)