Better Knot-resolver support

parent e842eb42
Pipeline #61046444 passed with stages
in 1 minute and 54 seconds
......@@ -25,6 +25,8 @@ Your `/etc/resolv.conf` will contain only local resolver ``. You can fi
- Get back control over `/etc/resolv.conf`
echo -e "[main]\ndns=none" | sudo tee /etc/NetworkManager/conf.d/no-dns.conf
sudo rm /etc/resolv.conf
echo -e "search\nnameserver" | sudo tee /etc/resolv.conf
sudo systemctl restart NetworkManager.service
### Internal zones
......@@ -35,3 +37,8 @@ If you have some internal DNS zones you can add them by adding these lines to yo
policy.add(policy.suffix(policy.FLAGS({'NO_CACHE'}), internaldomains))
policy.add(policy.suffix(policy.STUB('','.'), internaldomains))
policy.add(policy.suffix(policy.STUB(''), {todname('')}))
### Revert
sudo rm /etc/NetworkManager/conf.d/no-dns.conf
sudo ln -s /var/run/NetworkManager/resolv.conf /etc/resolv.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment