aboutsummaryrefslogtreecommitdiffstats
path: root/config/unbound
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2011-06-19 20:47:38 +0200
committerWarren Baker <warren@decoy.co.za>2011-06-19 20:47:38 +0200
commit098e698f5aee0c18c5af94650782ff4c129bbf49 (patch)
treea64b9ca08fb26f40ce0ea6f711460c15186d079a /config/unbound
parent3e644668a1c0bc8f175e1e395782c1286e71b9f2 (diff)
downloadpfsense-packages-098e698f5aee0c18c5af94650782ff4c129bbf49.tar.gz
pfsense-packages-098e698f5aee0c18c5af94650782ff4c129bbf49.tar.bz2
pfsense-packages-098e698f5aee0c18c5af94650782ff4c129bbf49.zip
Setup IPv6 localhost data
Diffstat (limited to 'config/unbound')
-rw-r--r--config/unbound/unbound.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc
index 56c76066..fa326574 100644
--- a/config/unbound/unbound.inc
+++ b/config/unbound/unbound.inc
@@ -694,6 +694,10 @@ function unbound_add_host_entries() {
$unbound_entries .= "local-data-ptr: \"127.0.0.1 localhost\"\n";
$unbound_entries .= "local-data: \"localhost A 127.0.0.1\"\n";
$unbound_entries .= "local-data: \"localhost.{$syscfg['domain']} A 127.0.0.1\"\n";
+ // IPv6 entries
+ $unbound_entries .= "local-data-ptr: \"::1 localhost\"\n";
+ $unbound_entries .= "local-data: \"localhost AAAA ::1\"\n";
+ $unbound_entries .= "local-data: \"localhost.{$syscfg['domain']} AAAA ::1\"\n";
if ($config['interfaces']['lan']) {
$cfgip = get_interface_ip("lan");