[Pdns-users] CNAME records are not returned in answer section by default

Walery Studennikov despair at reg.ru
Mon Sep 6 06:13:05 UTC 2010


2010/9/3 Walery Studennikov <despair at reg.ru>:
> When I ask A record for domain and A record dowsn't exists, but CNAME
> record exists instead, I want pdns to return CNAME records and
> status:NOERROR, but now it doesn't.

Thanks to Pavel Boldin, who have found the problem:

there was a record in database with empty domain name, so it led to
problems with record rearch in PacketHandler::getAuth.

Now this record is deleted and answer is correct:
=================================================
$ dig @ns1.reg.ru mail.poxyist.ru

; <<>> DiG 9.7.1-P2-RedHat-9.7.1-2.P2.fc13 <<>> @ns1.reg.ru mail.poxyist.ru
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54377
;; flags: qr rd; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;mail.poxyist.ru.		IN	A

;; ANSWER SECTION:
mail.poxyist.ru.	43200	IN	CNAME	ghs.google.com.

;; AUTHORITY SECTION:
.			518400	IN	NS	a.root-servers.net.
.			518400	IN	NS	b.root-servers.net.
.			518400	IN	NS	c.root-servers.net.
.			518400	IN	NS	d.root-servers.net.
.			518400	IN	NS	e.root-servers.net.
.			518400	IN	NS	f.root-servers.net.
.			518400	IN	NS	g.root-servers.net.
.			518400	IN	NS	h.root-servers.net.
.			518400	IN	NS	i.root-servers.net.
.			518400	IN	NS	j.root-servers.net.
.			518400	IN	NS	k.root-servers.net.
.			518400	IN	NS	l.root-servers.net.
.			518400	IN	NS	m.root-servers.net.

;; Query time: 84 msec
;; SERVER: 217.16.28.64#53(217.16.28.64)
;; WHEN: Mon Sep  6 10:11:26 2010
;; MSG SIZE  rcvd: 272
=================================================


-- 
Walery Studennikov
CTO of Domain Name Registrar REG.RU
http://www.reg.ru/
+7 495 580-11-11 int. 501



More information about the Pdns-users mailing list