[Pdns-users] PDNS - NEED HELP ABOUT POWERDNS WITH GEO BACKEND FOR MULTI-DOMAIN

Đức Vinh Hồ vinh.ho2110 at gmail.com
Thu Mar 1 01:14:27 UTC 2012


Thanks again to your pdns.conf file, it give me a better acknowledge about
PDNS. But can you attach your pdns-source.tar.gz (including geobackend
patched) to me ? And i will reinstall PDNS with multi-geo-backend by your
pdns-source.
Or you can show me how to config the patch file ? There're something in the
patch file that i don't understand. Such as :

diff --git a/modules/geobackend/geobackend.cc
b/modules/geobackend/geobackend.cc
index 0a79099..1624ef9 100644
--- a/modules/geobackend/geobackend.cc
+++ b/modules/geobackend/geobackend.cc
@@ -25,17 +25,7 @@ using boost::trim_right;

If i downloaded the lastest pdns source from the official website, how can
i use your patched file ? (i mention about how to patching this file into
the pdns-source and reinstall it)

Thanks a lot José !


2012/2/29 José Arthur Benetasso Villanova <jose.arthur at gmail.com>

> Hi again.
>
> You are right, the 1st module can't be an alias.
>
> I've tried to recompile the patch and configure it once again. So far, I
> just made the configuration work, I didn't test the entire settings. Here
> the *working* configuration:
>
> launch=geo,geo:geo2
> geo-zone=example.com
> geo-soa-values=ns1.example.com,postmaster.example.com
> geo-ns-records=ns1.example.com,ns2.example.com
> geo-ttl=3600
> geo-ns-ttl=86400
> geo-ip-map-zonefile=/home/ze/tmp/pdns/etc/geo1/zz.countries.nerd.dk.rbldnsd
> geo-maps=/home/ze/tmp/pdns/etc/geo1
>
> geo-geo2-zone=example.net
> geo-geo2-soa-values=ns1.example.net,postmaster.example.net
> geo-geo2-ns-records=ns1.example.net,ns2.example.net
> geo-geo2-ttl=3600
> geo-geo2-ns-ttl=86400
>
> geo-geo2-ip-map-zonefile=/home/ze/tmp/pdns/etc/geo2/zz.countries.nerd.dk.rbldnsd
> geo-geo2-maps=/home/ze/tmp/pdns/etc/geo2
>
>
> In my setup, I got this message "[geobackend] Error occured while reading
> director file /home/ze/tmp/pdns/etc/geo2/zz.countries.nerd.dk.rbldnsd:
> $RECORD line empty or missing, georecord qname unknown"
>
> Well, since I just "touch"
> the /home/ze/tmp/pdns/etc/geo2/zz.countries.nerd.dk.rbldnsd, it's ok.
>
> Again, I didn't test the server, I just made the configuration work.
>
> On Wed, Feb 29, 2012 at 2:19 AM, Vasiliy Tolstov <v.tolstov at selfip.ru>wrote:
>
>> 2012/2/29 José Arthur Benetasso Villanova <jose.arthur at gmail.com>:
>> > Hi Đức.
>> >
>> > Try this configuration with the patch:
>> >
>> > launch=geo:geo1,geo:geo2
>> > geo1-zone=geo.domain1.net
>> > geo2-zone=geo.domain2.net
>> >
>> > Basically, you need to tell to PowerDNS that those are different
>> > configuration, much like kernel modules alias.
>> >
>> > The documentation about alias is here:
>> http://doc.powerdns.com/modules.html
>> >
>> > I hope this help.
>> >
>>
>> Sorry for braking thread, but is that possible to get geo backend
>> domains from database?
>> For example i want to create on the fly some domains what have geo
>> part and redirect users for specific ip based on geo.
>>
>> --
>> Vasiliy Tolstov,
>> Clodo.ru
>> e-mail: v.tolstov at selfip.ru
>> jabber: vase at selfip.ru
>>
>
>
>
> --
> José Arthur Benetasso Villanova
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20120301/d9fbf502/attachment.html>


More information about the Pdns-users mailing list