1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 (c) 2005 U.S. Robotics Corporation
7 <title>Internet » DNS Server</title>
9 <link href="usr_main.css" rel="stylesheet" type="text/css">
10 <link href="usr_menus.css" rel="stylesheet" type="text/css"><script src="usr_menus.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
11 <script src="usr_common.js" type="text/javascript"></script>
13 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
15 <script type="text/javascript" src="util.js"></script>
16 <script type="text/javascript">
19 setPageTitle("<%ejGetWlJS(wlInterface)%>");
21 var state = '<%ejGetJS(dnsRefresh)%>';
23 var code = 'location = "dnscfg.cgi?dnsRefresh=0"';
27 function hideDnsInfo(hide) {
28 var status = 'visible';
32 if (document.getElementById) // DOM3 = IE5, NS6
33 document.getElementById('dnsInfo').style.visibility = status;
35 if (document.layers == false) // IE4
36 document.all.dnsInfo.style.visibility = status;
41 function dnsClick(cb) {
42 if (cb.checked == true)
49 var loc = 'dnscfg.cgi?';
51 with ( document.forms[0] ) {
52 if (enableAuto.checked == false) {
53 if ( isValidIpAddress(dnsPrimary.value) == false ) {
54 alert('Primary DNS "' + dnsPrimary.value + '" has invalid IP address.');
57 loc += 'dnsPrimary=' + dnsPrimary.value;
58 if (dnsSecondary.value != '') {
59 if ( isValidIpAddress(dnsSecondary.value) == false ) {
60 alert('Secondary DNS "' + dnsSecondary.value + '" has invalid IP address.');
63 loc += '&dnsSecondary=' + dnsSecondary.value;
66 loc += '&dnsSecondary=' + '0.0.0.0';
67 loc += '&dnsDynamic=0';
68 loc += '&dnsRefresh=1';
71 loc += 'dnsPrimary=' + '0.0.0.0';
72 loc += '&dnsSecondary=' + '0.0.0.0';
73 loc += '&dnsDynamic=1';
74 loc += '&dnsRefresh=0';
77 var code = 'location = "' + loc + '"';
83 with ( document.forms[0] ) {
84 var auto = '<%ejGetOther(sysInfo, dnsAuto)%>';
86 var dns1 = '<%ejGetOther(sysInfo, dns)%>';
87 if ( dns1 == ' ' ) dns1 = '';
89 var dns2 = '<%ejGetOther(sysInfo, dns2)%>';
90 if ( dns2 == ' ' ) dns2 = '';
93 enableAuto.checked = true;
94 dnsPrimary.value = '';
95 dnsSecondary.value = '';
98 enableAuto.checked = false;
99 dnsPrimary.value = dns1;
100 dnsSecondary.value = dns2;
106 function btnReset() {
107 var loc = 'rebootinfo.cgi';
109 var code = 'location = "' + loc + '"';
117 <body onload="initMenu(); frmLoad();">
119 <script type="text/javascript">
120 writeHeader("Internet");
126 <p>If the <b>Automatically-assigned DNS</b> check box is selected, this router will accept
127 the first received DNS assignment from one of the PPPoA, PPPoE or MER/DHCP
128 enabled PVC(s) during the connection establishment. If the checkbox is
129 cleared, enter the primary and optional secondary DNS server IP addresses.
130 Press <b>Apply</b> to save it.
133 <P><b>Note:</b> If you select the <b>Automatically-assigned DNS</b> check box,
134 you must restart the router to get the automatically-assigned DNS addresses.</P>
137 <p><input type='checkbox' name='enableAuto' id='enableAuto' onclick='dnsClick(this)'> <label for="enableAuto">Automatically-assigned DNS</label></p>
142 <td><label for="dnsPrimary">Primary DNS server:</label></td>
143 <td><input type='text' name='dnsPrimary' id='dnsPrimary'></td>
146 <td><label for="dnsSecondary">Secondary DNS server:</label></td>
147 <td><input type='text' name='dnsSecondary' id='dnsSecondary'></td>
152 <p><input type='button' onClick='btnApply()' value='Apply'>
153 <input type='button' onClick='btnReset()' value='Restart'>
158 <script type="text/javascript">