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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Pdns-users mailing list
[email protected]
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to