banner
破影岚歌

破影岚歌的博客

bilibili
twitter
github

17. DNS Settings in CentOS 7

DNS Server on CentOS7#

DNS: Domain Name System

Experimental Environment#

  1. CentOS7: 192.168.0.1
  2. Windows7: 192.168.0.100

Experimental Steps#

  1. Configure network environment (connect network cable, configure IP address, 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 DNS service: systemctl restart named

  5. Test DNS on the client side (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.