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

**URL:** <https://forum.yunohost.org/t/share-your-hooks-to-apply-custom-configurations-partagez-vos-hooks-pour-appliquer-des-configurations-personnelles/17235>\
**Category:** Tutorials\
**Tags:** french, english\
**Created:** [September 20, 2021, 9:36pm UTC](https://forum.yunohost.org/t/share-your-hooks-to-apply-custom-configurations-partagez-vos-hooks-pour-appliquer-des-configurations-personnelles/17235 "2021-09-20T21:36:03Z")\
**Posts on this page:** 1\
**Showing post:** 57

<div class="post-metadata">

**Author:** ![p\_7](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/p/c68b51/32.png) [@p\_7](https://forum.yunohost.org/u/p_7)\
**Post date:** [July 23, 2025, 9:44pm UTC](https://forum.yunohost.org/t/share-your-hooks-to-apply-custom-configurations-partagez-vos-hooks-pour-appliquer-des-configurations-personnelles/17235/57 "2025-07-23T21:44:33Z")

</div>

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](https://forum.yunohost.org/t/reinitialiser-le-lien-dnsmasq-etc-resolv-conf/27122/4)

```auto
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):

```auto

# 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](http://mynetworksettings.com) is the domain that my verizon router puts on the end of all local devices (e.g. [yunohost.mynetworksettings.com](http://yunohost.mynetworksettings.com))

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

---

_[View the full topic](https://forum.yunohost.org/t/share-your-hooks-to-apply-custom-configurations-partagez-vos-hooks-pour-appliquer-des-configurations-personnelles/17235)._
