Пример #1
0
 def __init__(self, target, port, priority=0, weight=0, serial=1, ttl=3600):
     super(SRVRecord, self).__init__()
     self.wType = dnsp.DNS_TYPE_SRV
     self.dwSerial = serial
     self.dwTtlSeconds = ttl
     srv = dnsp.srv()
     srv.nameTarget = target
     srv.wPort = port
     srv.wPriority = priority
     srv.wWeight = weight
     self.data = srv
Пример #2
0
 def __init__(self, target, port, priority=0, weight=100, serial=1, ttl=900,
             rank=dnsp.DNS_RANK_ZONE):
     super(SRVRecord, self).__init__()
     self.wType = dnsp.DNS_TYPE_SRV
     self.rank = rank
     self.dwSerial = serial
     self.dwTtlSeconds = ttl
     srv = dnsp.srv()
     srv.nameTarget = target
     srv.wPort = port
     srv.wPriority = priority
     srv.wWeight = weight
     self.data = srv