mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-19 15:15:50 +00:00
ForwarderZone: added dnssec validation and proxy support.
This commit is contained in:
@@ -21,6 +21,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using TechnitiumLibrary.Net.Dns;
|
||||
using TechnitiumLibrary.Net.Dns.ResourceRecords;
|
||||
using TechnitiumLibrary.Net.Proxy;
|
||||
|
||||
namespace DnsServerCore.Dns.Zones
|
||||
{
|
||||
@@ -32,13 +33,13 @@ namespace DnsServerCore.Dns.Zones
|
||||
: base(zoneInfo)
|
||||
{ }
|
||||
|
||||
public ForwarderZone(string name, DnsTransportProtocol forwarderProtocol, string forwarder)
|
||||
public ForwarderZone(string name, DnsTransportProtocol forwarderProtocol, string forwarder, bool dnssecValidation, NetProxyType proxyType, string proxyAddress, ushort proxyPort, string proxyUsername, string proxyPassword)
|
||||
: base(name)
|
||||
{
|
||||
_zoneTransfer = AuthZoneTransfer.Deny;
|
||||
_notify = AuthZoneNotify.None;
|
||||
|
||||
DnsResourceRecord fwdRecord = new DnsResourceRecord(name, DnsResourceRecordType.FWD, DnsClass.IN, 0, new DnsForwarderRecord(forwarderProtocol, forwarder));
|
||||
DnsResourceRecord fwdRecord = new DnsResourceRecord(name, DnsResourceRecordType.FWD, DnsClass.IN, 0, new DnsForwarderRecord(forwarderProtocol, forwarder, dnssecValidation, proxyType, proxyAddress, proxyPort, proxyUsername, proxyPassword));
|
||||
|
||||
_entries[DnsResourceRecordType.FWD] = new DnsResourceRecord[] { fwdRecord };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user