
Chapter 17. Berkeley Internet Name Domain (BIND) 229
IN A 10.0.1.3
server1 IN A 10.0.1.5
Figure 17-8. Example A records
Requests for domain.com are pointed to 10.0.1.3, while requests for server1.domain.com are
pointed to 10.0.1.5.
• CNAME — Canonical name record, which tells the nameserver that one name is also known as
another.
alias-name IN CNAME real-name
Figure 17-9. Sample CNAME record configuration
In Figure 17-9, any requests sent to the alias-name will point to the host named real-
name
. CNAME records are most commonly used to point services that use a common naming
scheme to the correct host.
Consider the example in Figure 17-10, where an A record sets a particular hostname to an IP address
and a CNAME record points the commonly used www hostname to it.
server1 IN A 10.0.1.5
www IN CNAME server1
Figure 17-10. Example CNAME record
• MX — Mail eXchange record, which tells where mail sent to a particular namespace controlled by
this zone should go.
IN MX
preference-value email-server-name
Figure 17-11. Sample MX record configuration
In Figure 17-11, the preference-value allows you to numerically rank the email servers
you would prefer to receive email for this namespace, giving preference to some email systems
over others. The MX resource record with the lowest
preference-value is preferred over the
others, but you can set multiple email servers with the same value to distribute email traffic between
them.
The email-server-name may be a hostname or FQDN, as long as it points to the correct
system.
IN MX 10 mail.domain.com.
IN MX 20 mail2.domain.com.
Figure 17-12. Example MX records
In this example, the first mail.domain.com email server is preferred to the mail2.domain.com
email server when receiving email destined for the domain.com domain.
• NS — NameServer record, which announces the authoritative nameservers for a particular zone.
IN NS
nameserver-name
Figure 17-13. Sample NS record configuration
The nameserver-name should be a FQDN.
In Figure 17-14, two nameservers are listed as authoritative for a domain. It is not important whether
these nameservers are slaves or if one is a master; they are both still considered authoritative.
Commenti su questo manuale