From b4496213b13108f53ecfeaeea0cd96cf5b4ccb53 Mon Sep 17 00:00:00 2001
From: Joshua Tauberer You can download your zonefiles here, for example if you want to host your DNS somewhere else.Download zonefile
-
-Custom DNS API
@@ -189,13 +172,10 @@ function show_custom_dns() {
"GET",
{ },
function(data) {
- var selects = ['#customdnsZone', '#downloadZonefile']
- for (var i = 0; i < selects.length; i++) {
- $(selects[i]).text('');
- for (var j = 0; j < data.length; j++) {
- $(selects[i]).append($('').text(data[j]));
- }
- }
+ $('#customdnsZone').text('');
+ for (var i = 0; i < data.length; i++) {
+ $('#customdnsZone').append($('').text(data[i]));
+ }
});
show_current_custom_dns();
@@ -212,7 +192,7 @@ function show_current_custom_dns() {
$('#custom-dns-current').fadeIn();
else
$('#custom-dns-current').fadeOut();
-
+
var reverse_fqdn = function(el) {
el.qname = el.qname.split('.').reverse().join('.');
return el;
@@ -294,22 +274,6 @@ function do_set_custom_dns(qname, rtype, value, method) {
});
}
-function do_download_zonefile() {
- var zone = $('#downloadZonefile').val();
-
- api(
- "/dns/zonefile/"+ zone,
- "GET",
- {},
- function(data) {
- if (data == "") return; // nothing updated
- show_modal_error("Download Zonefile", $("").text(data));
- },
- function(err) {
- show_modal_error("Download Zonefile (Error)", $("").text(err));
- });
-}
-
function show_customdns_rtype_hint() {
$('#customdnsTypeHint').text($("#customdnsType").find('option:selected').attr('data-hint'));
}
diff --git a/management/templates/external-dns.html b/management/templates/external-dns.html
index 6d8f677a..adb692d3 100644
--- a/management/templates/external-dns.html
+++ b/management/templates/external-dns.html
@@ -42,6 +42,19 @@
You may need to adopt this technique when adding DomainKeys. Use a tool like named-checkzone
to validate your zone file.
You can download your zonefiles here or use the table of records below.
+ + +