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 `127.0.0.1`. 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 yourexample.com\nnameserver 127.0.0.1" | 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('192.168.0.1','.192.168.0.2'), internaldomains))
policy.add(policy.suffix(policy.STUB('192.168.0.3'), {todname('example3.com')}))
### 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