# Use dnsmasq for DNS

<p class="callout info">As the name already implies, dnsmasq is not a full-fledged DNS server. If you want a real, recursive DNS resolver, consider using unbound instead.</p>

##### <span style="text-decoration: underline;">Install dnsmasq</span>  


dnsmasq is available on [SailfishOS chum.](https://github.com/sailfishos-chum/main) You 1st need to add the 3rd-party-repo, afterwards running `devel-su pkcon refresh && pkcon install dnsmasq` will install it.

##### <span style="text-decoration: underline;">Disable your current DNS handler</span>

On a fresh installation, DNS is handled by [connman](https://wiki.archlinux.org/title/ConnMan). You can remove it with [these instructions](https://sailfishos.wiki/books/network/page/stop-connman-from-managing-dns "Stop connman from managing DNS").

##### <span style="text-decoration: underline;">Permanently run dnsmasq on boot</span>

ExecuteÂ `devel-su systemctl enable --now dnsmasq` to enable it permanently &amp; start it now.

##### <span style="text-decoration: underline;">Configure dnsmasq</span>

dnsmasq's configuration lies under `/etc/dnsmasq.conf`. You can get more information about its config options from dnsmasq's [manpage](https://man.archlinux.org/man/dnsmasq.8) and [ArchWiki](https://wiki.archlinux.org/title/Dnsmasq).