<div dir="ltr"><div style="color:rgb(80,0,80)">Hej guys, I have a question. I use dnsmasq on my router home with openwrt (version 2.80). Recently Im doing some labbing home to install kubernetes and found I need a wildcard dns in the form of:</div><div style="color:rgb(80,0,80)"><code>*.apps.aaa.mylabb.lan</code></div><div style="color:rgb(80,0,80)"><code>I googled a bit and I found this can be configured on dnsmasq as:</code></div><div style="color:rgb(80,0,80)"><code>address=/apps.aaa.mylabb.lan/<a href="http://100.100.100.100/" target="_blank">100.100.100.100</a></code></div><div style="color:rgb(80,0,80)"><code>I add this line to my dnsmasq.conf file but dnsmasq crashes... all the docs i found are atleast a couple of years old and I wonder if the way to add wildcards dns has changed... since on the documentation does not mention specifically nothing about the wildcard:</code></div><div style="color:rgb(80,0,80)"><code>A, --address=/<domain>[/<domain>...]/[<ipaddr>]<br>    Specify an IP address to return for any host in the given domains. Queries in the domains are never forwarded and always replied to with the specified IP address which may be IPv4 or IPv6. To give both IPv4 and IPv6 addresses for a domain, use repeated --address flags. To include multiple IP addresses for a single query, use --addn-hosts=<path> instead. Note that /etc/hosts and DHCP leases override this for individual names. A common use of this is to redirect the entire <a href="http://doubleclick.net/" target="_blank">doubleclick.net</a> domain to some friendly local web server to avoid banner ads. The domain specification works in the same was as for --server, with the additional facility that /#/ matches any domain. Thus --address=/#/<a href="http://1.2.3.4/" target="_blank">1.2.3.4</a> will always return 1.2.3.4 for any query not answered from /etc/hosts or DHCP and not sent to an upstream nameserver by a more specific --server directive. As for --server, one or more domains with no address returns a no-such-domain answer, so --address=/<a href="http://example.com/" target="_blank">example.com/</a> is equivalent to --server=/<a href="http://example.com/" target="_blank">example.com/</a> and returns NXDOMAIN for <a href="http://example.com/" target="_blank">example.com</a> and all its subdomains. An address specified as '#' translates to the NULL address of 0.0.0.0 and its IPv6 equivalent of :: so --address=/<a href="http://example.com/#" target="_blank">example.com/#</a> will return NULL addresses for <a href="http://example.com/" target="_blank">example.com</a> and its subdomains. This is partly syntactic sugar for --address=/<a href="http://example.com/0.0.0.0" target="_blank">example.com/0.0.0.0</a> and --address=/<a href="http://example.com/" target="_blank">example.com/</a>:: but is also more efficient than including both as separate configuration lines. Note that NULL addresses normally work in the same way as localhost, so beware that clients looking up these names are likely to end up talking to themselves.<br></code></div><div style="color:rgb(80,0,80)"><code><br></code></div><div style="color:rgb(80,0,80)"><code>I just wonder if someone can enlight me about how is the proper way of having this configured. perhaps in the case of openwrt throw luci or uci interface instead of touching the base files...</code></div><div style="color:rgb(80,0,80)"><code><br></code></div><div style="color:rgb(80,0,80)"><code>Regards</code></div><div style="color:rgb(80,0,80)"><code>/Jose</code></div></div>