To whom it may concern:
In Services > Unbound DNS > Overrides I tried to create a Host Override Alias for 0.xxx.pool.ntp.org. This is not possible, since "0" will be detected as an empty value an will be replaced by some other value.
I created two modifications to enable such hostnames by adding is_numeric().
See https://www.php.net/manual/en/function.empty.php#103756 for reference.
unbound.inc, line 605 (Creates a valid host_entries.conf)
services_unbound_overrides.php, line 189 ("Cosmetic" change for browser display)
In Services > Unbound DNS > Overrides I tried to create a Host Override Alias for 0.xxx.pool.ntp.org. This is not possible, since "0" will be detected as an empty value an will be replaced by some other value.
I created two modifications to enable such hostnames by adding is_numeric().
See https://www.php.net/manual/en/function.empty.php#103756 for reference.
unbound.inc, line 605 (Creates a valid host_entries.conf)
Code Select
'host' => !empty($alias['host']) || is_numeric($alias['host']) ? $alias['host'] : $aliases[0]['host'],
services_unbound_overrides.php, line 189 ("Cosmetic" change for browser display)
Code Select
<td><?= strtolower(!empty($alias['host']) || is_numeric($alias['host']) ? $alias['host'] : $hostent['host']) ?></td>