[Pdns-users] Mongo DB and PowerDNS part 2

fredrik danerklint fredan-pdns at fredan.org
Sat Mar 26 16:36:14 UTC 2011


This is from native backend with MongoDB!

$ dig www.example.com A @127.0.0.1 -p5300

; <<>> DiG 9.7.1-P2 <<>> www.example.com A @127.0.0.1 -p5300
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55603
;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;www.example.com.               IN      A

;; ANSWER SECTION:
www.example.com.        3600    IN      CNAME   webserver.example.com.
webserver.example.com.  3600    IN      A       1.2.3.4
webserver.example.com.  3600    IN      A       1.2.3.5
webserver.example.com.  3600    IN      A       1.2.3.6

;; Query time: 7 msec
;; SERVER: 127.0.0.1#5300(127.0.0.1)
;; WHEN: Sat Mar 26 16:06:15 2011
;; MSG SIZE  rcvd: 105

The content of the database looks like this:
 
{ "domain_id" : 1, "name" : "example.com", "type" : "SOA", "ttl" : 3600, 
"content" : ["ahu.example.com ns1.example.com 2008080300 1800 3600 604800 
3600"] }
{ "domain_id" : 1, "name" : "example.com", "type" : "TXT", "ttl" : 3600, 
"content" : [ "hallo allemaal!"] }
{ "domain_id" : 1, "name" : "example.com", "type" : "NS", "ttl" : 3600, 
"content" : ["ns1.example.com", "ns2.example.com"] }
{ "domain_id" : 1, "name" : "webserver.example.com", "type" : "A", "ttl" : 
3600, "content" : ["1.2.3.4", "1.2.3.5", "1.2.3.6" ] }
{ "domain_id" : 1, "name" : "www.example.com", "type" : "CNAME", "ttl" : 3600, 
"content" : ["webserver.example.com"] }

-- 
//fredan



More information about the Pdns-users mailing list