diff --git a/DnsServerCore/www/index.html b/DnsServerCore/www/index.html index dd652e7b..458c5014 100644 --- a/DnsServerCore/www/index.html +++ b/DnsServerCore/www/index.html @@ -1180,11 +1180,27 @@
- +
- +
-
The next bootstrap server IP address to be used by the clients. If not specified, the DHCP server's IP address is used.
+
The bootstrap TFTP server IP address to be used by the clients. If not specified, the DHCP server's IP address is used.
+
+ +
+ +
+ +
+
The optional bootstrap TFTP server host name to be used by the clients to identify the TFTP server.
+
+ +
+ +
+ +
+
The boot file name stored on the bootstrap TFTP server to be used by the clients.
diff --git a/DnsServerCore/www/js/dhcp.js b/DnsServerCore/www/js/dhcp.js index 388bbcd1..9451a186 100644 --- a/DnsServerCore/www/js/dhcp.js +++ b/DnsServerCore/www/js/dhcp.js @@ -191,6 +191,9 @@ function clearDhcpScopeForm() { $("#txtDhcpScopeOfferDelayTime").val("0"); $("#txtDhcpScopeDomainName").val(""); $("#txtDhcpScopeDnsTtl").val("900"); + $("#txtDhcpScopeServerAddress").val(""); + $("#txtDhcpScopeServerHostName").val(""); + $("#txtDhcpScopeBootFileName").val(""); $("#txtDhcpScopeRouterAddress").val(""); $("#chkUseThisDnsServer").prop("checked", false); $('#txtDhcpScopeDnsServers').prop('disabled', false); @@ -247,8 +250,14 @@ function showEditDhcpScope(scopeName) { $("#txtDhcpScopeDnsTtl").val(responseJSON.response.dnsTtl); - if (responseJSON.response.nextServerAddress != null) - $("#txtDhcpScopeNextServerAddress").val(responseJSON.response.nextServerAddress); + if (responseJSON.response.serverAddress != null) + $("#txtDhcpScopeServerAddress").val(responseJSON.response.serverAddress); + + if (responseJSON.response.serverHostName != null) + $("#txtDhcpScopeServerHostName").val(responseJSON.response.serverHostName); + + if (responseJSON.response.bootFileName != null) + $("#txtDhcpScopeBootFileName").val(responseJSON.response.bootFileName); if (responseJSON.response.routerAddress != null) $("#txtDhcpScopeRouterAddress").val(responseJSON.response.routerAddress); @@ -318,7 +327,9 @@ function saveDhcpScope() { var domainName = $("#txtDhcpScopeDomainName").val(); var dnsTtl = $("#txtDhcpScopeDnsTtl").val(); - var nextServerAddress = $("#txtDhcpScopeNextServerAddress").val(); + var serverAddress = $("#txtDhcpScopeServerAddress").val(); + var serverHostName = $("#txtDhcpScopeServerHostName").val(); + var bootFileName = $("#txtDhcpScopeBootFileName").val(); var routerAddress = $("#txtDhcpScopeRouterAddress").val(); var useThisDnsServer = $("#chkUseThisDnsServer").prop('checked'); @@ -344,8 +355,8 @@ function saveDhcpScope() { HTTPRequest({ url: "/api/setDhcpScope?token=" + token + "&name=" + encodeURIComponent(name) + (newName == null ? "" : "&newName=" + encodeURIComponent(newName)) + "&startingAddress=" + encodeURIComponent(startingAddress) + "&endingAddress=" + encodeURIComponent(endingAddress) + "&subnetMask=" + encodeURIComponent(subnetMask) + - "&leaseTimeDays=" + leaseTimeDays + "&leaseTimeHours=" + leaseTimeHours + "&leaseTimeMinutes=" + leaseTimeMinutes + "&offerDelayTime=" + offerDelayTime + "&domainName=" + encodeURIComponent(domainName) + "&dnsTtl=" + dnsTtl + "&nextServerAddress=" + encodeURIComponent(nextServerAddress) + "&routerAddress=" + encodeURIComponent(routerAddress) + - "&useThisDnsServer=" + useThisDnsServer + (useThisDnsServer ? "" : "&dnsServers=" + encodeURIComponent(dnsServers)) + "&winsServers=" + encodeURIComponent(winsServers) + "&ntpServers=" + encodeURIComponent(ntpServers) + + "&leaseTimeDays=" + leaseTimeDays + "&leaseTimeHours=" + leaseTimeHours + "&leaseTimeMinutes=" + leaseTimeMinutes + "&offerDelayTime=" + offerDelayTime + "&domainName=" + encodeURIComponent(domainName) + "&dnsTtl=" + dnsTtl + "&serverAddress=" + encodeURIComponent(serverAddress) + "&serverHostName=" + encodeURIComponent(serverHostName) + "&bootFileName=" + encodeURIComponent(bootFileName) + + "&routerAddress=" + encodeURIComponent(routerAddress) + "&useThisDnsServer=" + useThisDnsServer + (useThisDnsServer ? "" : "&dnsServers=" + encodeURIComponent(dnsServers)) + "&winsServers=" + encodeURIComponent(winsServers) + "&ntpServers=" + encodeURIComponent(ntpServers) + "&staticRoutes=" + encodeURIComponent(staticRoutes) + "&exclusions=" + encodeURIComponent(exclusions) + "&reservedLeases=" + encodeURIComponent(reservedLeases) + "&allowOnlyReservedLeases=" + allowOnlyReservedLeases, success: function (responseJSON) { refreshDhcpScopes();