Exemple #1
0
        public PrimaryZone(DnsServer dnsServer, AuthZoneInfo zoneInfo)
            : base(zoneInfo)
        {
            _dnsServer = dnsServer;

            _notifyTimer = new Timer(NotifyTimerCallback, null, Timeout.Infinite, Timeout.Infinite);
            _notifyList  = new List <NameServerAddress>();
        }
 protected ApexZone(AuthZoneInfo zoneInfo)
     : base(zoneInfo)
 {
     _zoneTransfer            = zoneInfo.ZoneTransfer;
     _zoneTransferNameServers = zoneInfo.ZoneTransferNameServers;
     _notify            = zoneInfo.Notify;
     _notifyNameServers = zoneInfo.NotifyNameServers;
 }
Exemple #3
0
        public PrimaryZone(DnsServer dnsServer, AuthZoneInfo zoneInfo)
            : base(zoneInfo.Name)
        {
            _dnsServer = dnsServer;

            _disabled = zoneInfo.Disabled;

            _notifyTimer = new Timer(NotifyTimerCallback, null, Timeout.Infinite, Timeout.Infinite);
        }
Exemple #4
0
 protected AuthZone(AuthZoneInfo zoneInfo)
     : base(zoneInfo.Name)
 {
     _disabled                = zoneInfo.Disabled;
     _zoneTransfer            = zoneInfo.ZoneTransfer;
     _zoneTransferNameServers = zoneInfo.ZoneTransferNameServers;
     _notify            = zoneInfo.Notify;
     _notifyNameServers = zoneInfo.NotifyNameServers;
 }
        public StubZone(DnsServer dnsServer, AuthZoneInfo zoneInfo)
            : base(zoneInfo)
        {
            _dnsServer = dnsServer;

            _expiry = zoneInfo.Expiry;

            _isExpired    = DateTime.UtcNow > _expiry;
            _refreshTimer = new Timer(RefreshTimerCallback, null, Timeout.Infinite, Timeout.Infinite);
        }
Exemple #6
0
        public SecondaryZone(DnsServer dnsServer, AuthZoneInfo zoneInfo)
            : base(zoneInfo.Name)
        {
            _dnsServer = dnsServer;

            _disabled = zoneInfo.Disabled;
            _expiry   = zoneInfo.Expiry;

            _isExpired    = DateTime.UtcNow > _expiry;
            _refreshTimer = new Timer(RefreshTimerCallback, null, Timeout.Infinite, Timeout.Infinite);
        }
Exemple #7
0
        public SecondaryZone(DnsServer dnsServer, AuthZoneInfo zoneInfo)
            : base(zoneInfo)
        {
            _dnsServer = dnsServer;

            _expiry = zoneInfo.Expiry;

            _isExpired    = DateTime.UtcNow > _expiry;
            _refreshTimer = new Timer(RefreshTimerCallback, null, Timeout.Infinite, Timeout.Infinite);

            _notifyTimer = new Timer(NotifyTimerCallback, null, Timeout.Infinite, Timeout.Infinite);
            _notifyList  = new List <NameServerAddress>();
        }
Exemple #8
0
        public PrimaryZone(DnsServer dnsServer, AuthZoneInfo zoneInfo)
            : base(zoneInfo)
        {
            _dnsServer = dnsServer;

            if (zoneInfo.ZoneHistory is null)
            {
                _history = new List <DnsResourceRecord>();
            }
            else
            {
                _history = new List <DnsResourceRecord>(zoneInfo.ZoneHistory);
            }

            _tsigKeyNames = zoneInfo.TsigKeyNames;

            _notifyTimer = new Timer(NotifyTimerCallback, null, Timeout.Infinite, Timeout.Infinite);
            _notifyList  = new List <NameServerAddress>();
        }
        public SecondaryZone(DnsServer dnsServer, AuthZoneInfo zoneInfo)
            : base(zoneInfo)
        {
            _dnsServer = dnsServer;

            if (zoneInfo.ZoneHistory is null)
            {
                _history = new List <DnsResourceRecord>();
            }
            else
            {
                _history = new List <DnsResourceRecord>(zoneInfo.ZoneHistory);
            }

            _tsigKeyNames = zoneInfo.TsigKeyNames;

            _expiry = zoneInfo.Expiry;

            _isExpired    = DateTime.UtcNow > _expiry;
            _refreshTimer = new Timer(RefreshTimerCallback, null, Timeout.Infinite, Timeout.Infinite);

            InitNotify(_dnsServer);
        }
Exemple #10
0
 public ForwarderZone(AuthZoneInfo zoneInfo)
     : base(zoneInfo.Name)
 {
     _disabled = zoneInfo.Disabled;
 }
Exemple #11
0
 public ForwarderZone(AuthZoneInfo zoneInfo)
     : base(zoneInfo)
 {
 }
 protected AuthZone(AuthZoneInfo zoneInfo)
     : base(zoneInfo.Name)
 {
     _disabled = zoneInfo.Disabled;
 }