Issue Using Wildcards for Subdimain Redirecing

tale d.lawrence at salesforce.com
Thu Feb 17 17:46:38 UTC 2022


On Thu, Feb 17, 2022 at 3:34 AM muhanad <muhanad at plciq.com> wrote:
> I have a main domain ( aa.example.com) with hunderds of subdomains ( bb.aa.example.com). I made a wildcard record to forward all subdomains (bb.) to a list of addresses in  round-robin fashion. The problem I am fscing is the wildcard is forwarding anything towards the the IP ( example , "cc.bb." which is not a vaild subdomain). How can I limit that so it will only forwards ( bb.aa.example.com) and drops any invalid subdomains ( cc.bb.aa.example.com ).
>
> Note: aa, bb, and cc being any arbitary value.

With a standard BIND zone, you can't.  Wildcards match multiple
labels.  That goes to the earliest days of the DNS,
https://www.rfc-editor.org/rfc/rfc1034#section-4.3.3.

You'd need a specialized handler to do this.
-- 
tale


More information about the bind-users mailing list