[Pdns-users] PowerDNS GeoIP wildcard domain
Aki Tuomi
cmouse at cmouse.fi
Mon Apr 3 08:13:15 UTC 2017
On Thu, Mar 23, 2017 at 09:17:50AM +0800, Phang WM wrote:
> Hi,
> Currently, I am able to configure the PowerDNS with GeoIP. However, the
> following configuration for wildcard does not work.
>
> services:
> "abc.example.com": [ '%co.abc.example.com','default.abc.example.com']
> "*.abc.example.com": [ '%co.abc.example.com','default.abc.example.com']
>
> I am able to resolve www.abc.example.com but not abc.example.com
> If I remove "*.abc.example.com": [ '%co.abc.example.com','
> default.abc.example.com'], then can resolved abc.example.com.
> Anyway to have both of them together?
>
> Thank you
Probably best would be to add some indirection:
in static records
abc.example.com IN CNAME abc-service.example.com
in services
"abc-service.example.com": [ '%co.service.example.com','default.service.example.com']
Using %co.abc.example.com, in your example, would lead to a loop.
Aki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20170403/8519967c/attachment.sig>
More information about the Pdns-users
mailing list