Package org.cipango.dns.record

Examples of org.cipango.dns.record.SoaRecord


    DnsMessage message = getMessage("/responseNameError.dat");
    HeaderSection header = message.getHeaderSection();
    assertEquals(ResponseCode.NAME_ERROR, header.getResponseCode());
    assertEquals(0, message.getAnswerSection().size());
    assertEquals(1, message.getAuthoritySection().size());
    SoaRecord soaRecord = (SoaRecord) message.getAuthoritySection().get(0);
    assertEquals("cipango.org", soaRecord.getName().toString());
    assertEquals("dns.ovh.net", soaRecord.getPrimaryNameServer().toString());
    assertEquals("tech.ovh.net", soaRecord.getMailbox().toString());
    assertEquals(2011041207, soaRecord.getSerial());
    assertEquals(86400, soaRecord.getRefresh());
    assertEquals(3600, soaRecord.getRetry());
    assertEquals(3600000, soaRecord.getExpires());
    assertEquals(86400, soaRecord.getMinimumTtl());
  }
View Full Code Here

TOP

Related Classes of org.cipango.dns.record.SoaRecord

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.