Wildcards like *.foo.com

Hi,

I'm new to unbound but i've get it running. :slight_smile:

But I've a question:
is it possible to use wildcards for subdomains like:
  *.ls.local.

  local-data: "*.ls.local. 86400 IN A 192.168.2.30"
and
  local-data: ".ls.local. 86400 IN A 192.168.2.30"
didn't work

Thanks for helping!
Regards
Hauke

Hi Hauke,

No, unbound is not an authoritative server, and doesn't have all the
authoritative DNS capabilities (you could run a real auth server and
point a stub-zone at it).

What you want can be done with
  local-zone: "ls.local" redirect
  local-data: "ls.local 86400 IN A 192.168.2.30"

It replies with 192..30 for ls.local and everything below.
Including a.b.c.*.ls.local... So more than a wildcard would, but anyway
an academic difference to you, no doubt.

Best regards,
   Wouter

Hauke Hoffmann wrote: