Hi all, I am planning to migrate away from Bind to PowerDNS with MySQL and Geo backend, but so far have failed. The PowerDNS part and MySQL has worked, but the geo part didn't work. What I mean by this is that when I check from (for example) Asia:
$ dig @203.123.59.184 www.test.com ; <<>> DiG 9.3.4-P1 <<>> @203.123.59.184 www.test.com ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25260 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;www.test.com. IN A ;; ANSWER SECTION: www.test.com. 120 IN CNAME geo.test.com. ;; AUTHORITY SECTION: geo.test.com. 86400 IN SOA pdns.test.com. hostmaster.test.com. 1 86400 172800 604800 3600 ;; Query time: 202 msec ;; SERVER: 203.123.59.184#53(203.123.59.184) ;; WHEN: Thu May 14 14:08:49 2009 ;; MSG SIZE rcvd: 108 It doesn't show the resulting A record for geo.test.com (which should be as.iso.test.com). This is my records from mysql: +----+-----------+--------------------+-------+-------------------------+-------+------+-------------+ | id | domain_id | name | type | content | ttl | prio | change_date | +----+-----------+--------------------+-------+-------------------------+-------+------+-------------+ | 1 | 1 | test.com | SOA | localhost [email protected] 1 | 86400 | NULL | NULL | | 2 | 1 | test.com | NS | dns-us1.powerdns.net | 86400 | NULL | NULL | | 3 | 1 | test.com | NS | dns-eu1.powerdns.net | 86400 | NULL | NULL | | 5 | 1 | mail.test.com | A | 195.194.193.192 | 120 | NULL | NULL | | 6 | 1 | localhost.test.com | A | 127.0.0.1 | 120 | NULL | NULL | | 7 | 1 | test.com | MX | mail.test.com | 120 | 25 | NULL | | 8 | 1 | bom.test.com | A | 60.48.186.54 | 120 | NULL | NULL | | 9 | 1 | www.test.com | CNAME | geo.test.com | 120 | NULL | NULL | | 10 | 1 | test.com | A | 199.198.197.196 | 120 | NULL | NULL | | 11 | 1 | pdns.test.com. | A | 203.123.59.184 | 120 | NULL | NULL | | 13 | 1 | geo | NS | pdns.test.com | 120 | NULL | NULL | | 14 | 1 | as.iso.test.com. | A | 203.123.59.182 | 120 | NULL | NULL | | 15 | 1 | au.iso.test.com. | A | 203.123.59.182 | 120 | NULL | NULL | | 16 | 1 | na.iso.test.com. | A | 207.210.209.244 | 120 | NULL | NULL | | 17 | 1 | sa.iso.test.com. | A | 196.40.15.100 | 120 | NULL | NULL | | 18 | 1 | oc.iso.test.com. | A | 203.123.59.182 | 120 | NULL | NULL | | 19 | 1 | af.iso.test.com. | A | 217.168.160.247 | 120 | NULL | NULL | | 20 | 1 | uk.iso.test.com. | A | 213.137.29.24 | 120 | NULL | NULL | | 21 | 1 | eu.iso.test.com. | A | 217.168.160.247 | 120 | NULL | NULL | | 22 | 1 | pool.test.com. | CNAME | us.iso.test.com. | 120 | NULL | NULL | +----+-----------+--------------------+-------+-------------------------+-------+------+-------------+ This is the top of my mapping file: $RECORD www $ORIGIN iso.test.com. # Default 0 pool.test.com. # Andorra 20 eu # United Arab Emirates 784 as # Afghanistan 4 as This is my configuration for inside pdns.d/geoip.conf geo-zone=geo.test.com geo-soa-values=pdns.test.com,[email protected] geo-ns-records=pdns.test.com,dns-us1.powerdns.net,dns-eu1.powerdns.net geo-ip-map-zonefile=/etc/powerdns/zz.countries.nerd.dk.rbldnsd geo-maps=/etc/powerdns/geomaps/ #geo-ttl=3600 geo-ttl=0 #geo-ns-ttl=86400 geo-ns-ttl=0 And this is the part where i restart the server: May 14 04:59:53 emu2 pdns[2036]: Listening on controlsocket in '/var/run/pdns.controlsocket' May 14 04:59:53 emu2 pdns[2038]: Guardian is launching an instance May 14 04:59:53 emu2 pdns[2038]: This is module gmysqlbackend.so reporting May 14 04:59:53 emu2 pdns[2038]: [GeoBackend] This is the geobackend (Aug 9 2008, 22:57:40 - $Revision: 1.1 $) reporting May 14 04:59:53 emu2 pdns[2038]: This is a guarded instance of pdns May 14 04:59:53 emu2 pdns[2038]: UDP server bound to 203.123.59.184:53 May 14 04:59:53 emu2 pdns[2038]: TCP server bound to 203.123.59.184:53 May 14 04:59:53 emu2 pdns[2038]: PowerDNS 2.9.20 (C) 2001-2006 PowerDNS.COM BV (Aug 9 2008, 23:00:23, gcc 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) starting up May 14 04:59:53 emu2 pdns[2038]: PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2. May 14 04:59:53 emu2 pdns[2038]: Set effective group id to 109 May 14 04:59:53 emu2 pdns[2038]: Set effective user id to 104 May 14 04:59:53 emu2 pdns[2038]: Creating backend connection for TCP May 14 04:59:53 emu2 pdns[2038]: gmysql Connection succesful May 14 04:59:53 emu2 pdns[2038]: [geobackend] Parsing IP map zonefile May 14 04:59:53 emu2 pdns[2038]: [geobackend] Finished parsing IP map zonefile: added 65494 prefixes, stored in 163454 nodes using 3922896 bytes of memory May 14 04:59:53 emu2 pdns[2038]: [geobackend] Parsing director map /etc/powerdns/geomaps/foo May 14 04:59:53 emu2 pdns[2038]: [geobackend] Finished parsing 1 director map files, 0 failures May 14 04:59:53 emu2 pdns[2038]: About to create 3 backend threads for UDP May 14 04:59:53 emu2 pdns[2038]: gmysql Connection succesful -- Thanks, Jullian Gafar Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Pdns-users mailing list [email protected] http://mailman.powerdns.com/mailman/listinfo/pdns-users
