summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--tinydns-edit-html.lsp6
-rw-r--r--tinydns-model.lua6
3 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 17c8897..7fed43b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
APP_NAME=tinydns
PACKAGE=acf-$(APP_NAME)
-VERSION=0.3.0
+VERSION=0.3.1
APP_DIST=\
tinydns* \
diff --git a/tinydns-edit-html.lsp b/tinydns-edit-html.lsp
index 4361b8f..da18048 100644
--- a/tinydns-edit-html.lsp
+++ b/tinydns-edit-html.lsp
@@ -33,7 +33,7 @@
entryTypes[9]=new Entry("Z","SOA record",11,"Domain","Primary name server","Contact address","Serial number","Refresh time","Retry time","Expire time","Minimum time","Time to live","Timestamp","Location");
entryTypes[10]=new Entry(":","Generic record",6,"Domain","Record type","Record data","Time to live","Timestamp","Location");
entryTypes[11]=new Entry("%","Client location",2,"Location","IP prefix");
- entryTypes[12]=new Entry("S","Service location",8,"Domain", "IP address", "X", "Port", "Weight", "Priority", "Time to live", "Timestamp");
+ entryTypes[12]=new Entry("S","Service location",8,"Domain Service", "IP address", "Server", "Port", "Weight", "Priority", "Time to live", "Timestamp");
entryTypes[13]=new Entry("N","Naming authority pointer",9,"Domain", "Order", "Preference", "Flags", "Service", "Regular expression", "Replacement", "Time to live", "Timestamp");
function finishForm(entry){
@@ -74,7 +74,7 @@
}
for (i=0; i<entryType.num; i++){
if (entries[i] === null) { entries[i] = ""; }
- if (entryType.descriptions[i] == "Domain" || entryType.descriptions[i] == "Alias" || entryType.descriptions[i] == "Host" )
+ if (entryType.descriptions[i] == "Domain" || entryType.descriptions[i] == "Alias" || entryType.descriptions[i] == "Host" || entryType.descriptions[i] == "Domain Service" )
form = form + '<dt>' + entryType.descriptions[i] + '</dt><dd><input type="text" value="' + entries[i].replace(/\.?<%= string.gsub(html.html_escape(domain), "[\\%[%]%.%*%?%+%{%^%$]", "\\%1") %>$/i, "") + '" name="fixme"> . <%= html.html_escape(domain) %></dd>';
else
form = form + '<dt>' + entryType.descriptions[i] + '</dt><dd><input type="text" value="' + entries[i] + '"></dd>';
@@ -132,7 +132,7 @@
$(function(){
addLinks($("#entries").find("tr"));
- $("#entries").append(addEntry).find("a").click(addLine);
+ $("#entries").append(addEntry).find("a:last").click(addLine);
$("input.submit").click(submitFile);
<% if form.value.filecontent.linenumber then %>
$("#entries tr:eq(<%= form.value.filecontent.linenumber - 1 %>)").find("a:eq(2)").click();
diff --git a/tinydns-model.lua b/tinydns-model.lua
index 8e10466..6da055f 100644
--- a/tinydns-model.lua
+++ b/tinydns-model.lua
@@ -29,8 +29,8 @@ local descr = {
['Z']="SOA record (SOA)",
[':']="Generic record",
['%']="Client location",
- ['S']="Service location",
- ['N']="Naming authority pointer",
+ ['S']="Service location (SRV)",
+ ['N']="Naming authority pointer (NAPTR)",
},
fieldlabels={
['.']={"Domain", "IP address", "Name server", "Time to live", "Timestamp", "Location", },
@@ -44,7 +44,7 @@ local descr = {
['Z']={"Domain", "Primary name server", "Contact address", "Serial number", "Refresh time", "Retry time", "Expire time", "Minimum time", "Time to live", "Timestamp", "Location",},
[':']={"Domain", "Record type", "Record data", "Time to live", "Timestamp", "Location", },
['%']={"Location", "IP prefix", },
- ['S']={"Domain", "IP address", "X", "Port", "Weight", "Priority", "Time to live", "Timestamp", },
+ ['S']={"Domain Service", "IP address", "Server", "Port", "Weight", "Priority", "Time to live", "Timestamp", },
['N']={"Domain", "Order", "Preference", "Flags", "Service", "Regular expression", "Replacement", "Time to live", "Timestamp", },
},
}