On 6/13/07, Julien Vermillard <[EMAIL PROTECTED]> wrote:
... I use a DatagramAcceptorI made that test : Set<ResourceRecord> set=new HashSet<ResourceRecord>(); HashMap<String, Object> attr= new HashMap<String, Object>(); attr.put(DnsAttribute.IP_ADDRESS,"192.168.66.66"); ResourceRecord rr=new ResourceRecordImpl("totoz.net",RecordType.A,RecordClass.IN,10000,attr); set.add(rr); return set; dig result : :~$ dig @192.168.0.228 -p 10053 www.totoz.net Warning: Message parser reports malformed message packet.
FWIW, you are querying for 'www.totoz.net', but the A record you have created is only for 'totoz.net'. With A records, the question record domain name and the resource record domain name should match. 'totoz.net' is a legitimate host name so your A record says 'totoz.net' has the given IP address, not that your query is for an A record subordinate to the 'totoz.net' domain. In any case, your problem is the null address as discussed next. Enrique
