Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactoring of dns models

  • Loading branch information...
commit decfc68553ddfd58a8e4a992f5147c29317cbaa0 1 parent e566875
@sigsalerno sigsalerno authored
Showing with 45 additions and 0 deletions.
  1. +45 −0 nodeshot/contrib/dns/choices.py
View
45 nodeshot/contrib/dns/choices.py
@@ -0,0 +1,45 @@
+from django.utils.translation import ugettext_lazy as _
+
+ACCESS_LEVELS = (
+ ('owner', _('owner')),
+ ('manager', _('manager'))
+)
+
+DOMAIN_TYPE = (
+ 'NATIVE',
+ 'MASTER',
+ 'SLAVE',
+ 'SUPERSLAVE'
+)
+
+RECORD_TYPE = ( #All possible dns record types
+ 'A',
+ 'AAAA',
+ 'AFSDB',
+ 'CERT',
+ 'CNAME',
+ 'DNSKEY',
+ 'DS',
+ 'HINFO',
+ 'KEY',
+ 'LOC',
+ 'MX',
+ 'NAPTR',
+ 'NS',
+ 'NSEC',
+ 'PTR',
+ 'RP',
+ 'RRSIG',
+ 'SOA',
+ 'SPF',
+ 'SSHFP',
+ 'SRV',
+ 'TXT'
+)
+
+USER_RECORD_TYPE = ( #User-allowed record types
+ 'A',
+ 'AAAA',
+ 'CNAME',
+ 'MX'
+)
Please sign in to comment.
Something went wrong with that request. Please try again.