# 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:** 56

<div class="post-metadata">

### Author: ![p4p4j0hn](https://forum.yunohost.org/user_avatar/forum.yunohost.org/p4p4j0hn/32/10955_2.png) [@p4p4j0hn](https://forum.yunohost.org/u/p4p4j0hn)
#### Post date: [May 19, 2025, 3:41pm UTC](https://forum.yunohost.org/t/share-your-hooks-to-apply-custom-configurations-partagez-vos-hooks-pour-appliquer-des-configurations-personnelles/17235/56 "2025-05-19T15:41:41Z")

</div>

Here is a hook for someone using Tailscale on their server to be able to use Tailscale Magic DNS without clobbering dnsmasq:

_/etc/yunohost/hooks.d/conf\_regen/44-dnsmasq\_local_

```auto
#!/usr/bin/env bash

action=$1
pending_dir=$4
etc_dnsmasq_local_conf=$pending_dir/../dnsmasq/etc/dnsmasq.d/local.conf

[["$action" == "pre"]] || exit 0
[[-e $etc_dnsmasq_local_conf]] || exit 0

cat << EOF > $etc_dnsmasq_local_conf
# change tailnet_name to yours
server=/*.tailnet_name.ts.net/100.100.100.100
EOF

```

Use `--accept-dns=false` when you run `tailscale up` or `tailscale set`

---

_[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)._
