Package org.cipango.dns.record

Examples of org.cipango.dns.record.PtrRecord


  }
 
  @Test
  public void testPtr() throws Exception
  {
    List<Record> records = _dnsService.lookup(new PtrRecord(InetAddress.getByName(IPV4_ADDR)));
    assertEquals(1, records.size());
    PtrRecord ptr = (PtrRecord) records.get(0);
    assertEquals("46-105-46-188.ovh.net", ptr.getPrtdName().toString());
    //System.out.println(records);
  }
View Full Code Here


 

  public void testPtrIpv6() throws Exception
  {
    //new PtrRecord(InetAddress.getByName(IPV6_ADDR));
    List<Record> records = _dnsService.lookup(new PtrRecord(InetAddress.getByName(IPV6_ADDR)));
    assertEquals(1, records.size());
    PtrRecord ptr = (PtrRecord) records.get(0);
    assertEquals("46-105-46-188.ovh.net", ptr.getPrtdName().toString());
    //System.out.println(records);
  }
View Full Code Here

TOP

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

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.