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