Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Guida di Installazione Pagina 231

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 230
Chapter 17. Berkeley Internet Name Domain (BIND) 231
Seconds Other Time Units
259200 3D
604800 1W
31536000 365D
Table 17-1. Seconds compared to other time units
The following example demonstrates how a basic SOA resource record might look.
@ IN SOA dns1.domain.com. hostmaster.domain.com. (
2001062501 ; serial
21600 ; refresh after 6 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum TTL of 1 day
Figure 17-16. Example SOA records
17.2.2.3. Zone File Examples
Seen individually, the directives and resource records can be difficult to grasp. However, everything
makes much more sense when it is placed together in a common file.
In Figure 17-17, a very basic zone file is shown.
$ORIGIN domain.com
$TTL 86400
@ IN SOA dns1.domain.com. hostmaster.domain.com. (
2001062501 ; serial
21600 ; refresh after 6 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum TTL of 1 day
IN NS dns1.domain.com.
IN NS dns2.domain.com.
IN MX 10 mail.domain.com.
IN MX 20 mail2.domain.com.
IN A 10.0.1.5
server1 IN A 10.0.1.5
server2 IN A 10.0.1.7
dns1 IN A 10.0.1.2
dns2 IN A 10.0.1.3
ftp IN CNAME server1
mail IN CNAME server1
mail2 IN CNAME server2
www IN CNAME server2
Figure 17-17. An example of a basic zone file
Vedere la pagina 230
1 2 ... 226 227 228 229 230 231 232 233 234 235 236 ... 281 282

Commenti su questo manuale

Nessun commento