banner
破影岚歌

破影岚歌的博客

bilibili
twitter
github

17. DNS Settings in CentOS7

DNS Server on CentOS7#

DNS: Domain Name Resolution System

Experimental Environment#

  1. CentOS7: 192.168.0.1
  2. Windows7: 192.168.0.100

Experimental Steps#

  1. Configure the network environment (connect the network cable, configure IP addresses, disable firewall and SELinux on CentOS)

  2. Install bind software on CentOS

  3. Configure bind on CentOS (first configure /etc/named.conf, then configure /etc/named.rfc1912.zones: define the names and paths of forward and reverse files, finally create and edit forward and reverse files in /var/named)

    Domain Name--Forward-->IP
    Domain Name<--Reverse--IP

    Assume: There is a website www.pip.cc (192.168.0.10) and an FTP server ftp.pip.cc (192.168.0.20) in the current network.

  4. Restart the DNS service: systemctl restart named

  5. Test DNS on the client (configure the client first, specify the DNS server; test if the port can be connected, finally test using the nslookup command)

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.