[Pdns-users] Weird wildcard behavior
Gencer W. Genç
gencer at gencgiyen.com
Sat Feb 8 22:23:04 UTC 2020
I am trying to add wildcard support for a domain like:
*.mydomain.com IN A 127.0.0.1
I expect these results:
one.mydomain.com -> 127.0.0.1
two.mydomain.com -> 127.0.0.1
However, This is also work for:
one.one.mydomain.com -> 127.0.0.1
As you can see, "one.one" is a two level subdomain. I only match single
level subdomain and return as 127.0.0.1. So for two level domains or three
level and goes on I expect this:
Expected Result:
one.one.mydomain.com -> NXDOMAIN
one.two.three.one.mydomain.com -> NXDOMAIN
Actual Result:
one.one.mydomain.com -> 127.0.0.1
one.two.three.one.mydomain.com -> 127.0.0.1
=================== EXAMPLES ===================
Records/Rules:
*.mydomain.com IN A 1.1.1.1
*.one.mydomain.com IN A 4.4.4.4
*.two.mydomain.com IN A 5.5.5.5
BIND Behavior:
test.mydomain.com -> 1.1.1.1
test.one.mydomain.com -> 4.4.4.4
test.two.mydomain.com -> 5.5.5.5
hello.test.two.mydomain.com -> NXDOMAIN
PowerDNS Behavior:
test.mydomain.com -> 1.1.1.1
test.one.mydomain.com -> 1.1.1.1
test.two.mydomain.com -> 1.1.1.1
hello.test.two.mydomain.com -> 1.1.1.1
=================== EXAMPLES ===================
How can i get the BIND result as i expected on PowerDNS? Is this behavior
intentional? How c an i restrict wildcards to one level only?
Thanks,
Gencer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20200209/14ea01ab/attachment.htm>
More information about the Pdns-users
mailing list