Table of content
The zone example.com
will be defined to have the following specifications:
- the zone is defined with two name servers:
ns1.example.com
andns6.sample.net
- two servers will manage the mail for the whole domain
mrelay1.example.com
andmrelay1.sample.com
- hosting of ftp and web servers
- two hosts are in the domain:
incal
andrork
. - delegating the sub zone:
home
- Requirement: DNS, DNS records
Default value for TTL
The record lifespan is set to 1 day by default.
1 |
|
Zone example.com
The zone is defined by:
- the serial number and the associated various delays (refresh, delay before retry, delay before expiration, minimum conservation time),
- the DNS servers necessary for managing the zone (
NS
), - the servers dealing with the mails (
MX
) and a rule to define outgoing mail (SPF
).
Localhost
The loopback called localhost is defined to avoid overloading the server of the zone above with requests that should stay local, and provide a greater security by defining ourselves the value of localhost.
Name servers
One of the name servers (ns1.example.com
) used to delegate the
domain belongs to it.
Remember that for the delegation it will be necessary to include
this data. More information is available on the NS
record.
Mail to be sent to the domain has been defined previously by the MX
record, it is now necessary to provide the definition of the MX
used
for this domain (mrelay1
), a rule describing outgoing mail will also
be provided (SPF
record) to limit spam. Mail will be read from a web
interface (mail
) and with a mail reader using the IMAP protocol
(imap
), sending mail is done with SMTP protocol (smtp
). Distinction is
done here between incoming and outgoing mails for the domain (mrelay1
)
and the mail sent by mail clients belonging to the domain (smtp
).
Web and ftp
Two web servers and an ftp server are created. And the geographical location of the web server is specified.
Services
Names for the LDAP and Subversion services are defined.
Host
Two hosts in the domain are defined here, and their SSH fingerprints are published.
Delegation
Zone delegation for the home zone is put into place with the NS
records. Be careful, the following sample uses only one name server
instead of the two advised.