mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix PTR records for aliases in host overrides
This commit is contained in:
parent
92a33a8319
commit
f29610b0cc
@ -513,9 +513,9 @@ function unbound_add_host_entries() {
|
||||
else
|
||||
continue;
|
||||
|
||||
if(!$added_ptr[$host['ip']]) {
|
||||
if(!$added_ptr[$host['ipaddr']]) {
|
||||
$unbound_entries .= "local-data-ptr: \"{$host['ipaddr']} {$host['fqdn']}\"\n";
|
||||
$added_ptr[$host['ip']] = true;
|
||||
$added_ptr[$host['ipaddr']] = true;
|
||||
}
|
||||
$unbound_entries .= "local-data: \"{$host['fqdn']} {$type} {$host['ipaddr']}\"\n";
|
||||
if (isset($host['name']))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user