diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-11-11 12:29:08 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-11-11 12:29:08 +0000 |
commit | 5fb5da5efb77f3a64586cafd80b1fbfade2fb009 (patch) | |
tree | 47ad74b4295b61ee89bf302d09d2b7141bc38ee9 | |
parent | 9e62c361c0fd51809a6fefdf5772768147b310a7 (diff) | |
download | acf-tinydns-5fb5da5efb77f3a64586cafd80b1fbfade2fb009.tar.bz2 acf-tinydns-5fb5da5efb77f3a64586cafd80b1fbfade2fb009.tar.xz |
Finished support for SRV and NAPTR records. Bumped to 0.3.1v0.3.1
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | tinydns-edit-html.lsp | 6 | ||||
-rw-r--r-- | tinydns-model.lua | 6 |
3 files changed, 7 insertions, 7 deletions
@@ -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", }, }, } |