Share your "hooks" to apply custom configurations- Partagez vos "hooks" pour appliquer des configurations personnelles

So I created a new dir /etc/yunohost/hooks.d/conf_regen/ and the new file 44-dnsmasq_local.

I edited the hook line to read: server=/*.mushroom-cooper.ts.net/100.100.100.100 [Actual tailnet_name redacted]

Then I do the following, from here: Réinitialiser le lien dnsmasq <-> /etc/resolv.conf - #4 by leosw

echo "nameserver 127.0.0.1" > /etc/resolvconf/run/resolv.conf
rm /etc/resolv.conf 
ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf

then tailscale set --accept-dns=false

and finally yunohost tools regen-conf --force

However my resolv.conf that tailscale was editing had this extra stuff (the search line):


# resolv.conf(5) file generated by tailscale
# For more info, see https://tailscale.com/s/resolvconf-overwrite
# DO NOT EDIT THIS FILE BY HAND -- CHANGES WILL BE OVERWRITTEN

nameserver 100.100.100.100
search mushroom-cooper.ts.net mynetworksettings.com

where mynetworksettings.com is the domain that my verizon router puts on the end of all local devices (e.g. yunohost.mynetworksettings.com)

Can I modify this hook to include this other “search” domain?