directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrique Rodriguez" <enriqu...@gmail.com>
Subject Re: DNS : RecordStore
Date Thu, 14 Jun 2007 00:28:11 GMT
On 6/13/07, Julien Vermillard <jvermillard@archean.fr> wrote:
> ...
> I use a DatagramAcceptor
>
> I 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

Mime
View raw message