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