private DnsMessageEncoder encoder = new DnsMessageEncoder();
private TestAAAARecordEncoder recordEncoder = new TestAAAARecordEncoder();
@Override
public ProtocolEncoder getEncoder(IoSession session) throws Exception {
return new DnsUdpEncoder() {
@Override
public void encode(IoSession session, Object message, ProtocolEncoderOutput out) {
IoBuffer buf = IoBuffer.allocate( 1024 );
DnsMessage dnsMessage = (DnsMessage) message;