mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-23 06:08:36 +01:00
Update install-knot-resolver.ps1
This commit is contained in:
parent
a8f2d95f96
commit
92f1d04de3
@ -1,15 +1,17 @@
|
||||
-- LISTENING:
|
||||
-- SETTINGS FOR KNOT RESOLVER (adapt to your needs, please)
|
||||
|
||||
-- LISTEN TO:
|
||||
net.listen({'127.0.0.1', '::1'}, 53, { kind = 'dns' })
|
||||
net.listen({'127.0.0.1', '::1'}, 853, { kind = 'tls' })
|
||||
net.listen('192.168.178.71', 53, { kind = 'dns' })
|
||||
net.listen('192.168.178.71', 853, { kind = 'tls' })
|
||||
|
||||
-- CACHE:
|
||||
cache.size = 100 * MB
|
||||
cache.min_ttl(3600) -- min time-to-live is 1 hour
|
||||
cache.max_ttl(604800) -- max time-to-live is 1 week
|
||||
cache.size = 100 * MB -- 100 MB cache size
|
||||
cache.min_ttl(3600) -- 1 hour minimum time-to-live
|
||||
cache.max_ttl(604800) -- 1 week maximum time-to-live
|
||||
|
||||
-- FORWARDING:
|
||||
-- FORWARD TO:
|
||||
policy.add(policy.all(
|
||||
policy.FORWARD(
|
||||
{'192.168.178.1', -- Fritz!Box
|
||||
|
@ -26,7 +26,7 @@ try {
|
||||
"Step 3/4: Let User Configure..."
|
||||
sudo vi /var/snap/knot-resolver-gael/current/kresd.conf
|
||||
|
||||
"Step 4/4: Starting Knot Resolver..."
|
||||
"Step 4/4: Start Knot Resolver..."
|
||||
sudo snap start knot-resolver-gael
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
|
Loading…
Reference in New Issue
Block a user