예제 #1
0
        public bool BlockZone(string domain)
        {
            if (_zoneManager.CreateInternalPrimaryZone(domain, _soaRecord, _nsRecord) != null)
            {
                return(true);
            }

            return(false);
        }
예제 #2
0
        public bool AllowZone(string domain)
        {
            if (_zoneManager.CreateInternalPrimaryZone(domain, _soaRecord, _nsRecord) != null)
            {
                _totalZonesAllowed++;
                return(true);
            }

            return(false);
        }