mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Show other fields for reverses
This commit is contained in:
parent
fadb494ce0
commit
fcfb23ea63
1 changed files with 23 additions and 10 deletions
15
index.php
15
index.php
|
@ -420,7 +420,18 @@ $(document).ready(function () {
|
|||
create: true
|
||||
},
|
||||
type: {
|
||||
options: {
|
||||
options: function() {
|
||||
zonename = new String(zone.record.name);
|
||||
if (zonename.match(/(\.in-addr|\.ip6)\.arpa/)) {
|
||||
return {
|
||||
'PTR':'PTR',
|
||||
'NS':'NS',
|
||||
'MX':'MX',
|
||||
'TXT':'TXT',
|
||||
'SOA':'SOA'
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
'AAAA': 'AAAA',
|
||||
'A': 'A',
|
||||
'CNAME': 'CNAME',
|
||||
|
@ -430,6 +441,8 @@ $(document).ready(function () {
|
|||
'TXT': 'TXT',
|
||||
'NS': 'NS',
|
||||
'SOA': 'SOA'
|
||||
};
|
||||
}
|
||||
},
|
||||
create: true
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue