Package org.xbill.DNS

Examples of org.xbill.DNS.Update.replace()


        final List<Message> replies = new LinkedList<Message>();

        Name zone = Name.fromString("dyn.test.example.");
        Name host = Name.fromString("host", zone);
        Update message = new Update(zone);
        message.replace(host, Type.A, 3600, "1.2.3.4");

        Query query = TestUtils.getQuery(replies, message);
        ResolveTask task = new ResolveTask(query);
        task.setCache(TestUtils.getEhcache());
        task.setBackendStore(new BackendRepository() {
View Full Code Here


        final Update update = new Update(zone);

        //TYPE.SRV
        if(mode == ADD) {
          //TODO add absent/present condition checks
          update.replace(srvRecord.withName(fqdn));
        } else {
          update.delete(srvRecord.withName(fqdn));
        }
       
        //TYPE.TXT
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.