@Test
public void delete() throws Exception{
private String dnsServer = "192.168.30.132";
Name zone = Name.fromString("abc.com.tw.");
Name host = Name.fromString("aaa", zone);
log.info("" + host);
Update update = new Update(zone);
update.delete(host, Type.CNAME, DClass.IN, 400, "sdp", Name.fromString("cs."));
log.info("update: " + update);
Resolver res = new SimpleResolver(dnsServer);
res.setTSIGKey(new TSIG("example.com.","Roa6+m+40vuEHNJbMVTRjg=="));
res.setTCP(true);
Message response = res.send(update);
log.info("message: " + response.toString());
}