<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">A DNAME is a CNAME generator for subdomains of the DNAME record itself. That is:</div><div class=""><br class=""></div><div class=""><a href="http://example.com" class="">example.com</a>.<span class="Apple-tab-span" style="white-space:pre">       </span>DNAME<span class="Apple-tab-span" style="white-space:pre">       </span><a href="http://example.net" class="">example.net</a>.</div><div class=""><br class=""></div><div class="">will result in any query for "<a href="http://foo.example.com" class="">foo.example.com</a>" to be answered with a dynamically-generated CNAME record like this:</div><div class=""><br class=""></div><div class=""><a href="http://foo.example.com" class="">foo.example.com</a>.<span class="Apple-tab-span" style="white-space:pre">    </span>DNAME<span class="Apple-tab-span" style="white-space:pre">       </span><a href="http://foo.example.net" class="">foo.example.net</a>.</div><div class=""><br class=""></div><div class="">It has no effect on the name of the DNAME record itself -- it is not a CNAME record for <a href="http://example.com" class="">example.com</a>, and doesn't do the same job. The use case you describe cannot be solved by RFC-compliant DNS -- the name of a zone cannot be an alias of some other name. Creating the parent zone and putting the CNAME in there will create more problems for you.</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Chris Buxton</div><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 17, 2017, at 9:19 AM, Jeff Sadowski <<a href="mailto:jeff.sadowski@gmail.com" class="">jeff.sadowski@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I am a bit confused by DNAME's<br class="">I had used them before but I may have used them wrong.<br class=""><br class="">On windows 2008r2 I have some zone's where I create a DNAME for the<br class="">root and point it to an A record.<br class=""><br class="">IE:<br class=""><br class="">zone bla.bla<br class="">SOA <standard SOA><br class="">NS <mydns><br class="">DNAME <a href="http://www.bla.com" class="">www.bla.com</a><br class=""><br class="">where <a href="http://www.bla.com" class="">www.bla.com</a> is an A record.<br class=""><br class="">the reason I was doing this is because <a href="http://www.bla.com" class="">www.bla.com</a> has a dhcp assigned address<br class=""><br class="">and I want bla.bla to always point to it.<br class="">windows dns does not allow a cname at the root of a zone.<br class=""><br class="">as of 2012r2 with updates this no longer works.<br class=""><br class="">So I decided to see what bind would do with DNAME If I tried a similar<br class="">experiment<br class="">I have a db.self file I used when I want certain outside addresses to<br class="">point back to my inside addresses.<br class=""><br class="">my db.self file looks like so<br class=""><br class=""><br class="">$TTL 3D<br class="">@  1D  IN  SOA ns <a href="http://jeffsadowski.gmail.com" class="">jeffsadowski.gmail.com</a>. (<br class="">                              2017081201 ;<br class="">                              3H ;<br class="">                              15 ;<br class="">                              1w ;<br class="">                              3h ;<br class="">                             )<br class="">@ IN NS ns<br class="">ns IN A 192.168.1.252<br class="">@ IN A 192.168.1.252<br class=""><br class="">And I wand similar for my DNAME so I created db.dname that looks like so<br class=""><br class="">$TTL 3D<br class="">@  1D  IN  SOA ns <a href="http://jeffsadowski.gmail.com" class="">jeffsadowski.gmail.com</a>. (<br class="">                              2017081201 ;<br class="">                              3H ;<br class="">                              15 ;<br class="">                              1w ;<br class="">                              3h ;<br class="">                             )<br class="">@ IN NS ns<br class="">ns IN A 192.168.1.252<br class="">@ IN DNAME <a href="http://methanemaker.mooo.com" class="">methanemaker.mooo.com</a><br class=""><br class="">then when I try and start bind I get error messages like so<br class=""><br class="">Nov 17 09:55:53 methanemaker bash[7049]: zone bla.bla/IN: NS<br class="">'ns.bla.bla' is below a DNAME 'bla.bla' (illegal)<br class="">Nov 17 09:55:53 methanemaker bash[7049]: zone bla.bla/IN: not loaded<br class="">due to errors.<br class=""><br class="">I tried without the NS likes and I get this message<br class=""><br class="">Nov 17 09:48:36 methanemaker bash[4872]: zone bla.bla/IN: has no NS records<br class="">Nov 17 09:48:36 methanemaker bash[4872]: zone bla.bla/IN: not loaded<br class="">due to errors.<br class=""><br class="">If anyone has a better idea how to map to a dhcp addressed machine<br class="">from a zone I'd like to know?<br class=""><br class="">I don't want to recreate the entire superdomain for just one record<br class="">that needs changed<br class="">IE:<br class="">the super domain is managed by an outside service. I don't want to<br class="">keep a second copy inside that has a few with different records.<br class="">_______________________________________________<br class="">Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" class="">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br class=""><br class="">bind-users mailing list<br class=""><a href="mailto:bind-users@lists.isc.org" class="">bind-users@lists.isc.org</a><br class="">https://lists.isc.org/mailman/listinfo/bind-users<br class=""><br class=""></div></div></blockquote></div><br class=""></body></html>