From 0e1c65dae305ab5ef51760125b65f28b3f617dd9 Mon Sep 17 00:00:00 2001
From: Nico D'Cotta <45274424+cottand@users.noreply.github.com>
Date: Sat, 30 Nov 2024 19:17:03 +0000
Subject: [PATCH] docs: specify how to use leng for local nameserver resolution
 in NixOS (#76)

---
 doc/src/Nix.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/doc/src/Nix.md b/doc/src/Nix.md
index a3ce355..e75b5ea 100644
--- a/doc/src/Nix.md
+++ b/doc/src/Nix.md
@@ -68,6 +68,16 @@ Add the following inside your configuration.nix:
 }
 ```
 
+### Using leng for local DNS
+
+If you want to use leng to resolve the DNS queries of the machine you are installing it on, you should
+also add it to the local nameservers:
+
+```nix
+networking.nameservers = [ "127.0.0.1" ];
+```
+
+
 ## Developing
 
 The flake's development shell simply includes Go 1.21+ and a [fish](https://fishshell.com/) shell. You can enter it with `nix develop`.