summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_unbound_host_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/services_unbound_host_edit.php')
-rw-r--r--src/usr/local/www/services_unbound_host_edit.php27
1 files changed, 23 insertions, 4 deletions
diff --git a/src/usr/local/www/services_unbound_host_edit.php b/src/usr/local/www/services_unbound_host_edit.php
index c374631..a5fcd3d 100644
--- a/src/usr/local/www/services_unbound_host_edit.php
+++ b/src/usr/local/www/services_unbound_host_edit.php
@@ -192,21 +192,21 @@ $section->addInput(new Form_Input(
'text',
$pconfig['host']
))->setHelp('Name of the host, without the domain part%1$s' .
- 'e.g.: "myhost"', '<br />');
+ 'e.g. enter "myhost" if the full domain name is "myhost.example.com"', '<br />');
$section->addInput(new Form_Input(
'domain',
'*Domain',
'text',
$pconfig['domain']
-))->setHelp('Domain of the host%1$s' .
- 'e.g.: "example.com"', '<br />');
+))->setHelp('Parent domain of the host%1$s' .
+ 'e.g. enter "example.com" for "myhost.example.com"', '<br />');
$section->addInput(new Form_IpAddress(
'ip',
'*IP Address',
$pconfig['ip']
-))->setHelp('IP address of the host%1$s' .
+))->setHelp('IPv4 or IPv6 address to be returned for the host%1$s' .
'e.g.: 192.168.100.100 or fd00:abcd::1', '<br />');
$section->addInput(new Form_Input(
@@ -225,6 +225,18 @@ if (isset($id) && $a_hosts[$id]) {
));
}
+$section->addInput(new Form_StaticText(
+ '',
+ '<span class="help-block">' .
+ gettext("This page is used to override the usual lookup process for a specific host. A host is defined by its name " .
+ "and parent domain (e.g., 'somesite.google.com' is entered as host='somesite' and parent domain='google.com'). Any " .
+ "attempt to lookup that host will automatically return the given IP address, and any usual external lookup server for " .
+ "the domain will not be queried. Both the name and parent domain can contain 'non-standard', 'invalid' and 'local' " .
+ "domains such as 'test', 'mycompany.localdomain', or '1.168.192.in-addr.arpa', as well as usual publicly resolvable names ".
+ "such as 'www' or 'google.co.uk'.") .
+ '</span>'
+));
+
$form->add($section);
$section = new Form_Section('Additional Names for this Host');
@@ -281,6 +293,13 @@ $form->addGlobal(new Form_Button(
'fa-plus'
))->removeClass('btn-primary')->addClass('btn-success addbtn');
+$section->addInput(new Form_StaticText(
+ '',
+ '<span class="help-block">'.
+ gettext("If the host can be accessed using multiple names, then enter any other names for the host which should also be overridden.") .
+ '</span>'
+));
+
$form->add($section);
print($form);
OpenPOWER on IntegriCloud