[Pdns-users] Re: geobackend issues

dushy dushyanth at gmail.com
Thu Oct 5 16:48:14 UTC 2006


FY!,

The issue turned out to be blank lines in the map file

# cat /usr/local/powerdns/etc/geo-maps/www
$RECORD www
$ORIGIN iso.xxxxxxxx.com.
#us
840 us

#in
356 in

0 geomain.xxxxxxxx.com.

The above wont work..

It has to be..

# cat /usr/local/powerdns/etc/geo-maps/www

$RECORD www
$ORIGIN iso.xxxxxxxx.com.
#us
840 us
#in
356 in
0 geomain.xxxxxxxx.com.

This works cool.

dushyanth


On 9/4/06, dushy <dushyanth at gmail.com> wrote:
> Hey all,
>
> Iam trying out the geobackend available by default in latest powerdns
> (http://downloads.powerdns.com/releases/pdns-2.9.20.tar.gz). Installed
> using './configure --prefix=/usr/local/powerdns --with-module=geo'
>
> geo backend related settings in pdns.conf is as below..
>
> launch=geo
> geo-zone=geo.xxxxxxxx.com
> geo-soa-values=gns1.xxxxxxxx.com,abuse at xxx.xxxx
> geo-ns-records=gns1.xxxxxxxx.com,gns2.xxxxxxxx.com
> geo-ttl=300
> geo-ns-ttl=300
> geo-ip-map-zonefile=/usr/local/powerdns/etc/zz.countries.nerd.dk.rbldnsd
> geo-maps=/usr/local/powerdns/etc/geo-maps
>
> geomap file is
>
> # cat /usr/local/powerdns/etc/geo-maps/www
>
> $RECORD www
> $ORIGIN iso.xxxxxxxx.com.
> #us
> 840 us
> #in
> 356 in
> 0 geomain.xxxxxxxx.com.
>
> When i query this DNS server from a Indian or US location, below is
> what i get in the pdns_server foreground console..
>
> Sep 04 08:31:47 [geobackend] Serving www.geo.xxxxxxxx.com CNAME
> .iso.xxxxxxxx.com to 203.199.xxx.xxx (356)
>
> If I query this DNS server from a europeon location then i get the
> default RR properly..
>
> Sep 04 09:00:45 [geobackend] Serving www.geo.xxxxxxxx.com CNAME
> geomain.xxxxxxxx.com to 85.17.xxx.xxx (528)
>
> Any ideas how to fix this ?
>
> TIA
> Dushyanth
>


More information about the Pdns-users mailing list