bind9 enum hack

Matus UHLAR - fantomas uhlar at
Fri Jun 24 08:50:25 UTC 2011

>> On Jun 22, 2011 4:35 PM, "Stefan Certic" <stefan at> wrote:
>> > zone "" {
>> > type forward;
>> > forwarders { port 5200;};
>> > };
>> >
>> > zone "e164enum" {
>> > type master;
>> > file "/etc/bind/enum.conf";
>> > };
>> > What i am trying to achieve, is:
>> >
>> > - Match everything that begins with and forward query to
>> > remote server.
>> > - But if there is no forward zone defined, respond from enum.conf

Note that the forward will only work for clients that have recursion 

>> > if i do: dig NAPTR :
>> >
>> > Bind always match query from e164enum zone, and never ask forwarder 
>> > althrough is defined.
>> >
>> > Any hints how to make bind match zones from left to right?

>On Wednesday, June 22, 2011 10:38:31 pm Ben Croswell wrote:
>> Is the child domain you want to forward delegated in the parent you load?
>> If it isn't the forward will be ignored.

No, bind does not check if the subdomain is delegated. If it has configured 
the domain, BIND provides it.

On 23.06.11 00:50, Stefan Certic wrote:
>No, i tried with delegation but got the same results. The thing is that all
>"child" subdomains must match wildcard queries. Im not sure how to delegate
>wildcard subdomains.

you can not delegate wildcard.

In the fact, it should work as you did it, unless
- a bug in the BIND
- a bug in your configuration, maybe you have missed something.

Do you use zones? Are you using correct bind server?
Note that if you slave "e164enum" to another server, the another server 
knows NOTHING about, and that's why you SHOULD have the 
However, since you can not delegate to different port than 53, for these 
cases you will need delegate to your bind with "forward" zone (or maybe 
static-stub), therefore clients will need recursion allowed.

Matus UHLAR - fantomas, uhlar at ;
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Micro$oft random number generator: 0, 0, 0, 4.33e+67, 0, 0, 0...

More information about the bind-users mailing list