On 07.05.2012 10:58, Muntasir Rahman wrote:
Hi All,
I query a domain name to a local pdns-recursor, and i got much less
output compared to Google DNS.

$ dig @127.0.0.1 <http://127.0.0.1> +tcp www.detik.com
<http://www.detik.com> any

    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32248
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 2


$ dig @8.8.8.8 <http://8.8.8.8> +tcp www.detik.com
<http://www.detik.com> any

    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25034
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 0, ADDITIONAL: 0


PDNS Recursor 3.3, downloaded and compiled from tar.gz source.

My questions are:
- why do i get much less result compared to Google DNS ?
- which configuration item of recursor.conf should i change to get
similar result of google DNS?

It seems that google resolves the CNAME, but powerdns and bind (which I used) do not resolve the CNAME for 'any'.

# dig www.detik.com any

; <<>> DiG 9.7.3 <<>> www.detik.com any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43580
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;www.detik.com.                 IN      ANY

;; ANSWER SECTION:
www.detik.com.          716     IN      CNAME   detik.com.

;; AUTHORITY SECTION:
detik.com.              740     IN      NS      ns1.detik.net.id.
detik.com.              740     IN      NS      ns.detik.net.id.

;; Query time: 0 msec
;; SERVER: 83.136.32.189#53(83.136.32.189)
;; WHEN: Tue May  8 12:02:30 2012
;; MSG SIZE  rcvd: 92


Thus, in you lua script, just make another lookup for the domain in the CNAME record.

regards
Klaus

_______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to