Revision d2a2f018
Added by Steve Beaver over 8 years ago
src/usr/local/www/services_dnsmasq.php | ||
---|---|---|
255 | 255 |
'DHCP Registration', |
256 | 256 |
'Register DHCP leases in DNS forwarder', |
257 | 257 |
$pconfig['regdhcp'] |
258 |
))->setHelp(sprintf('If this option is set, then machines that specify'.
|
|
258 |
))->setHelp('If this option is set machines that specify'.
|
|
259 | 259 |
' their hostname when requesting a DHCP lease will be registered'. |
260 | 260 |
' in the DNS forwarder, so that their name can be resolved.'. |
261 | 261 |
' The domain in %1$sSystem: General Setup%2$s should also'. |
262 |
' be set to the proper value.','<a href="system.php">','</a>'))
|
|
262 |
' be set to the proper value.','<a href="system.php">','</a>') |
|
263 | 263 |
->addClass('toggle-dhcp'); |
264 | 264 |
|
265 | 265 |
$section->addInput(new Form_Checkbox( |
... | ... | |
267 | 267 |
'Static DHCP', |
268 | 268 |
'Register DHCP static mappings in DNS forwarder', |
269 | 269 |
$pconfig['regdhcpstatic'] |
270 |
))->setHelp(sprintf('If this option is set, then DHCP static mappings will '.
|
|
270 |
))->setHelp('If this option is set, DHCP static mappings will '.
|
|
271 | 271 |
'be registered in the DNS forwarder, so that their name can be '. |
272 | 272 |
'resolved. The domain in %1$sSystem: General Setup%2$s should also '. |
273 |
'be set to the proper value.','<a href="system.php">','</a>'))
|
|
273 |
'be set to the proper value.','<a href="system.php">','</a>') |
|
274 | 274 |
->addClass('toggle-dhcp'); |
275 | 275 |
|
276 | 276 |
$section->addInput(new Form_Checkbox( |
... | ... | |
278 | 278 |
'Prefer DHCP', |
279 | 279 |
'Resolve DHCP mappings first', |
280 | 280 |
$pconfig['dhcpfirst'] |
281 |
))->setHelp(sprintf("If this option is set, then DHCP mappings will ".
|
|
281 |
))->setHelp("If this option is set DHCP mappings will ".
|
|
282 | 282 |
"be resolved before the manual list of names below. This only ". |
283 |
"affects the name given for a reverse lookup (PTR)."))
|
|
283 |
"affects the name given for a reverse lookup (PTR).") |
|
284 | 284 |
->addClass('toggle-dhcp'); |
285 | 285 |
|
286 | 286 |
$group = new Form_Group('DNS Query Forwarding'); |
... | ... | |
290 | 290 |
'DNS Query Forwarding', |
291 | 291 |
'Query DNS servers sequentially', |
292 | 292 |
$pconfig['strict_order'] |
293 |
))->setHelp(sprintf("If this option is set, %s DNS Forwarder (dnsmasq) will ".
|
|
293 |
))->setHelp("If this option is set %s DNS Forwarder (dnsmasq) will ".
|
|
294 | 294 |
"query the DNS servers sequentially in the order specified (<i>System - General Setup - DNS Servers</i>), ". |
295 |
"rather than all at once in parallel. ", $g['product_name']));
|
|
295 |
"rather than all at once in parallel. ", $g['product_name']); |
|
296 | 296 |
|
297 | 297 |
$group->add(new Form_Checkbox( |
298 | 298 |
'domain_needed', |
299 | 299 |
null, |
300 | 300 |
'Require domain', |
301 | 301 |
$pconfig['domain_needed'] |
302 |
))->setHelp(sprintf("If this option is set, %s DNS Forwarder (dnsmasq) will ".
|
|
302 |
))->setHelp("If this option is set %s DNS Forwarder (dnsmasq) will ".
|
|
303 | 303 |
"not forward A or AAAA queries for plain names, without dots or domain parts, to upstream name servers. ". |
304 |
"If the name is not known from /etc/hosts or DHCP then a \"not found\" answer is returned. ", $g['product_name']));
|
|
304 |
"If the name is not known from /etc/hosts or DHCP then a \"not found\" answer is returned. ", $g['product_name']); |
|
305 | 305 |
|
306 | 306 |
$group->add(new Form_Checkbox( |
307 | 307 |
'no_private_reverse', |
308 | 308 |
null, |
309 | 309 |
'Do not forward private reverse lookups', |
310 | 310 |
$pconfig['no_private_reverse'] |
311 |
))->setHelp(sprintf("If this option is set, %s DNS Forwarder (dnsmasq) will ".
|
|
311 |
))->setHelp("If this option is set %s DNS Forwarder (dnsmasq) will ".
|
|
312 | 312 |
"not forward reverse DNS lookups (PTR) for private addresses (RFC 1918) to upstream name servers. ". |
313 | 313 |
"Any entries in the Domain Overrides section forwarding private \"n.n.n.in-addr.arpa\" names to a specific server are still forwarded. ". |
314 |
"If the IP to name is not known from /etc/hosts, DHCP or a specific domain override then a \"not found\" answer is immediately returned. ", $g['product_name']));
|
|
314 |
"If the IP to name is not known from /etc/hosts, DHCP or a specific domain override then a \"not found\" answer is immediately returned. ", $g['product_name']); |
|
315 | 315 |
|
316 | 316 |
$section->add($group); |
317 | 317 |
|
Also available in: Unified diff
Remove unneeded sprintf from setHelp calls