mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-25 17:27:40 +00:00
AuthZoneInfo: implemented RefreshZone() method to allow refreshing secondary & stub zones.
This commit is contained in:
@@ -125,6 +125,26 @@ namespace DnsServerCore.Dns.Zones
|
||||
return _zone.GetRecords(type);
|
||||
}
|
||||
|
||||
public void RefreshZone()
|
||||
{
|
||||
if (_zone == null)
|
||||
throw new InvalidOperationException();
|
||||
|
||||
switch (_type)
|
||||
{
|
||||
case AuthZoneType.Secondary:
|
||||
(_zone as SecondaryZone).RefreshZone();
|
||||
break;
|
||||
|
||||
case AuthZoneType.Stub:
|
||||
(_zone as StubZone).RefreshZone();
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new InvalidOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
public void WriteTo(BinaryWriter bW)
|
||||
{
|
||||
if (_zone == null)
|
||||
|
||||
Reference in New Issue
Block a user