3 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
4 <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
5 <link rel="stylesheet" href='stylemain.css' type='text/css'>
6 <link rel="stylesheet" href='colors.css' type='text/css'>
7 <script language="javascript" src="util.js"></script>
8 <script language="javascript">
10 parent.helpframe.location.href="hlpdnscfg.html";
11 var randomNum = '<%ejGet(CheckNum)%>';
13 var auto = '<%ejGetOther(sysInfo, dnsAuto)%>';
14 var dns1Ip = '<%ejGetOther(sysInfo, psidns)%>';
15 var dns2Ip = '<%ejGetOther(sysInfo, psidns2)%>';
17 function hideDnsInfo(hide) {
18 var status = 'visible';
22 if (document.getElementById) // DOM3 = IE5, NS6
23 document.getElementById('dnsInfo').style.visibility = status;
25 if (document.layers == false) // IE4
26 document.all.dnsInfo.style.visibility = status;
31 function dnsClick(cb) {
32 if (cb.checked == true)
39 var loc = 'dnscfg.cgi?';
40 loc += 'checkNum=' + randomNum + '&';
42 with ( document.forms[0] ) {
43 if (enableAuto.checked == false) {
44 if ( isValidIpAddress(dnsPrimary.value) == false ) {
45 alert('Primary DNS "' + dnsPrimary.value + '" has invalid IP address.');
48 loc += 'dnsPrimary=' + dnsPrimary.value;
49 if (dnsSecondary.value != '') {
50 if ( isValidIpAddress(dnsSecondary.value) == false ) {
51 alert('Secondary DNS "' + dnsSecondary.value + '" has invalid IP address.');
54 loc += '&dnsSecondary=' + dnsSecondary.value;
56 loc += '&dnsSecondary=' + '0.0.0.0';
57 loc += '&dnsDynamic=0';//add by wilson
59 loc += 'dnsPrimary=' + '0.0.0.0';
60 loc += '&dnsSecondary=' + '0.0.0.0';
61 loc += '&dnsDynamic=1';//add by wilson
64 var code = 'window.location.href="/'; // for Mac safari browser compatibility
71 with ( document.forms[0] ) {
72 if (enableAuto.checked == true){
73 if (old_enableAuto == enableAuto.checked){
74 var loc = 'dnscfg.html';
75 var code = 'window.location.href="/'; // for Mac safari browser compatibility
82 if ( old_enableAuto == enableAuto.checked && dnsPrimary.value == dns1Ip && dnsSecondary.value == dns2Ip) {
83 var loc = 'dnscfg.html';
84 var code = 'window.location.href="/'; // for Mac safari browser compatibility
96 with ( document.forms[0] ) {
97 if ( dns1Ip == ' ' || dns1Ip == '0.0.0.0') dns1Ip = '';
98 if ( dns2Ip == ' ' || dns2Ip == '0.0.0.0') dns2Ip = '';
99 dnsPrimary.value=dns1Ip;
100 dnsSecondary.value=dns2Ip;
102 enableAuto.checked = true;
106 enableAuto.checked = false;
107 old_enableAuto=false;
111 if (<%ejGet(changeset)%> == 1){
112 parent.footerfrm.location.href="footer.html";
119 <body onLoad='frmLoad()'>
121 <form class="formpadding">
122 <table border="0" cellpadding="0" cellspacing="3" width="98%">
124 <td><b><font class="netgear">DNS Server Configuration</font></b></td>
126 <tr><td> </td></tr>
128 <td background="liteblue.gif" height="12"> </td>
\r
132 <table border="0" cellpadding="0" cellspacing="0">
134 <td align="left" width="25" height="30">
135 <input type='checkbox' name='enableAuto' onclick='dnsClick(this)'></td>
137 Enable Automatic Assigned DNS</td>
142 <table border="0" cellpadding="0" cellspacing="0">
144 <td>Primary DNS server:
146 <td><input type='text' name='dnsPrimary'></td>
149 <td>Secondary DNS server:
151 <td><input type='text' name='dnsSecondary'></td>
155 <table border="0" cellpadding="0" cellspacing="3" width="98%">
157 <td background="liteblue.gif" height="12"> </td>
\r
160 <table width='520'><tr>
161 <td align='left' width="50" valign="top"><input type='button' onClick='btnApply()' value='Apply'></td>
162 <td align="left" width="60" valign="top"><input type="button" onClick="btnCancel('dnscfg.html')" value="Cancel"></td>
163 <td class="grey_comment" width="410">If changing from unselected Automatic Assigned DNS to selected Automatic Assigned DNS, You must reboot the router to get the automatic assigned DNS addresses.</td>