Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

turris:dns-forward-knot [27.01.2017 21:59]
vm vytvořeno
turris:dns-forward-knot [27.01.2017 22:00] (aktuální)
vm
Řádek 1: Řádek 1:
 ====== DNS zone forward on Turris Omnia ====== ====== DNS zone forward on Turris Omnia ======
  
-Create ​file ''/​etc/​kresd/​custom.conf''​ with this configuration:+Using these steps we will forward DNS zone ''<​FORWAREDED ZONE>''​ to DNS server ''<​DNS SERVER>''​ that actually holds the zone. 
 + 
 +At first we need to create custom configuration ​file named ''/​etc/​kresd/​custom.conf'' ​that will be then appended to default configuration file with this content:
   local forward_rule = policy.add(policy.suffix(policy.FORWARD('<​DNS SERVER>'​),​ policy.todnames({'<​FORWARDED ZONE>'​})))   local forward_rule = policy.add(policy.suffix(policy.FORWARD('<​DNS SERVER>'​),​ policy.todnames({'<​FORWARDED ZONE>'​})))
   policy.del(forward_rule.id)   policy.del(forward_rule.id)
   table.insert(policy.rules,​ 1, forward_rule)   table.insert(policy.rules,​ 1, forward_rule)
  
-where ''<​DNS SERVER>''​ is address of DNS server to which we will forward zone ''<​FORWAREDED ZONE>''​. ​As this configuration file is appended at the end of the generated configuration we have to remove the rule and then force it to first position as last configuration option in default turris configuration redirects everything to upstream DNS servers effectively causing to ignore any policy added in custom configuration.+As this configuration file is appended at the end of the generated configuration we have to remove the rule and then force it to first position as last configuration option in default turris configuration redirects everything to upstream DNS servers effectively causing to ignore any policy added in custom configuration.
  
 Then edit ''/​etc/​config/​resolver''​ file and at the end of the section ''​config resolver '​kresd''​ add line Then edit ''/​etc/​config/​resolver''​ file and at the end of the section ''​config resolver '​kresd''​ add line
turris/dns-forward-knot.txt · Poslední úprava: 27.01.2017 22:00 autor: vm