[Pdns-users] Geo-backend
hirantha
hirantha at securedpipe.net
Tue Nov 25 19:07:01 UTC 2008
Francisco Puente wrote:
> Thanks Hirantha!
>
> I've got it half working with your comments :)
>
> I still think I'm missing something:
> =======================================================
> > www1.test.com
> Server: xxx.xxx.xxx.44
> Address: xxx.xxx.xxx.44#53
>
> www1.test.com canonical name = www1.geo.test.com.
> www1.geo.test.com canonical name = geo.test.com.
> > www1.test.com
> Server: xxx.xxx.xxx.44
> Address: xxx.xxx.xxx.44#53
>
> www1.test.com canonical name = www1.geo.test.com.
> www1.geo.test.com canonical name = geo.test.com.
> > www1.geo.test.com
> Server: xxx.xxx.xxx.44
> Address: xxx.xxx.xxx44#53
>
> www1.geo.test.com canonical name = geo.test.com.
> =======================================================
>
> It's getting better :)
>
> Another thing: what happend if client coutry code is not listed in the
> zone? get's no IP at all, I've tested it.
Try this.
add catch all entry to the /geo-maps/www1
# Catch ALL
0 ca.test.com.
And point ca.test.com to your web server IP address in your test.com zone file
ca.test.com. A 192.168.100.5
Hope this is helpful.
Good luck
-> Hirantha
>
> Gan't get the IP adress yet for www1 (I'm not using www)
>
> Ideas are VERY welcome!!
>
> Thanks
> Francisco
>
> hirantha wrote:
>> Hello Francisco,
>>
>> Francisco Puente wrote:
>>> Hello,
>>>
>>> Anyone succeeded installing PowerDNS + Geo-Backend?
>>
>> yes
>>>
>>> I'm migrating from Bind to PowerDNS but I need to get Geo working...
>>>
>>> I'm using "launch=bind,geo" at pdns.conf, starts OK:
>>
>> I was used launch=gmysql,geo
>>
>>>
>>> ...
>>> Nov 26 06:04:39 Set effective group id to 103
>>> Nov 26 06:04:39 Set effective user id to 100
>>> Nov 26 06:04:39 Creating backend connection for TCP
>>> Nov 26 06:04:39 [bindbackend] Parsing 2 domain(s), will report when done
>>> Nov 26 06:04:39 [bindbackend] Warning! Skipping 'hint' zone '.'
>>> % Nov 26 06:04:39 [bindbackend] Done parsing domains, 0 rejected, 1
>>> new, 0 removed
>>> Nov 26 06:04:39 [geobackend] Parsing IP map zonefile
>>> Nov 26 06:04:40 [geobackend] Finished parsing IP map zonefile: added
>>> 65494 prefixes, stored in 163454 nodes using 1961448 bytes of memory
>>> Nov 26 06:04:40 [geobackend] Parsing director map
>>> /usr/local/etc/geo-maps
>>> Nov 26 06:04:40 [geobackend] Finished parsing 1 director map files, 0
>>> failures
>>> Nov 26 06:04:40 About to create 3 backend threads for UDP
>>> Nov 26 06:04:40 Done launching threads, ready to distribute questions
>>> ....
>>>
>>> but geo is not working for me (nslookup):
>>> > www1.test.com
>>> Server: xxx.xxx.xxx.44
>>> Address: xxx.xxx.xxx.44#53
>>>
>>> www1.test.com canonical name = geo.test.com.
>>> ================================================
>>> and the bind zone:
>>>
>>> $ORIGIN .
>>> $TTL 10800 ; 3 hours
>>> test.com. IN SOA ns.test.com. admin.test.com. (
>>> 2008020400 ; Serial
>>> 10800 ; Refresh after 3 hours
>>> 3600 ; Retry after 1 hour
>>> 604800 ; Expire after 1 week
>>> 86400 ) ; Minimum TTL of 1 day
>>> test.com. IN NS ns.test.com.
>>>
>>> test.com. IN MX 1 mx.test.com.
>>> test.com. IN MX 5 mx2.test.com.
>>>
>>> www.test.com. IN A 192.168.100.5
>>> ns.test.com. IN A 192.168.100.10
>>> mx.test.com. IN A 192.168.100.20
>>> mx2.test.com. IN A 192.168.100.21
>>> mail.test.com. IN CNAME mx.test.com.
>> ^ This is not a good thing as I know.
>>>
>>> www1.test.com. IN CNAME geo.test.com.
>> This is how I did.
>> www.test.com. IN CNAME www.geo.test.com.
>> geo.test.com. NS ns1.test.com. (assuming ns1 is the pdns
>> server)
>> sa.geo.test.com. A 192.168.100.40
>> eu.geo.test.com. A 192.168.100.50
>>
>>
>> cat /usr/local/powerdns/etc/geo-maps/www1
>> $RECORD www1
>> $ORIGIN geo.test.com.
>> #eu
>> 840 eu
>> #sa
>> 356 sa
>>
>> 840 and 356 are bogus values and this is working for me as expected.
>> Hope this is helpful.
>>
>> Regards
>> Hirantha
>> >
>>
>>> pdns.test.com. IN A xxx.xxx.xxx.44
>>> geo.test.com. IN NS pdns.test.com.
>>>
>>> sa.iso.test.com. IN A 192.168.100.40
>>> sa.iso.test.com. IN A 192.168.100.41
>>>
>>> eu.iso.test.com. IN A 192.168.100.50
>>> eu.iso.test.com. IN A 192.168.100.51
>>>
>>> Anyone can help? is there any good how-to about this?
>>>
>>> The test.com is of course fake, not real IP's, just a test
>>> environment prior to migrate bind.
>>>
>>> Thanks in advance
>>> Francisco
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Pdns-users mailing list
>>> Pdns-users at mailman.powerdns.com
>>> http://mailman.powerdns.com/mailman/listinfo/pdns-users
>>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
More information about the Pdns-users
mailing list