[Pdns-users] Malformed message error
Graham White
graham at bravenet.com
Fri Apr 25 00:52:07 UTC 2003
Hi I am receiving these error messages when I am trying to query certain record types with powerdns and a mysql backend. Certain queries are working fine and some
aren't, some examples follow:
dig @172.16.0.151 test.com
;; QUESTION SECTION:
;test.com. IN A
;; ANSWER SECTION:
test.com. 172800 IN A 172.16.0.100
--------------------
dig @172.16.0.151 test.com NS
;; Warning: Message parser reports malformed message packet.
;; Truncated, retrying in TCP mode.
;; Connection to 172.16.0.151#53(172.16.0.151) for test.com failed: connection refused.
It seems like query types of NS, MX or ANY are failing while A SOA and PTR are fine. I can't see any error messages in the logs as to why.
Mysql tables were built as specified by the documentation.
Here is an overview of the insert statements I used for mysql:
insert into domains (name,type) values ('test.com','NATIVE');
insert into records (domain_id, name,type,content,ttl,prio) select id ,'test.com', 'SOA',
'ns1.test.com. dnsadmin.test.com. 20030501 28800 7200 1209600 3600', 172800, 0 from domains
where name='test.com';
insert into records (domain_id, name,type,content,ttl,prio) select id ,'test.com',
'A', '172.16.0.100', 172800, 0 from domains where name='test.com';
insert into records (domain_id, name,type,content,ttl,prio) select id ,'test.com',
'NS', 'ns1.test.com', 172800, 0 from domains where name='test.com';
insert into records (domain_id, name,type,content,ttl,prio) select id ,'test.com',
'NS', 'ns2.test.com', 172800, 0 from domains where name='test.com';
insert into records (domain_id, name,type,content,ttl,prio) select id ,'ns1.test.com',
'A', '172.16.0.1', 172800, 0 from domains where name='test.com';
insert into records (domain_id, name,type,content,ttl,prio) select id ,'ns2.test.com',
'A', '172.16.0.2', 172800, 0 from domains where name='test.com';
If I do a query on the A record for ns1 or ns2.test.com then those come back fine. Perhaps my Insert statements for the NS entries are off?
Any help on this is greatly appreciated. Thanks!
Graham White
graham at bravenet.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20030424/78918965/attachment.html>
More information about the Pdns-users
mailing list