示例#1
0
文件: SOA.cs 项目: Moerty/dnstools
 protected override bool EqualsRDATA(RR rr)
 {
     return(MNAME.Equals(((SOA)rr).MNAME) &&
            RNAME.Equals(((SOA)rr).RNAME) &&
            SERIAL.Equals(((SOA)rr).SERIAL) &&
            REFRESH.Equals(((SOA)rr).REFRESH) &&
            RETRY.Equals(((SOA)rr).RETRY) &&
            EXPIRE.Equals(((SOA)rr).EXPIRE) &&
            MINIMUM.Equals(((SOA)rr).MINIMUM));
 }
示例#2
0
文件: SOA.cs 项目: Moerty/dnstools
 public override string ToString(int namePadding)
 {
     // example.com. IN SOA master.example.com. hostmaster.example.com.  2007061501 3600 1800 604800 600
     return(String.Join(" ", new string[] {
         Base.NAME.PadLeft(namePadding),
         Base.CLASS.ToString(),
         Base.TypeString,
         MNAME.ToString(),
         RNAME.ToString(),
         SERIAL.ToString(),
         REFRESH.ToString(),
         RETRY.ToString(),
         EXPIRE.ToString(),
         Base.TTL.ToString()
     }));
 }