<div dir="ltr">I've created a fork of dnsmasq on put it on github and in branch <a href="https://github.com/winksaville/dnsmasq-fork/tree/wink-test1">wink-test1</a>. In that branch I added a README.md with information and how I "tested" my hypothesis that dnsmasq does support multiple dhcp-options with the same tag. Of course I may be full of S***, but it does seem to work and it doesn't seem to cause any issues.<div><br></div><div>I'd be glad to make any other changes and, of course, any feedback is welcome. Also, if I'm correct and "multiple dhcp-options with the same tag" does work, I'd like to suggest it be documented. I can take a go at it if you'd like.</div><div><br></div><div>-- Wink</div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 8, 2023 at 9:37 PM Wink Saville <<a href="mailto:wink@saville.com">wink@saville.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm learning dnsmasq and I'm taking advice from ChatGPT-4, probably a<br>
bad idea but so far it's given reasonable advice :)<br>
<br>
Anyway, in this instance I was asking a question[1] about how to<br>
configure dnsmasq on OpenWRT.<br>
<br>
The first prompt was:<br>
<br>
"Using Luci on openwrt is there a way to set a dhcp-option and use it<br>
on a dhcp-host record?"<br>
<br>
It answered correctly that using luci you can't do it but you can do<br>
it in /etc/dnsmasq.conf and gave an example:<br>
<br>
```<br>
dhcp-host=00:11:22:33:44:55,set:myOptions,192.168.1.100<br>
dhcp-option=tag:myOptions,option:dns-server,192.168.1.2<br>
dhcp-option=tag:myOptions,option:router,192.168.1.1<br>
```<br>
<br>
My second prompt ends with the question:<br>
<br>
"Anyway, your example shows that myOptions is composed of two separate<br>
dhcp-option's. Are you sure that is legal, can you provide me with a<br>
link or a quote from the dnsmasg.conf documentation?"<br>
<br>
Its response was, as is typical. a long winded yes and it also gave me<br>
a quote from the documentation. Of course, I couldn't find that quote,<br>
which is also typical, it lies! Anyway, to cut to the chase I'm<br>
writing because the technique the bot showed does work, at least it<br>
seems to work for me on OpenWRT with dnsmasq v2.86. But, as I said I<br>
don't see in the documentation. Did I just miss it or should I not use<br>
it or maybe it should be documented?<br>
<br>
-- Wink<br>
<br>
[1]:<a href="https://chat.openai.com/share/cadee80b-4e3e-41e1-b95e-5fd62e799a9a" rel="noreferrer" target="_blank">https://chat.openai.com/share/cadee80b-4e3e-41e1-b95e-5fd62e799a9a</a><br>
</blockquote></div>