Assume that Company A is in A domain name provider 6688. I registered a domain name on the cc. Now I don't want to use the DNS server of a domain name provider. Instead, I want to create two DNS servers. One is the master server, the other is the slave server, and the other two are the slave servers: ns1.6688.cc, ns2.6688.cc how do we configure these two hosts as DNS servers? First, Company A has Assume that Company A is in A domain name provider 6688. I registered a domain name on the cc. Now I don't want to use the DNS server of a domain name provider. Instead, I want to create two DNS servers. One is the master server, the other is the slave server, and the other two are the slave servers: ns1.6688.cc, ns2.6688.cc how do we configure these two hosts as DNS servers?
First, Company A has the following requirements:
1. The company has a mail server that needs to be resolved to mail.6688.cc
2. The company has
FtpServer, need to be parsed ftp.6688.cc
3. You have your own domain name and
BbsAnd so on
Now, we can configure the two servers based on the above requirements.
0 The bind server must be installed on the two hosts. Otherwise, the bind server cannot continue.
- Yum install bind
1. Go to the Management page of a domain name provider's 6688. cc backend and change the address of the two DNS servers to your host name. (This step is omitted during study)
Ns1.6688.cc
Ns2.6688.cc
2. In order to ensure that the company's network address can be properly resolved, we configure ns1 as the master server, ns2-as the slave server, if ns1 address is 172.16.100.1, and ns2-'s slave server is 172.16.100.2
1) log on to 172.16.100.1 HOST: ns1.6688.cc, edit its dns master configuration file, define the working directory, add two regions, one forward resolution and one reverse resolution
- # Vim/etc/namEd. Conf
- # Forward
- Option {
- Directory\ "/Var/named \";
- };
- Zone\ "6688. cc \"IN {# declare copying the 6688. cc domain
- Type master; # type: master
- File \ "6688. cc. zone \"; # Parsing files
- };
- # Reverse
- Zone\ "16.172.in-DdR. arpa \"IN {
- Type master;
- File\ "172.16.zone \";
- };
- # Enter the ip address in the reverse direction (because it is resolved in reverse direction), for example, 1.100.10.172.
2) configure the forward resolution file 6688.cc
- Cd/Var/named
- Vim 6688.cc
- $ TTL 1200
- @ In soa ns1.6688.cc. admin.6688.cc. (# SOA Field
- 2011081601 # version number synchronization + 1
- 1 H # Update Time
- 10 MM # update failed. Retry the Update Time
- 7D # How long after the update fails
- 1D) # No response time for the resolution request
- In ns ns1.6688.cc.
- In ns ns2.6688.cc.
- In mx 10 mail.6688.cc. #10 indicates that the priority is 0-99. The smaller the number, the higher the priority.