Question
#linux Experiment 8(install and manage DNS server) ##task 1 Using hosts file to resolve domain name. Use the ifconfig command to view the local address
#linux Experiment 8(install and manage DNS server) ##task 1Using hosts file to resolve domain name.
- Use the ifconfig command to view the local address
- Edit the / etc / hosts file, write the following line and save it local_host_ip www.edu.cn
3. Check domain name resolution ping www.edu.cn
##task 2Install bind package 1. Use RPM - qa|grep bind to check whether the bind package have been installed. If yes, uninstall it
2. Using Yum to install bind package
- Use RPM - QL bind to check the included files and find the main configuration file and zone files storage directory
4. Turn off the server firewall and SELinux, and start the domain name service. #systemctl stop firewalld
#setenforce 0
#systemctl start named
5. Use netstat - ANTP to check if the domain name service is on
6. Use the systemctl command to set the named service on
##task 3Configure the primary domain name server, domain name : edu.cn 1. Edit main configuration file /etc/named.conf , set the area
2. Edit area file /var/named/edu.cn.zone (copy named.localhost file to edit)
3. Change zone file group
chown root:named /var/named/edu.cn.zone
- Use named checkconf and named checkzone to check the main configuration file and zone file
- services named restart: Restart the named service
- NSLOOKUP verifies the server configuration (server address)
- Set the domain name server address of the host as the virtual machine address, and check the domain name resolution.
Execute ping www.edu.cn at the host.
Configure as follows before execution:
#linux Experiment 8(install and manage DNS server) ##task 1Using hosts file to resolve domain name.
- Use the ifconfig command to view the local address
- Edit the / etc / hosts file, write the following line and save it local_host_ip www.edu.cn
3. Check domain name resolution ping www.edu.cn
##task 2Install bind package 1. Use RPM - qa|grep bind to check whether the bind package have been installed. If yes, uninstall it
2. Using Yum to install bind package
- Use RPM - QL bind to check the included files and find the main configuration file and zone files storage directory
4. Turn off the server firewall and SELinux, and start the domain name service. #systemctl stop firewalld
#setenforce 0
#systemctl start named
5. Use netstat - ANTP to check if the domain name service is on
6. Use the systemctl command to set the named service on
##task 3Configure the primary domain name server, domain name : edu.cn 1. Edit main configuration file /etc/named.conf , set the area
2. Edit area file /var/named/edu.cn.zone (copy named.localhost file to edit)
3. Change zone file group
chown root:named /var/named/edu.cn.zone
- Use named checkconf and named checkzone to check the main configuration file and zone file
- services named restart: Restart the named service
- NSLOOKUP verifies the server configuration (server address)
- Set the domain name server address of the host as the virtual machine address, and check the domain name resolution.
Execute ping www.edu.cn at the host.
Configure as follows before execution:
#linux Experiment 8(install and manage DNS server) ##task 1Using hosts file to resolve domain name.
- Use the ifconfig command to view the local address
- Edit the / etc / hosts file, write the following line and save it local_host_ip www.edu.cn
3. Check domain name resolution ping www.edu.cn
##task 2Install bind package 1. Use RPM - qa|grep bind to check whether the bind package have been installed. If yes, uninstall it
2. Using Yum to install bind package
- Use RPM - QL bind to check the included files and find the main configuration file and zone files storage directory
4. Turn off the server firewall and SELinux, and start the domain name service. #systemctl stop firewalld
#setenforce 0
#systemctl start named
5. Use netstat - ANTP to check if the domain name service is on
6. Use the systemctl command to set the named service on
##task 3Configure the primary domain name server, domain name : edu.cn 1. Edit main configuration file /etc/named.conf , set the area
2. Edit area file /var/named/edu.cn.zone (copy named.localhost file to edit)
3. Change zone file group
chown root:named /var/named/edu.cn.zone
- Use named checkconf and named checkzone to check the main configuration file and zone file
- services named restart: Restart the named service
- NSLOOKUP verifies the server configuration (server address)
- Set the domain name server address of the host as the virtual machine address, and check the domain name resolution.
Execute ping www.edu.cn at the host.
Configure as follows before execution:
#linux Experiment 8(install and manage DNS server) ##task 1Using hosts file to resolve domain name.
- Use the ifconfig command to view the local address
- Edit the / etc / hosts file, write the following line and save it local_host_ip www.edu.cn
3. Check domain name resolution ping www.edu.cn
##task 2Install bind package 1. Use RPM - qa|grep bind to check whether the bind package have been installed. If yes, uninstall it
2. Using Yum to install bind package
- Use RPM - QL bind to check the included files and find the main configuration file and zone files storage directory
4. Turn off the server firewall and SELinux, and start the domain name service. #systemctl stop firewalld
#setenforce 0
#systemctl start named
5. Use netstat - ANTP to check if the domain name service is on
6. Use the systemctl command to set the named service on
##task 3Configure the primary domain name server, domain name : edu.cn 1. Edit main configuration file /etc/named.conf , set the area
2. Edit area file /var/named/edu.cn.zone (copy named.localhost file to edit)
3. Change zone file group
chown root:named /var/named/edu.cn.zone
- Use named checkconf and named checkzone to check the main configuration file and zone file
- services named restart: Restart the named service
- NSLOOKUP verifies the server configuration (server address)
- Set the domain name server address of the host as the virtual machine address, and check the domain name resolution.
Execute ping www.edu.cn at the host.
Configure as follows before execution:
#linux Experiment 8(install and manage DNS server) ##task 1Using hosts file to resolve domain name.
- Use the ifconfig command to view the local address
- Edit the / etc / hosts file, write the following line and save it local_host_ip www.edu.cn
3. Check domain name resolution ping www.edu.cn
##task 2Install bind package 1. Use RPM - qa|grep bind to check whether the bind package have been installed. If yes, uninstall it
2. Using Yum to install bind package
- Use RPM - QL bind to check the included files and find the main configuration file and zone files storage directory
4. Turn off the server firewall and SELinux, and start the domain name service. #systemctl stop firewalld
#setenforce 0
#systemctl start named
5. Use netstat - ANTP to check if the domain name service is on
6. Use the systemctl command to set the named service on
##task 3Configure the primary domain name server, domain name : edu.cn 1. Edit main configuration file /etc/named.conf , set the area
2. Edit area file /var/named/edu.cn.zone (copy named.localhost file to edit)
3. Change zone file group
chown root:named /var/named/edu.cn.zone
- Use named checkconf and named checkzone to check the main configuration file and zone file
- services named restart: Restart the named service
- NSLOOKUP verifies the server configuration (server address)
- Set the domain name server address of the host as the virtual machine address, and check the domain name resolution.
Execute ping www.edu.cn at the host.
Configure as follows before execution:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started