[Pdns-users] Query Question

Wei Zhang wzhang at transaria.com
Fri Jan 20 19:22:38 UTC 2006


I couldn't get the goralcle backend working.
Instead I got the old oracelbackend-2.1 from the pdns site and managed
to get it compiled,load it up into the old pdns-2.8.1 dynamic.

It seems pdns communicates with the oracle 10g db correctly, picking up
the queries.
Here is the question,

I set up 2 domains in db, and some test records in each of those domain.
It looks like this:

Test1.net 	IN 	SOA ................
Test1.net 	IN 	NS	serverip
omg		IN 	A	1.1.1.1

Test2.net	IN	SOA	.........
Test2.net 	IN 	NS	serverip
omg		IN 	A	2.2.2.2

 I did a query using dig while pdns running in monitor mode
************************************************************************
*****
#dig omg.Test1.net A @ serverip
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 16384
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;test.transaria.net.            IN      A
;; AUTHORITY SECTION:
Test1.net.          86400   IN      SOA     .....

;; Query time: 8 msec
;; SERVER: ip#53(ip)
;; WHEN: Fri Jan 20 13:04:30 2006
;; MSG SIZE  rcvd: 110

Serverside info: Authoritative NXDOMAIN to serverip for 'omg.Test1.net'
(A)
************************************************************************
***********************
when I run
# dig omg A @ severip
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31987
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;omg.                          IN      A

;; ANSWER SECTION:
omg.                   3600    IN      A       1.1.1.1
omg.                   3600    IN      A       2.2.2.2

;; Query time: 3 msec
;; SERVER: ip#53(ip)
;; WHEN: Fri Jan 20 13:07:12 2006
;; MSG SIZE  rcvd: 54
************************************************************************
***********************
As shown above, pdns return both records' ip even I didn't specify the
domain. In my understanding, pdns should kick this kind of query and
only
response to query like the first one.

It seems pdns only pick up absolute url, not like bind which use
relative one. I don't know if this the problem in old oralcebackend or
old version of pdns? 
Anybody can share some thoughts? Thanks.







More information about the Pdns-users mailing list