<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Well I got dnsmasq running (more on that later) to do some tests and can confirm that it DOES read all the hostnames on each line of a hosts file. BUT, it seems to create each of them as an A record, rather than as CNAMES all pointing to the first name on that line. Although this works, it’s not quite what the hosts file is supposed to represent as after the first name, the others are supposed to be aliases, which surely are better represented by CNAME records?<div class=""><br class=""></div><div class="">However I initially had a problem running it from the command line as it simply spat out:-</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: rgb(59, 35, 34); font-family: Monaco; background-color: rgb(215, 211, 183);" class="">dnsmasq: dhcp-hostsdir, dhcp-optsdir and hostsdir are not supported on this platform</span><div class=""><br class="webkit-block-placeholder"></div><div class="">and quit. In fact only hostsdir was actually included in the conf file, but I’m guessing the error is generated if any of those options are used (and I would like to use all of them). Now I need to figure why. Are these options that can be excluded at compile time?</div><div class=""><br class=""></div><div class="">I’m running this in MacOS and installed dnsmasq from HomeBrew as it was easier than compiling it myself, but I’m thinking they have compiled it without those options. In which case I’ll compile my own version, but does seem a rather unnecessarily restrictive thing to do.</div><div class=""><br class=""></div><div class="">Is this the likely cause or is there another reason for it to complain in this way, like these options really are not available in MacOS for some strange reason? The latter seems rather unlikely to me, but would appreciate clarification.</div><div class=""><br class=""></div><div class="">Thanks.</div><div class="">
<br class=""><br class="">Ken G i l l e t t<br class=""><br class="">_/_/_/_/_/_/_/_/<br class=""><br class=""><br class="">
</div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">On 18 Mar 2021, at 15:53, Ken Gillett <<a href="mailto:kengroups@icloud.com" class="">kengroups@icloud.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Sorry to ‘bump' this. I presume the lack of response is that there is currently no way to define CNAMEs that will be re-read on SIGHUP. Could I suggest to Simon that it would be really advantageous to have --cname-file and --cname-dir options to allow all CNAMEs to be defined in one or more external files that would be treated in the same way as dhcp-hostfile and dhcp-hostdir (and opts) as it seems to me that the CNAMEs are as likely to change and require a re-read as the host names themselves. Possibly even more likely.<div class=""><br class=""></div><div class="">On the subject of hostname aliases, could someone please confirm whether or not dnsmasq takes notice of alias names defined in a hosts file in which each line defines an address, its hostname and then multiple aliases if desired. Does dnsmasq add these alias names as CNAMEs or simply ignore them? I have searched but can find no reference to how dnsmasq behaves with such hosts file definitions.</div><div class=""><br class=""></div><div class="">Thanks.<br class=""><div class="">
<br class=""><br class="">Ken G i l l e t t<br class=""><br class="">_/_/_/_/_/_/_/_/<br class=""><br class=""><br class="">
</div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">On 16 Mar 2021, at 20:14, Ken Gillett via Dnsmasq-discuss <<a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" class="">dnsmasq-discuss@lists.thekelleys.org.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Further to this question, how can CNAME records be defined that can be re-read on SIGHUP?<div class=""><br class=""></div><div class="">As far as I can tell, they can only be specified on the command line, or in a conf file (which is only read on startup).</div><div class=""><br class=""></div><div class="">Is there any way to define CNAMEs in a way that changes can be applied without a full restart of dnsmasq.<br class=""><div class="">
<br class=""><br class="">Ken G i l l e t t<br class=""><br class="">_/_/_/_/_/_/_/_/<br class=""><br class=""><br class="">
</div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">On 16 Mar 2021, at 16:16, Ken Gillett via Dnsmasq-discuss <<a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" class="">dnsmasq-discuss@lists.thekelleys.org.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I think I’ve figured this out.<div class=""><br class=""></div><div class="">SIGHUP causes dnsmasq to re-read the ‘opts’ files, but it does NOT re-read any ‘conf’ files.</div><div class=""><br class=""></div><div class="">So a significant and possibly very useful difference.</div><div class=""><div class=""><br class="webkit-block-placeholder"></div><div class="">Any other differences anyone knows?</div><div class="">
<br class=""><br class="">Ken G i l l e t t<br class=""><br class="">_/_/_/_/_/_/_/_/<br class=""><br class=""><br class="">
</div>
<div class=""><br class=""><blockquote type="cite" class=""><div class="">On 16 Mar 2021, at 15:39, Ken Gillett via Dnsmasq-discuss <<a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" class="">dnsmasq-discuss@lists.thekelleys.org.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">--dhcp-optsfile/dir and/or --conf-file/dir point to external files/dirs. My question then is:-</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">What’s the difference between these ‘opts’ and ‘conf’ files?</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">As far as I understand, they would both contain dnsmasq configuration options (without the --) so is there a difference, or are they both just different ways of specifying external configuration files of options?</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""></div></blockquote></div><br class=""></div></div></div>_______________________________________________<br class="">Dnsmasq-discuss mailing list<br class=""><a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" class="">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br class=""><a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" class="">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br class=""></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">Dnsmasq-discuss mailing list<br class=""><a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" class="">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br class=""><a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" class="">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></body></html>