AuthZoneManager: implemented xfr protocol support for secondary zone.

This commit is contained in:
Shreyas Zare
2021-07-31 18:45:08 +05:30
parent d9da07a0e4
commit aae7f27052

View File

@@ -687,9 +687,9 @@ namespace DnsServerCore.Dns.ZoneManagers
return null;
}
public async Task<AuthZoneInfo> CreateSecondaryZoneAsync(string domain, string primaryNameServerAddresses = null, string tsigKeyName = null, string tsigSharedSecret = null, string tsigAlgorithm = null)
public async Task<AuthZoneInfo> CreateSecondaryZoneAsync(string domain, string primaryNameServerAddresses = null, DnsTransportProtocol zoneTransferProtocol = DnsTransportProtocol.Tcp, string tsigKeyName = null, string tsigSharedSecret = null, string tsigAlgorithm = null)
{
SecondaryZone authZone = await SecondaryZone.CreateAsync(_dnsServer, domain, primaryNameServerAddresses, tsigKeyName, tsigSharedSecret, tsigAlgorithm);
SecondaryZone authZone = await SecondaryZone.CreateAsync(_dnsServer, domain, primaryNameServerAddresses, zoneTransferProtocol, tsigKeyName, tsigSharedSecret, tsigAlgorithm);
if (_root.TryAdd(authZone))
{