Project

General

Profile

Download (19.5 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/*
3
 * services_unbound.php
4
 *
5
 * part of pfSense (https://www.pfsense.org)
6
 * Copyright (c) 2004-2016 Rubicon Communications, LLC (Netgate)
7
 * Copyright (c) 2014 Warren Baker (warren@pfsense.org)
8
 * All rights reserved.
9
 *
10
 * Redistribution and use in source and binary forms, with or without
11
 * modification, are permitted provided that the following conditions are met:
12
 *
13
 * 1. Redistributions of source code must retain the above copyright notice,
14
 *    this list of conditions and the following disclaimer.
15
 *
16
 * 2. Redistributions in binary form must reproduce the above copyright
17
 *    notice, this list of conditions and the following disclaimer in
18
 *    the documentation and/or other materials provided with the
19
 *    distribution.
20
 *
21
 * 3. All advertising materials mentioning features or use of this software
22
 *    must display the following acknowledgment:
23
 *    "This product includes software developed by the pfSense Project
24
 *    for use in the pfSense® software distribution. (http://www.pfsense.org/).
25
 *
26
 * 4. The names "pfSense" and "pfSense Project" must not be used to
27
 *    endorse or promote products derived from this software without
28
 *    prior written permission. For written permission, please contact
29
 *    coreteam@pfsense.org.
30
 *
31
 * 5. Products derived from this software may not be called "pfSense"
32
 *    nor may "pfSense" appear in their names without prior written
33
 *    permission of the Electric Sheep Fencing, LLC.
34
 *
35
 * 6. Redistributions of any form whatsoever must retain the following
36
 *    acknowledgment:
37
 *
38
 * "This product includes software developed by the pfSense Project
39
 * for use in the pfSense software distribution (http://www.pfsense.org/).
40
 *
41
 * THIS SOFTWARE IS PROVIDED BY THE pfSense PROJECT ``AS IS'' AND ANY
42
 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
44
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE pfSense PROJECT OR
45
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
46
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
47
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
48
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
49
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
50
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
51
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
52
 * OF THE POSSIBILITY OF SUCH DAMAGE.
53
 */
54

    
55
##|+PRIV
56
##|*IDENT=page-services-dnsresolver
57
##|*NAME=Services: DNS Resolver
58
##|*DESCR=Allow access to the 'Services: DNS Resolver' page.
59
##|*MATCH=services_unbound.php*
60
##|-PRIV
61

    
62
require_once("guiconfig.inc");
63
require_once("unbound.inc");
64
require_once("pfsense-utils.inc");
65
require_once("system.inc");
66

    
67
if (!is_array($config['unbound'])) {
68
	$config['unbound'] = array();
69
}
70

    
71
$a_unboundcfg =& $config['unbound'];
72

    
73
if (!is_array($a_unboundcfg['hosts'])) {
74
	$a_unboundcfg['hosts'] = array();
75
}
76

    
77
$a_hosts =& $a_unboundcfg['hosts'];
78

    
79
if (!is_array($a_unboundcfg['domainoverrides'])) {
80
	$a_unboundcfg['domainoverrides'] = array();
81
}
82

    
83
$a_domainOverrides = &$a_unboundcfg['domainoverrides'];
84

    
85
if (isset($a_unboundcfg['enable'])) {
86
	$pconfig['enable'] = true;
87
}
88
if (isset($a_unboundcfg['dnssec'])) {
89
	$pconfig['dnssec'] = true;
90
}
91
if (isset($a_unboundcfg['forwarding'])) {
92
	$pconfig['forwarding'] = true;
93
}
94
if (isset($a_unboundcfg['regdhcp'])) {
95
	$pconfig['regdhcp'] = true;
96
}
97
if (isset($a_unboundcfg['regdhcpstatic'])) {
98
	$pconfig['regdhcpstatic'] = true;
99
}
100

    
101
$pconfig['port'] = $a_unboundcfg['port'];
102
$pconfig['custom_options'] = base64_decode($a_unboundcfg['custom_options']);
103

    
104
if (empty($a_unboundcfg['active_interface'])) {
105
	$pconfig['active_interface'] = array();
106
} else {
107
	$pconfig['active_interface'] = explode(",", $a_unboundcfg['active_interface']);
108
}
109

    
110
if (empty($a_unboundcfg['outgoing_interface'])) {
111
	$pconfig['outgoing_interface'] = array();
112
} else {
113
	$pconfig['outgoing_interface'] = explode(",", $a_unboundcfg['outgoing_interface']);
114
}
115

    
116
if (empty($a_unboundcfg['system_domain_local_zone_type'])) {
117
	$pconfig['system_domain_local_zone_type'] = "transparent";
118
} else {
119
	$pconfig['system_domain_local_zone_type'] = $a_unboundcfg['system_domain_local_zone_type'];
120
}
121

    
122
if ($_POST) {
123
	if ($_POST['apply']) {
124
		$retval = services_unbound_configure();
125
		$savemsg = get_std_save_message($retval);
126
		if ($retval == 0) {
127
			clear_subsystem_dirty('unbound');
128
		}
129
		/* Update resolv.conf in case the interface bindings exclude localhost. */
130
		system_resolvconf_generate();
131
		/* Start or restart dhcpleases when it's necessary */
132
		system_dhcpleases_configure();
133
	} else {
134
		$pconfig = $_POST;
135
		unset($input_errors);
136

    
137
		if (isset($pconfig['enable']) && isset($config['dnsmasq']['enable'])) {
138
			if ($pconfig['port'] == $config['dnsmasq']['port']) {
139
				$input_errors[] = gettext("The DNS Forwarder is enabled using this port. Choose a non-conflicting port, or disable the DNS Forwarder.");
140
			}
141
		}
142

    
143
		// forwarding mode requires having valid DNS servers
144
		if (isset($pconfig['forwarding'])) {
145
			$founddns = false;
146
			if (isset($config['system']['dnsallowoverride'])) {
147
				$dns_servers = get_dns_servers();
148
				if (is_array($dns_servers)) {
149
					foreach ($dns_servers as $dns_server) {
150
						if (!ip_in_subnet($dns_server, "127.0.0.0/8")) {
151
							$founddns = true;
152
						}
153
					}
154
				}
155
			}
156
			if (is_array($config['system']['dnsserver'])) {
157
				foreach ($config['system']['dnsserver'] as $dnsserver) {
158
					if (is_ipaddr($dnsserver)) {
159
						$founddns = true;
160
					}
161
				}
162
			}
163
			if ($founddns == false) {
164
				$input_errors[] = gettext("At least one DNS server must be specified under System &gt; General Setup to enable Forwarding mode.");
165
			}
166
		}
167

    
168
		if (empty($pconfig['active_interface'])) {
169
			$input_errors[] = gettext("One or more Network Interfaces must be selected for binding.");
170
		} else if (!isset($config['system']['dnslocalhost']) && (!in_array("lo0", $pconfig['active_interface']) && !in_array("all", $pconfig['active_interface']))) {
171
			$input_errors[] = gettext("This system is configured to use the DNS Resolver as its DNS server, so Localhost or All must be selected in Network Interfaces.");
172
		}
173

    
174
		if (empty($pconfig['outgoing_interface'])) {
175
			$input_errors[] = gettext("One or more Outgoing Network Interfaces must be selected.");
176
		}
177

    
178
		if ($pconfig['port'] && !is_port($pconfig['port'])) {
179
			$input_errors[] = gettext("A valid port number must be specified.");
180
		}
181

    
182
		if (is_array($pconfig['active_interface']) && !empty($pconfig['active_interface'])) {
183
			$display_active_interface = $pconfig['active_interface'];
184
			$pconfig['active_interface'] = implode(",", $pconfig['active_interface']);
185
		}
186

    
187
		if ((isset($pconfig['regdhcp']) || isset($pconfig['regdhcpstatic'])) && !is_dhcp_server_enabled()) {
188
			$input_errors[] = gettext("DHCP Server must be enabled for DHCP Registration to work in DNS Resolver.");
189
		}
190

    
191
		$display_custom_options = $pconfig['custom_options'];
192
		$pconfig['custom_options'] = base64_encode(str_replace("\r\n", "\n", $pconfig['custom_options']));
193

    
194
		if (is_array($pconfig['outgoing_interface']) && !empty($pconfig['outgoing_interface'])) {
195
			$display_outgoing_interface = $pconfig['outgoing_interface'];
196
			$pconfig['outgoing_interface'] = implode(",", $pconfig['outgoing_interface']);
197
		}
198

    
199
		$test_output = array();
200
		if (test_unbound_config($pconfig, $test_output)) {
201
			$input_errors[] = gettext("The generated config file cannot be parsed by unbound. Please correct the following errors:");
202
			$input_errors = array_merge($input_errors, $test_output);
203
		}
204

    
205
		if (!$input_errors) {
206
			$a_unboundcfg['enable'] = isset($pconfig['enable']);
207
			$a_unboundcfg['port'] = $pconfig['port'];
208
			$a_unboundcfg['dnssec'] = isset($pconfig['dnssec']);
209
			$a_unboundcfg['forwarding'] = isset($pconfig['forwarding']);
210
			$a_unboundcfg['regdhcp'] = isset($pconfig['regdhcp']);
211
			$a_unboundcfg['regdhcpstatic'] = isset($pconfig['regdhcpstatic']);
212
			$a_unboundcfg['active_interface'] = $pconfig['active_interface'];
213
			$a_unboundcfg['outgoing_interface'] = $pconfig['outgoing_interface'];
214
			$a_unboundcfg['system_domain_local_zone_type'] = $pconfig['system_domain_local_zone_type'];
215
			$a_unboundcfg['custom_options'] = $pconfig['custom_options'];
216

    
217
			write_config(gettext("DNS Resolver configured."));
218
			mark_subsystem_dirty('unbound');
219
		}
220

    
221
		$pconfig['active_interface'] = $display_active_interface;
222
		$pconfig['outgoing_interface'] = $display_outgoing_interface;
223
		$pconfig['custom_options'] = $display_custom_options;
224
	}
225
}
226

    
227
if ($pconfig['custom_options']) {
228
	$customoptions = true;
229
} else {
230
	$customoptions = false;
231
}
232

    
233
if ($_GET['act'] == "del") {
234
	if ($_GET['type'] == 'host') {
235
		if ($a_hosts[$_GET['id']]) {
236
			unset($a_hosts[$_GET['id']]);
237
			write_config();
238
			mark_subsystem_dirty('unbound');
239
			header("Location: services_unbound.php");
240
			exit;
241
		}
242
	} elseif ($_GET['type'] == 'doverride') {
243
		if ($a_domainOverrides[$_GET['id']]) {
244
			unset($a_domainOverrides[$_GET['id']]);
245
			write_config();
246
			mark_subsystem_dirty('unbound');
247
			header("Location: services_unbound.php");
248
			exit;
249
		}
250
	}
251
}
252

    
253
function build_if_list($selectedifs) {
254
	$interface_addresses = get_possible_listen_ips(true);
255
	$iflist = array('options' => array(), 'selected' => array());
256

    
257
	$iflist['options']['all']	= gettext("All");
258
	if (empty($selectedifs) || empty($selectedifs[0]) || in_array("all", $selectedifs)) {
259
		array_push($iflist['selected'], "all");
260
	}
261

    
262
	foreach ($interface_addresses as $laddr => $ldescr) {
263
		$iflist['options'][$laddr] = htmlspecialchars($ldescr);
264

    
265
		if ($selectedifs && in_array($laddr, $selectedifs)) {
266
			array_push($iflist['selected'], $laddr);
267
		}
268
	}
269

    
270
	unset($interface_addresses);
271

    
272
	return($iflist);
273
}
274

    
275
$pgtitle = array(gettext("Services"), gettext("DNS Resolver"), gettext("General Settings"));
276
$pglinks = array("", "@self", "@self");
277
$shortcut_section = "resolver";
278

    
279
include_once("head.inc");
280

    
281
if ($input_errors) {
282
	print_input_errors($input_errors);
283
}
284

    
285
if ($savemsg) {
286
	print_info_box($savemsg, 'success');
287
}
288

    
289
if (is_subsystem_dirty('unbound')) {
290
	print_apply_box(gettext("The DNS resolver configuration has been changed.") . "<br />" . gettext("The changes must be applied for them to take effect."));
291
}
292

    
293
$tab_array = array();
294
$tab_array[] = array(gettext("General Settings"), true, "services_unbound.php");
295
$tab_array[] = array(gettext("Advanced Settings"), false, "services_unbound_advanced.php");
296
$tab_array[] = array(gettext("Access Lists"), false, "/services_unbound_acls.php");
297
display_top_tabs($tab_array, true);
298

    
299
$form = new Form();
300

    
301
$section = new Form_Section('General DNS Resolver Options');
302

    
303
$section->addInput(new Form_Checkbox(
304
	'enable',
305
	'Enable',
306
	'Enable DNS resolver',
307
	$pconfig['enable']
308
));
309

    
310
$section->addInput(new Form_Input(
311
	'port',
312
	'Listen Port',
313
	'number',
314
	$pconfig['port'],
315
	['placeholder' => '53']
316
))->setHelp('The port used for responding to DNS queries. It should normally be left blank unless another service needs to bind to TCP/UDP port 53.');
317

    
318
$activeiflist = build_if_list($pconfig['active_interface']);
319

    
320
$section->addInput(new Form_Select(
321
	'active_interface',
322
	'*Network Interfaces',
323
	$activeiflist['selected'],
324
	$activeiflist['options'],
325
	true
326
))->addClass('general', 'resizable')->setHelp('Interface IPs used by the DNS Resolver for responding to queries from clients. If an interface has both IPv4 and IPv6 IPs, both are used. Queries to other interface IPs not selected below are discarded. ' .
327
			'The default behavior is to respond to queries on every available IPv4 and IPv6 address.');
328

    
329
$outiflist = build_if_list($pconfig['outgoing_interface']);
330

    
331
$section->addInput(new Form_Select(
332
	'outgoing_interface',
333
	'*Outgoing Network Interfaces',
334
	$outiflist['selected'],
335
	$outiflist['options'],
336
	true
337
))->addClass('general', 'resizable')->setHelp('Utilize different network interface(s) that the DNS Resolver will use to send queries to authoritative servers and receive their replies. By default all interfaces are used.');
338

    
339
$section->addInput(new Form_Select(
340
	'system_domain_local_zone_type',
341
	'*System Domain Local Zone Type',
342
	$pconfig['system_domain_local_zone_type'],
343
	unbound_local_zone_types()
344
))->setHelp('The local-zone type used for the pfSense system domain (System | General Setup | Domain).  Transparent is the default.  Local-Zone type descriptions are available in the unbound.conf(5) manual pages.');
345

    
346
$section->addInput(new Form_Checkbox(
347
	'dnssec',
348
	'DNSSEC',
349
	'Enable DNSSEC Support',
350
	$pconfig['dnssec']
351
));
352

    
353
$section->addInput(new Form_Checkbox(
354
	'forwarding',
355
	'DNS Query Forwarding',
356
	'Enable Forwarding Mode',
357
	$pconfig['forwarding']
358
))->setHelp(sprintf('If this option is set, DNS queries will be forwarded to the upstream DNS servers defined under'.
359
					' %sSystem &gt; General Setup%s or those obtained via DHCP/PPP on WAN'.
360
					' (if DNS Server Override is enabled there).','<a href="system.php">','</a>'));
361

    
362
$section->addInput(new Form_Checkbox(
363
	'regdhcp',
364
	'DHCP Registration',
365
	'Register DHCP leases in the DNS Resolver',
366
	$pconfig['regdhcp']
367
))->setHelp(sprintf('If this option is set, then machines that specify their hostname when requesting a DHCP lease will be registered'.
368
					' in the DNS Resolver, so that their name can be resolved.'.
369
					' The domain in %sSystem &gt; General Setup%s should also be set to the proper value.','<a href="system.php">','</a>'));
370

    
371
$section->addInput(new Form_Checkbox(
372
	'regdhcpstatic',
373
	'Static DHCP',
374
	'Register DHCP static mappings in the DNS Resolver',
375
	$pconfig['regdhcpstatic']
376
))->setHelp(sprintf('If this option is set, then DHCP static mappings will be registered in the DNS Resolver, so that their name can be resolved. '.
377
					'The domain in %sSystem &gt; General Setup%s should also be set to the proper value.','<a href="system.php">','</a>'));
378

    
379
$btnadv = new Form_Button(
380
	'btnadvcustom',
381
	'Custom options',
382
	null,
383
	'fa-cog'
384
);
385

    
386
$btnadv->setAttribute('type','button')->addClass('btn-info btn-sm');
387

    
388
$section->addInput(new Form_StaticText(
389
	'Display Custom Options',
390
	$btnadv
391
));
392

    
393
$section->addInput(new Form_Textarea (
394
	'custom_options',
395
	'Custom options',
396
	$pconfig['custom_options']
397
))->setHelp('Enter any additional configuration parameters to add to the DNS Resolver configuration here, separated by a newline.');
398

    
399
$form->add($section);
400
print($form);
401
?>
402

    
403
<script type="text/javascript">
404
//<![CDATA[
405
events.push(function() {
406

    
407
	// Show advanced custom options ==============================================
408
	var showadvcustom = false;
409

    
410
	function show_advcustom(ispageload) {
411
		var text;
412
		// On page load decide the initial state based on the data.
413
		if (ispageload) {
414
			showadvcustom = <?=($customoptions ? 'true' : 'false');?>;
415
		} else {
416
			// It was a click, swap the state.
417
			showadvcustom = !showadvcustom;
418
		}
419

    
420
		hideInput('custom_options', !showadvcustom);
421

    
422
		if (showadvcustom) {
423
			text = "<?=gettext('Hide Custom Options');?>";
424
		} else {
425
			text = "<?=gettext('Display Custom Options');?>";
426
		}
427
		$('#btnadvcustom').html('<i class="fa fa-cog"></i> ' + text);
428
	}
429

    
430
	// If the enable checkbox is not checked, hide all inputs
431
	function hideGeneral() {
432
		var hide = ! $('#enable').prop('checked');
433

    
434
		hideMultiClass('general', hide);
435
		hideInput('port', hide);
436
		hideSelect('system_domain_local_zone_type', hide);
437
		hideCheckbox('dnssec', hide);
438
		hideCheckbox('forwarding', hide);
439
		hideCheckbox('regdhcp', hide);
440
		hideCheckbox('regdhcpstatic', hide);
441
		hideInput('btnadvcustom', hide);
442
		hideInput('custom_options', hide || !showadvcustom);
443
	}
444

    
445
	// Un-hide additional controls
446
	$('#btnadvcustom').click(function(event) {
447
		show_advcustom();
448
	});
449

    
450
	// When 'enable' is clicked, disable/enable the following hide inputs
451
	$('#enable').click(function() {
452
		hideGeneral();
453
	});
454

    
455
	// On initial load
456
	if ($('#custom_options').val().length == 0) {
457
		hideInput('custom_options', true);
458
	}
459

    
460
	hideGeneral();
461
	show_advcustom(true);
462

    
463
});
464
//]]>
465
</script>
466

    
467
<div class="panel panel-default">
468
	<div class="panel-heading"><h2 class="panel-title"><?=gettext("Host Overrides")?></h2></div>
469
	<div class="panel-body table-responsive">
470
		<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap table-rowdblclickedit" data-sortable>
471
			<thead>
472
				<tr>
473
					<th><?=gettext("Host")?></th>
474
					<th><?=gettext("Domain")?></th>
475
					<th><?=gettext("IP")?></th>
476
					<th><?=gettext("Description")?></th>
477
					<th><?=gettext("Actions")?></th>
478
				</tr>
479
			</thead>
480
			<tbody>
481
<?php
482
$i = 0;
483
foreach ($a_hosts as $hostent):
484
?>
485
				<tr>
486
					<td>
487
						<?=$hostent['host']?>
488
					</td>
489
					<td>
490
						<?=$hostent['domain']?>
491
					</td>
492
					<td>
493
						<?=$hostent['ip']?>
494
					</td>
495
					<td>
496
						<?=htmlspecialchars($hostent['descr'])?>
497
					</td>
498
					<td>
499
						<a class="fa fa-pencil"	title="<?=gettext('Edit host override')?>" href="services_unbound_host_edit.php?id=<?=$i?>"></a>
500
						<a class="fa fa-trash"	title="<?=gettext('Delete host override')?>" href="services_unbound.php?type=host&amp;act=del&amp;id=<?=$i?>"></a>
501
					</td>
502
				</tr>
503

    
504
<?php
505
	if ($hostent['aliases']['item'] && is_array($hostent['aliases']['item'])):
506
		foreach ($hostent['aliases']['item'] as $alias):
507
?>
508
				<tr>
509
					<td>
510
						<?=$alias['host']?>
511
					</td>
512
					<td>
513
						<?=$alias['domain']?>
514
					</td>
515
					<td>
516
						<?=gettext("Alias for ");?><?=$hostent['host'] ? $hostent['host'] . '.' . $hostent['domain'] : $hostent['domain']?>
517
					</td>
518
					<td>
519
						<i class="fa fa-angle-double-right text-info"></i>
520
						<?=htmlspecialchars($alias['description'])?>
521
					</td>
522
					<td>
523
						<a class="fa fa-pencil"	title="<?=gettext('Edit host override')?>" 	href="services_unbound_host_edit.php?id=<?=$i?>"></a>
524
					</td>
525
				</tr>
526
<?php
527
		endforeach;
528
	endif;
529
	$i++;
530
endforeach;
531
?>
532
			</tbody>
533
		</table>
534
	</div>
535
</div>
536

    
537
<nav class="action-buttons">
538
	<a href="services_unbound_host_edit.php" class="btn btn-sm btn-success">
539
		<i class="fa fa-plus icon-embed-btn"></i>
540
		<?=gettext('Add')?>
541
	</a>
542
</nav>
543

    
544
<div class="panel panel-default">
545
	<div class="panel-heading"><h2 class="panel-title"><?=gettext("Domain Overrides")?></h2></div>
546
	<div class="panel-body table-responsive">
547
		<table class="table table-striped table-hover table-condensed sortable-theme-bootstrap table-rowdblclickedit" data-sortable>
548
			<thead>
549
				<tr>
550
					<th><?=gettext("Domain")?></th>
551
					<th><?=gettext("IP")?></th>
552
					<th><?=gettext("Description")?></th>
553
					<th><?=gettext("Actions")?></th>
554
				</tr>
555
			</thead>
556

    
557
			<tbody>
558
<?php
559
$i = 0;
560
foreach ($a_domainOverrides as $doment):
561
?>
562
				<tr>
563
					<td>
564
						<?=$doment['domain']?>&nbsp;
565
					</td>
566
					<td>
567
						<?=$doment['ip']?>&nbsp;
568
					</td>
569
					<td>
570
						<?=htmlspecialchars($doment['descr'])?>&nbsp;
571
					</td>
572
					<td>
573
						<a class="fa fa-pencil"	title="<?=gettext('Edit domain override')?>" href="services_unbound_domainoverride_edit.php?id=<?=$i?>"></a>
574
						<a class="fa fa-trash"	title="<?=gettext('Delete domain override')?>" href="services_unbound.php?act=del&amp;type=doverride&amp;id=<?=$i?>"></a>
575
					</td>
576
				</tr>
577
<?php
578
	$i++;
579
endforeach;
580
?>
581
			</tbody>
582
		</table>
583
	</div>
584
</div>
585

    
586
<nav class="action-buttons">
587
	<a href="services_unbound_domainoverride_edit.php" class="btn btn-sm btn-success">
588
		<i class="fa fa-plus icon-embed-btn"></i>
589
		<?=gettext('Add')?>
590
	</a>
591
</nav>
592

    
593
<div class="infoblock">
594
	<?php print_info_box(sprintf(gettext("If the DNS Resolver is enabled, the DHCP".
595
		" service (if enabled) will automatically serve the LAN IP".
596
		" address as a DNS server to DHCP clients so they will use".
597
		" the DNS Resolver. If Forwarding is enabled, the DNS Resolver will use the DNS servers".
598
		" entered in %sSystem &gt; General Setup%s".
599
		" or those obtained via DHCP or PPP on WAN if &quot;Allow".
600
		" DNS server list to be overridden by DHCP/PPP on WAN&quot;".
601
		" is checked."), '<a href="system.php">', '</a>'), 'info', false); ?>
602
</div>
603

    
604
<?php include("foot.inc");
(140-140/225)