---
title: Install knot-resolver-gael on Ubuntu using the Snap Store | Snapcraft
description: Get the latest version of knot-resolver-gael for on Ubuntu - Knot Resolver
url: https://snapcraft.io/install/knot-resolver-gael/ubuntu
---

[Canonical Snapcraft](https://snapcraft.io/)

# Install knot-resolver-gael on **Ubuntu**

# knot-resolver-gael

[Gael LeGoff (gael-legoff)](https://snapcraft.io/publisher/gael-legoff "View all snaps from Gael LeGoff (gael-legoff)")

* [Gael LeGoff (gael-legoff)](https://snapcraft.io/publisher/gael-legoff "View all snaps from Gael LeGoff (gael-legoff)")
* [Server and Cloud](https://snapcraft.io/search?categories=server-and-cloud)

[Install](https://snapcraft.io/install/knot-resolver-gael/ubuntu#install)

#### Knot Resolver

*This is NOT an original piece of work, just a snap of Knot Resolver*

Knot Resolver is a caching full resolver implementation written in C and LuaJIT, both a resolver library and a daemon. The core architecture is tiny and efficient, and provides a foundation and a state-machine like API for extensions. There are three modules built-in - iterator, validator, cache, and a few more are loaded by default. Most of the rich features are written in Lua(JIT) and C. Batteries are included, but optional.

The LuaJIT modules, support DNS privacy and DNSSEC, and persistent cache with low memory footprint make it a great personal DNS resolver or a research tool to tap into DNS data. TL;DR it's the OpenResty of DNS.

**First use**

* Read the doc at <https://knot-resolver.readthedocs.io/en/stable/> on how to get started.
* Configure the resolver
  `sudo vi /var/snap/knot-resolver-gael/current/kresd.conf`
* Start and enable Knot Resolver
  `sudo snap start --enable knot-resolver-gael.kresd`
* Read the logs
  `sudo snap logs -n 30 knot-resolver-gael.kresd`

**Deny domain resolution (refreshed every 4 hrs)**

* Enter hosts lists URLs (optional)

`sudo vi /var/snap/knot-resolver-gael/common/policies/deny_hosts.url`

```
# Sample deny host files URLs

https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts;showintro=0
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
http://sysctl.org/cameleon/hosts
```

* Enter domains lists URLs (optional)

`sudo vi /var/snap/knot-resolver-gael/common/policies/deny_domains.url`

```
# Sample deny domains URLs

https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://v.firebog.net/hosts/AdguardDNS.txt
https://v.firebog.net/hosts/Easyprivacy.txt
```

* Start and enable deny policy
  `sudo snap start --enable knot-resolver-gael.deny-policy`
* Read the logs
  `sudo snap logs -n 30 knot-resolver-gael.deny-policy`
* Add the deny policy list to kresd.conf
  `sudo vi /var/snap/knot-resolver-gael/current/kresd.conf`

  policy.add(policy.rpz(policy.DENY, '/var/snap/knot-resolver-gael/common/policies/deny\_policy.rpz',true))
* Restart Knot Resolver
  `sudo snap restart knot-resolver-gael.kresd`
* Read the logs
  `sudo journalctl --follow --lines 30 -u snap.knot-resolver-gael.kresd`

**2026-08-22**

* New build to resolve USN-8543-2

**2026-07-25**

* New build to resolve CVE-2026-15146/USN-8572-1

**2026-07-16**

* New build to resolve USN-8543-1/USN-8544-1

**2026-07-03**

* New build to resolve CVE-2026-58055/USN-8495-1

**2026-05-08**

* New build to resolve CVE-2026-27135/USN-8233-1

**2025-11-26**

* Added http module

**2025-09-03**

* Updated to v5.7.6

**2025-04-30**

* Updated to v5.7.5

**2024-11-17**

* Fixed automatic policy refresh (incorrect architecture environment variable)
* Fixed dnstap module dependency
* Fixed documentation

**2024-10-31**

* knot-resolver-gael will now use core24 as most users are on Ubuntu 24.04

**2024-08-14**

* Updated to v5.7.4

**2024-06-25**

* Updated to v5.7.3

**2024-02-21**

* Updated to v5.7.1
* Fix for CVE-2023-50868: NSEC3 closest encloser proof can exhaust CPU
* Fix for CVE-2023-50387 "KeyTrap"

**2023-09-21**

* Updated to v5.7.0

**2023-02-08**

* Updated to v5.6.0
* knot-resolver-gael will now use core22 as most users are on Ubuntu 22.04

**2022-09-26**

* Updated to v5.5.3
* Fix CVE-2022-40188

**2022-06-14**

* Updated to v5.5.1

**2022-03-20**

* Updated to v5.5.0

**2022-01-11**

* Updated to v5.4.4

**2021-12-13**

* Updated to v5.4.3

**2021-10-14**

* Updated to v5.4.2

**2021-08-22**

* Updated to v5.4.1
* Dependencies cleanup

**2021-08-16**

* Added DNStap module. See <https://snapcraft.io/dnstap-gael>

**2021-04-11**

* Updated to v5.3.1
* Added deny list with Response Policy Zone (RPZ) refreshed every 4 hrs

### Package name

* knot-resolver-gael

---

### License

* GPL-3.0

---

### Last updated

* 22 August 2026 - latest/stable
* 22 August 2026 - latest/edge

---

### Contact

* [github.com/gael-legoff/knot-resolver-gael/issues](https://github.com/gael-legoff/knot-resolver-gael/issues "https://github.com/gael-legoff/knot-resolver-gael/issues")

---

### Source code

* [github.com/gael-legoff/knot-resolver-gael](https://github.com/gael-legoff/knot-resolver-gael "https://github.com/gael-legoff/knot-resolver-gael")

---

### Report a bug

* [github.com/gael-legoff/knot-resolver-gael/issues](https://github.com/gael-legoff/knot-resolver-gael/issues "https://github.com/gael-legoff/knot-resolver-gael/issues")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/install/knot-resolver-gael/ubuntu#report-snap-modal)

---

## Enable snaps on Ubuntu and install knot-resolver-gael

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the [Snap Store](https://snapcraft.io/store), an app store with an audience of millions.

### Enable snapd

If you’re running [Ubuntu 16.04 LTS (Xenial Xerus)](https://www.ubuntu.com/) or later, including [Ubuntu 18.04 LTS (Bionic Beaver)](https://www.ubuntu.com/desktop/features) and [Ubuntu 20.04 LTS (Focal Fossa)](https://wiki.ubuntu.com/FocalFossa/ReleaseNotes), you don’t need to do anything. Snap is already installed and ready to go.

For versions of Ubuntu between [14.04 LTS (Trusty Tahr)](https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes) and [15.10 (Wily Werewolf)](https://wiki.ubuntu.com/WilyWerewolf/ReleaseNotes), as well as Ubuntu flavours that don’t include *snap* by default, *snap* can be installed from the Ubuntu Software Centre by searching for *snapd*.

Alternatively, snapd can be installed from the command line:

```
sudo apt update
sudo apt install snapd
```

Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.

### Install knot-resolver-gael

To install knot-resolver-gael, simply use the following command:

```
sudo snap install knot-resolver-gael
```

### Other popular snaps…

[See more...](https://snapcraft.io/search?categories=featured)

[See more in Featured](https://snapcraft.io/search?categories=featured)

### More things to do…

#### [Get the snap store](https://snapcraft.io/snap-store)

Browse and find snaps from the convenience of your desktop using the snap store snap.

#### [Learn more about snaps](https://snapcraft.io/docs)

Interested to find out more about snaps? Want to publish your own application? Visit [snapcraft.io](https://snapcraft.io/) now.

[Back to top](https://snapcraft.io/install/knot-resolver-gael/ubuntu)

© 2026 Canonical Ltd.
Ubuntu and Canonical are registered trademarks of Canonical Ltd.

Powered by [Charmed Kubernetes](https://www.ubuntu.com/kubernetes)

[Join the forum](https://forum.snapcraft.io/), contribute to or report problems with,
[snapd](https://bugs.launchpad.net/snapd),
[Snapcraft](https://bugs.launchpad.net/snapcraft),
or [this site](https://github.com/canonical/snapcraft.io/issues/new).

* [Share on Twitter](https://twitter.com/snapcraftio)
* [Share on Facebook](https://www.facebook.com/snapcraftio)
* [Share on YouTube](https://www.youtube.com/snapcraftio)

* [Terms of Service](https://ubuntu.com/legal/terms-and-policies/snap-store-terms)
* [Data privacy](https://www.ubuntu.com/legal/data-privacy)
* [Manage your tracker settings](https://snapcraft.io/install/knot-resolver-gael/ubuntu)
* [Service status](https://status.snapcraft.io/)
* [Other functions](https://dashboard.snapcraft.io/)
* [Contact us](https://snapcraft.io/about/contact-us)
