https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6499cf9e1a7e5157c5f8d…
commit 6499cf9e1a7e5157c5f8dfbdef8c18e115982a96
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Dec 21 22:12:21 2019 +0100
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sat Dec 21 22:12:55 2019 +0100
[DNSRSLVR] Set proper flags for the hosts file entries
---
base/services/dnsrslvr/hostsfile.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/base/services/dnsrslvr/hostsfile.c b/base/services/dnsrslvr/hostsfile.c
index 98d39374d4e..1c80dc0cffb 100644
--- a/base/services/dnsrslvr/hostsfile.c
+++ b/base/services/dnsrslvr/hostsfile.c
@@ -105,6 +105,8 @@ AddIpv4HostEntries(
ARecord.pName = pszHostName;
ARecord.wType = DNS_TYPE_A;
ARecord.wDataLength = sizeof(DNS_A_DATA);
+ ARecord.Flags.S.Section = DnsSectionAnswer;
+ ARecord.Flags.S.CharSet = DnsCharSetUnicode;
ARecord.dwTtl = 86400;
ARecord.Data.A.IpAddress = pAddress->S_un.S_addr;
@@ -122,6 +124,8 @@ AddIpv4HostEntries(
PtrRecord.pName = szReverseName;
PtrRecord.wType = DNS_TYPE_PTR;
PtrRecord.wDataLength = sizeof(DNS_PTR_DATA);
+ PtrRecord.Flags.S.Section = DnsSectionAnswer;
+ PtrRecord.Flags.S.CharSet = DnsCharSetUnicode;
PtrRecord.dwTtl = 86400;
PtrRecord.Data.PTR.pNameHost = pszHostName;
@@ -147,6 +151,8 @@ AddIpv6HostEntries(
AAAARecord.pName = pszHostName;
AAAARecord.wType = DNS_TYPE_AAAA;
AAAARecord.wDataLength = sizeof(DNS_AAAA_DATA);
+ AAAARecord.Flags.S.Section = DnsSectionAnswer;
+ AAAARecord.Flags.S.CharSet = DnsCharSetUnicode;
AAAARecord.dwTtl = 86400;
CopyMemory(&AAAARecord.Data.AAAA.Ip6Address,
@@ -172,6 +178,8 @@ AddIpv6HostEntries(
PtrRecord.pName = szReverseName;
PtrRecord.wType = DNS_TYPE_PTR;
PtrRecord.wDataLength = sizeof(DNS_PTR_DATA);
+ PtrRecord.Flags.S.Section = DnsSectionAnswer;
+ PtrRecord.Flags.S.CharSet = DnsCharSetUnicode;
PtrRecord.dwTtl = 86400;
PtrRecord.Data.PTR.pNameHost = pszHostName;