diff options
author | Chris Buechler <cmb@pfsense.org> | 2016-07-08 22:12:30 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2016-07-08 22:12:30 -0500 |
commit | 350a70015f8db29df853c4a317ae1edc9f27d486 (patch) | |
tree | 016242fc3ae6eca9cf0694f2670a1cb654ee187f | |
parent | cde0ef17a60cffa4a54f3ab4922b77bc0447d068 (diff) | |
download | pfsense-350a70015f8db29df853c4a317ae1edc9f27d486.zip pfsense-350a70015f8db29df853c4a317ae1edc9f27d486.tar.gz |
Leave this to 2.4 only for now. Revert "Omit non-qualified hostnames from unbound's local-data. Ticket #6064"
This reverts commit cde0ef17a60cffa4a54f3ab4922b77bc0447d068.
-rw-r--r-- | src/etc/inc/unbound.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/inc/unbound.inc b/src/etc/inc/unbound.inc index 5d006bf..4dfa615 100644 --- a/src/etc/inc/unbound.inc +++ b/src/etc/inc/unbound.inc @@ -625,6 +625,9 @@ function unbound_add_host_entries($cfgsubdir = "") { $added_ptr[$host['ipaddr']] = true; } $unbound_entries .= "local-data: \"{$host['fqdn']} {$type} {$host['ipaddr']}\"\n"; + if (isset($host['name'])) { + $unbound_entries .= "local-data: \"{$host['name']} {$type} {$host['ipaddr']}\"\n"; + } } // Write out entries |