User Tools

Site Tools


docs:guide-user:services:dns:unbound

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:guide-user:services:dns:unbound [2018/08/10 07:06]
ericluehrsen1 unbound: visual presentation
docs:guide-user:services:dns:unbound [2018/08/25 20:07] (current)
kevinoid Example 2 fix one missed change in my last edit
Line 104: Line 104:
   # Note the LAN network address (Network -> Interfaces -> LAN -> IPv4 address)   # Note the LAN network address (Network -> Interfaces -> LAN -> IPv4 address)
   lan_address=$(uci get network.lan.ipaddr)   lan_address=$(uci get network.lan.ipaddr)
 +  ​
 +  # Configure Unbound from unbound.conf,​ instead of generating it from UCI
 +  # Services -> Recursive DNS -> Manual Conf
 +  uci set '​unbound.@unbound[0].manual_conf=1'​
   ​   ​
   # Update the package list (System -> Software -> Update lists)   # Update the package list (System -> Software -> Update lists)
Line 167: Line 171:
   sed -i "/​^server:/​a\ domain-insecure:​ \"​$lan_rdns_domain\""​ /​etc/​unbound/​unbound.conf   sed -i "/​^server:/​a\ domain-insecure:​ \"​$lan_rdns_domain\""​ /​etc/​unbound/​unbound.conf
   ​   ​
-  # Add a stub zone to dnsmasq ​for the local domain to the unbound configuration +  # Add a forward ​zone for the local domain to forward requests to dnsmasq 
-  cat >> /​etc/​unbound/​unbound.conf <<DNS_STUB_ZONE +  cat >> /​etc/​unbound/​unbound.conf <<DNS_FORWARD_ZONE 
-  ​stub-zone:+  ​forward-zone:
   name: "​$lan_domain"​   name: "​$lan_domain"​
-  stub-addr: 127.0.0.1@53535 +  forward-addr: 127.0.0.1@53535 
-  ​DNS_STUB_ZONE+  ​DNS_FORWARD_ZONE
   ​   ​
-  # Add a stub zone to dnsmasq ​for the local reverse domain to unbound.conf +  # Add a forward ​zone for the local reverse domain to forward requests to dnsmasq 
-  cat >> /​etc/​unbound/​unbound.conf <<RDNS_STUB_ZONE +  cat >> /​etc/​unbound/​unbound.conf <<RDNS_FORWARD_ZONE 
-  ​stub-zone:+  ​forward-zone:
   name: "​$lan_rdns_domain"​   name: "​$lan_rdns_domain"​
-  stub-addr: 127.0.0.1@53535 +  forward-addr: 127.0.0.1@53535 
-  ​RDNS_STUB_ZONE+  ​RDNS_FORWARD_ZONE
   ​   ​
   # Optionally enable DNS Rebinding protection by uncommenting private-address   # Optionally enable DNS Rebinding protection by uncommenting private-address
Line 207: Line 211:
   private-domain:​ "​example.local"​   private-domain:​ "​example.local"​
   ​   ​
-  ​stub-zone:+  ​forward-zone:
   name: "​example.local"​   name: "​example.local"​
-  stub-addr: 127.0.0.1@53535+  forward-addr: 127.0.0.1@53535
   ​   ​
-  ​stub-zone:+  ​forward-zone:
   name: "​0.168.192.in-addr.arpa"​   name: "​0.168.192.in-addr.arpa"​
-  stub-addr: 127.0.0.1@53535+  forward-addr: 127.0.0.1@53535
  
  
docs/guide-user/services/dns/unbound.1533884787.txt.gz · Last modified: 2018/08/10 07:06 by ericluehrsen1