Modifications : etc/gitolite
[lhc/ateliers.git] / etc / nsd3 / zone.d / changedechaine.org.zone.m4
1 divert(-1)
2 dnl changecom(`;')
3
4 * utilitaires M4
5 define(`ALIAS', `define($1`_IP4', $2`'_IP4)')
6 define(`MAKE_GETTER', `define(`$1', $`'1`_'$`'0)')
7 MAKE_GETTER(`IP4')
8 MAKE_GETTER(`NAME')
9 define(`FQDN', `NAME($1).ZONE_DOMAIN')
10
11 * hébergeur : gresille.org
12 define(`GRESILLE_IP4', `IP4(LOCAL)')
13 define(`GRESILLE_MX_NAME', `mx.ZONE_DOMAIN.')
14
15 divert(0)dnl
16 $TTL 1d ; TTL (Time To Live) par défaut pour les enregistrements
17
18 ; ENREGISTREMENT « SOA » (Start Of Authority).
19 @ SOA ns hostmaster (
20 ZONE_SERIAL ; Serial number.
21 1d ; Refresh.
22 15m ; Retry.
23 2592000 ; Expire.
24 1d ; TTL (Time To Live) minimum.
25 )
26
27 ; ENREGISTREMENTS « A » (DNS -> adresse IPv4)
28 @ A IP4(GRESILLE)
29 burette A IP4(GRESILLE)
30 futur A IP4(GRESILLE)
31 imap A IP4(GRESILLE)
32 mail A IP4(GRESILLE)
33 mx A IP4(GRESILLE)
34 notifications A IP4(GRESILLE)
35 ns A IP4(GRESILLE)
36 pop A IP4(GRESILLE)
37 roundcube A IP4(GRESILLE)
38 smtp A IP4(GRESILLE)
39 www A IP4(GRESILLE)
40
41 ; ENREGISTREMENTS « CNAME » (Canonical NAME)
42 ; NOTE : l'utilisation de CNAME n'est judicieuse que si la ressource pointée
43 ; n'est pas sous notre contrôle. Par exemple,
44 ; foo.example.org. CNAME foo.example.com.
45 ; Dans le cas contraire, le seul résultat est un traffic réseau accru,
46 ; et l'emploi de macros est préférable.
47 ; ```You keep using CNAME records. I do not think they mean what you think they mean.'''
48 forge CNAME git
49
50 ; ENREGISTREMENTS « MX » (Mail eXchange)
51 ; NOTE : le reverse et le forward associés au nom donné à un enregistrement MX
52 ; devraient correspondre. Certains antispams le vérifient, et certains (rares) admins
53 ; bloquent même au niveau de la session SMTP si il ne correspond pas.
54 @ MX 5 mx
55
56 ; ENREGISTREMENTS « NS » (Name Server)
57 @ NS ns
58 ;@ NS ns6.gandi.net.
59
60 ; ENREGISTREMENTS "PTR" (IPv* -> name)
61 ; NOTE : Dans le cas d’hébergement massif de domaines virtuels derrière une même adresse IP,
62 ; il est recommandé de ne pas appliquer sans discernement la règle un enregistrement PTR
63 ; par enregistrement A (ou AAAA) : le nombre des champs PTR à renvoyer pouvant faire dépasser
64 ; à la réponse la taille des paquets UDP et entraîner l’utilisation du protocole TCP
65 ; (plus coûteux en resources) pour envoyer la réponse à la requête DNS ;
66 ; cf. section "4.4 Usage and deployment considerations" du document :
67 ; http://tools.ietf.org/html/draft-ietf-dnsop-reverse-mapping-considerations
68
69 ; ENREGISTREMENTS "SPF" (Sender Policy Framework)
70 @ 3600 IN SPF "v=spf1 mx ip4:IP4(GRESILLE) ~all"
71 @ 3600 IN TXT "v=spf1 mx ip4:IP4(GRESILLE) ~all"
72
73 ; ENREGISTREMENTS « SRV » (SeRVice)
74 _git._tcp.git 18000 IN SRV 0 0 9418 git
75
76 ; ENREGISTREMENTS « SSHFP » (Secure SHell FingerPrint)
77 esyscmd(sudo ssh-keygen -r @)