<div><div dir="auto">This isn’t really a BIND or DNS problem. There is not a standard way to do this.</div></div><div dir="auto"><br></div><div dir="auto">If you’re going for some kind of automation or orchestration of these services, there are a bunch of different places to build this in, depending on the tools you are using.</div><div dir="auto"><br></div><div dir="auto">You did mention ISC DHCP. One approach would be to use the server-side hooks when a lease is created  or renewed. You could add a script that creates what ever additional names you want.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 29, 2019 at 10:22 AM John Robson via bind-users <<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><span><div class="gmail_quote">Hi all,<br><br>I've set up both ISC dhcpd and ISC bind to provide relevant services to a virtualised test lab.  In the test lab obviously boxes will be brought up and down fairly frequently, and I'm aiming to minimise the amount of effort that this takes our users.<br><br>So - the machines get an IP address and dhcpd updates bind, so a specific internal domain gets updated - let's use <a href="http://example.org" target="_blank">example.org</a>here for ease of reading.<br><br>That all works (after a little fight with permissions).<br>I set up a machine with a hostname of 'foo' and there is an automagic DNS entry `<a href="http://foo.example.org" target="_blank">foo.example.org</a>`.<br><br>BUT - what I'd like to do is have `*.<a href="http://foo.example.org" target="_blank">foo.example.org</a>` (or even a specific listing of subdomains) point to that IP as well - to enable the various vhost based services on the test machines to be accessed without having to mess with local hosts files or further mess with DNS each time.<br><br>e.g. <a href="http://test.foo.example.org" target="_blank">test.foo.example.org</a> should point to the same IP as <a href="http://foo.example.org" target="_blank">foo.example.org</a> (heck, could even be a cname)</div></span><div class="gmail_quote"><span><br>Is there some simple configuration I am missing - or is this not possible?<br>Is there a better way to get to where I want to be*?<br><br>Cheers,<br><br>John<br><br><br></span>* Previously we had all the test boxes in one /24, so we had `lab123` for the box whose IP ended in 123... but we're now in a /23, and that gets a lot messier to handle with fixed names (not particularly keen on the idea of test341 being for the top half ending in 341-256=85 - nor am I keen on 5 digit test ids...)</div></div></div><div dir="ltr"><div dir="ltr"><div><br></div>-- <br><div dir="ltr"><span style="font-size:12px"><strong>John Robson<br></strong></span><span style="font-size:12px"><br>
</span></div></div></div>
_______________________________________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div></div>