On Thu, Mar 15, 2012 at 1:35 PM, Simon Kelley <span dir="ltr"><<a href="mailto:simon@thekelleys.org.uk">simon@thekelleys.org.uk</a>></span> wrote:<div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5"><br>
</div></div>All the other DNS record-creation options (txt-record, ptr-record,<br>
naptr-record, srv-host, mx-host) take the name as first argument,<br>
followed by target(s), so it would be good to follow that, however<br>
something more flexible is possible, by allowing an arbitrary number of<br>
 names followed by an IPv4 address, an IPv6 address, or both<br>
<br>
<br>
--host-record = <a href="http://thekelleys.org" target="_blank">thekelleys.org</a>, <a href="http://www.thekelleys.org" target="_blank">www.thekelleys.org</a>, 1.2.3.4, 1234::11<br>
<br>
As usual, the first name gets the PTR record, so 'dig -x 1.2.3.4'<br>
returns <a href="http://thekelleys.org" target="_blank">thekelleys.org</a> in my example.<br>
<br>
Next question, should "expand-hosts" work on the names as it does in<br>
/etc/hosts, but doesn't in txt-record and friends?<br></blockquote><div><br></div><div>Consistency is always nice, so the choice is between consistent behavior across hosts & dnsmasq.conf style configs, or consistent behavior within dnsmasq.conf, I'd vote for the latter, so expand-hosts would be ignored for host-record.  </div>

<div><br></div><div>If it does expand it it for host-record but not txt-record, etc, that seems somewhat un-intuitive.</div><div><br></div><div><div>Perhaps a second expand-host-record to separately enable that?  Or a more general expand-records (?) directive that would work for host-record, txt-record, etc...</div>

<div><br></div><div>The bind behavior with default expansion and a . to override seems nice, simple & intuitive, what about a expand-bind-style directive to turn that behavior on, so as not to break existing syntax, but give that fine grained control to people who want it?  </div>

</div><div><br></div><div>Rob</div></div></div>