示例#1
0
 def __init__(
     self,
     mname,
     rname,
     serial=1,
     refresh=900,
     retry=600,
     expire=86400,
     minimum=3600,
     ttl=3600,
     rank=dnsp.DNS_RANK_ZONE,
 ):
     super(SOARecord, self).__init__()
     self.wType = dnsp.DNS_TYPE_SOA
     self.rank = rank
     self.dwSerial = serial
     self.dwTtlSeconds = ttl
     soa = dnsp.soa()
     soa.serial = serial
     soa.refresh = refresh
     soa.retry = retry
     soa.expire = expire
     soa.mname = mname
     soa.rname = rname
     soa.minimum = minimum
     self.data = soa
示例#2
0
文件: sambadns.py 项目: sgulls/R7800
 def __init__(self, mname, rname, serial=1, refresh=900, retry=600,
              expire=86400, minimum=3600, ttl=3600, rank=dnsp.DNS_RANK_ZONE):
     super(SOARecord, self).__init__()
     self.wType = dnsp.DNS_TYPE_SOA
     self.rank = rank
     self.dwSerial = serial
     self.dwTtlSeconds = ttl
     soa = dnsp.soa()
     soa.serial = serial
     soa.refresh = refresh
     soa.retry = retry
     soa.expire = expire
     soa.mname = mname
     soa.rname = rname
     soa.minimum = minimum
     self.data = soa