PASTE-IT!

Holding 165M in 12431 pastes. Meet us at #paste-it.net, OFTC!
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# ============================================================================
# OpenPanel DNSDomain.module for bind9 based DNS hosting
# Copyright (C) 2008 PanelSix V.O.F.
# ============================================================================
module DNSDomain            < uuid 0fd76730-82bf-4f50-9e1a-a256c00a1d87
                            < version 1
                            < languages en_EN
                            < requires Domain.module
                            < apitype xml
                            < getconfig true

# ============================================================================
# DOMAIN CLASSES
# ============================================================================
class Meta:DNSDomain        < uuid 17302eb3-bee7-4827-b0c6-4812d45b8c4d
                            < version 1
                            < requires Domain
                            < indexing manual
                            < parentrealm domainsuffix
                            < shortname domain
                            < description DNS zone

                            < metatype base

    string id               : Domain name
    string type             : Type
    string description      : Description


# ----------------------------------------------------------------------------
class DNSDomain:Master      < uuid 4629fca4-5672-4273-bc92-b9ad863c9028
                            < version 1
                            < requires Domain
                            < indexing manual
                            < parentrealm domainsuffix
                            < allchildren true
                            < shortname masterdomain
                            < description DNS Master zone
                            < magicdelimiter $
                            < prototype prototype

                            < capabilities create delete update

                            < metatype derived
                            < metabase Meta:DNSDomain
                            < metadescription Primary TTL=$ttl$

    string id               : Domain name
                            < example foobar.com

    string primaryns        : Primary nameserver
                            < regexp [:hostname:]
                            < example ns1.foobar.com

    string secondaryns      : Secondary nameserver
                            < regexp [:hostname:]
                            < example ns2.foobar.com

    enum ttl                : Time to Live
                            < regexp [:numbers:]
                            < example 3600
                            < default 3600

    string admin            : Admininstrative contact address
                            < regexp [:emailorhostname:]

    integer refresh         : Refresh time
                            < regexp [:numbers:]
                            < default 16384

    integer retry           : Retry time
                            < regexp [:numbers:]
                            < default 2048

    integer expire          : Expiration time
                            < regexp [:numbers:]
                            < default 1048576

    integer minimum         : Minimum
                            < regexp [:numbers:]
                            < default 2560


# ----------------------------------------------------------------------------
class DNSDomain:Slave       < uuid cb7272f4-5fdb-4ec9-9cb2-ca30b925c381
                            < version 1
                            < requires Domain
                            < indexing manual
                            < parentrealm domainsuffix
                            < shortname slavedomain
                            < allchildren true
                            < uniquein class
                            < description DNS Slave zone
                            < magicdelimiter $
                            < prototype prototype

                            < capabilities create update delete validate

                            < metatype derived
                            < metabase Meta:DNSDomain
                            < metadescription Slave to $masterip$

    string id               : Domain name
                            < example foobar.com

    string masterip         : Master server IP address
                            < regexp [:ipv4:]

# ============================================================================
# RECORD CLASSES
# ============================================================================
class Meta:DNSDomain:Record < uuid 9ff4bf1a-39db-4778-bd5a-435f975c1979
                            < version 1
                            < requires DNSDomain:Master
                            < shortname record
                            < description DNS record

                            < metatype base

    string id               : Record
    string type             : Type
    string description      : Data


# ----------------------------------------------------------------------------
class DNSDomain:A           < uuid 844c8562-33ec-4204-a0f2-c6321de052d6
                            < version 1
                            < requires DNSDomain:Master
                            < shortname a
                            < description DNS A record

                            < capabilities create update delete

                            < metatype derived
                            < metabase Meta:DNSDomain:Record
                            < metadescription $name$ -> $addressval$

    string name             : Record name
                            < example www

    string addressval       : Address
                            < group addressgroup
                            < nick address

    ref addressref          : Server Address
                            < group addressgroup
                            < nick address
                            < ref Network:Interface/address


# ----------------------------------------------------------------------------
class DNSDomain:CNAME       < uuid d6f9ae8e-2eaa-4946-8fe7-cb82c3a1033c
                            < version 1
                            < requires DNSDomain:Master
                            < indexing auto
                            < shortname cname
                            < description DNS CNAME record

                            < capabilities create update delete

                            < metatype derived
                            < metabase Meta:DNSDomain:Record
                            < metadescription $name$ -> $addess$

    string name             : Record name
                            < example www

    string address          : Address
                            < example otherhost.com.


# ----------------------------------------------------------------------------
class DNSDomain:MX          < uuid 63cfb180-3217-4b6c-9080-1967bb15eccb
                            < version 1
                            < requires DNSDomain:Master
                            < indexing auto
                            < shortname mx
                            < description DNS MX record

                            < capabilities create update delete

                            < metatype derived
                            < metabase Meta:DNSDomain:Record
                            < metadescription $name$ -> $addess$

    string name             : Record name
                            < example www

    integer mxpref          : MX Preference

    string address          : Mailserver Hostname
                            < example otherhost.com.


# ----------------------------------------------------------------------------
class DNSDomain:NS          < uuid 005f8d68-63c2-4188-9067-5da1f521bf78
                            < version 1
                            < requires DNSDomain:Master
                            < indexing auto
                            < shortname ns
                            < description DNS NS record

                            < capabilities create update delete

                            < metatype derived
                            < metabase Meta:DNSDomain:Record
                            < metadescription $name$ -> $addess$

    string name             : Record name
                            < example www

    string address          : Address
                            < example otherhost.com.

# ============================================================================
# ENUMS
# ============================================================================
enum ttl
    value 300               : 5 minutes
    value 3600              : 1 hour
    value 86400             : 1 day
    value 604800            : 1 week

# ============================================================================
# AUTHD
# ============================================================================
authd fileops
    match *.zone            : /var/named/openpanel
                            < user root
                            < group root
                            < perms 0644
    match *.slavezone       : /var/named/openpanel
                            < user root
                            < group root
                            < perms 0644
    match zones.conf        : /var/named/openpanel
                            < user root
                            < group root
                            < perms 0644

# ----------------------------------------------------------------------------
authd services
    service bind9           < if debian
    service named           < if redhat
Paste by
xL,
330 day(s) ago
12:42 10-02-2008
in syntax