Linux Cloud Automation Operations Basics (DDNS service configuration)

Source: Internet
Author: User
Tags domain name server

The DDNS (dynamic Domain name Server) is an abbreviation for the service.

DDNS is the user's Dynamic IP Address mapped to a fixed Domain Name Resolution service, each time the user connects to the network, the client program passes the message Host The dynamic IP address that is located on the service host Server program, the server program is responsible for providing the DNS service and implementing Dynamic Domain Name resolution .

DDNS captures the IP address each time the user changes , and then corresponds to the domain name so that other Internet users can communicate through the domain name. And the end customer to remember all, is the dynamic domain name provider to the domain name can be, and not to control how they are implemented. Dynamic Domain Name service object refers to the IP is dynamic, is variable. Normal DNS is based on static IP, which is likely to be one-to-many or many-to-many, and IP is a fixed or multiple. But the IP of the DDNS is variable and random.


1. Build a preliminary environment

(1) Set the host name to Ddns-server, set the IP to 172.25.254.124, build the Yum Warehouse

(2) Set the firewall to pass the DNS service, and set the DNS as the IP of the service-side host, here is 172.25.254.124

(3) Installing the BIND service and DHCP service

2. Configure the DNS service

Configure the domain file and parse file for the DNS service, and back up the configured parsing file Westos.con.zone to/mnt

(1) vim/etc/named.conf

(2) Vim/etc/named.rfc1912.zones

(3) Vim/var/named/westos.com.zone cp-p/var/named/westos.com.zone/mnt/

(4) Systemctl restart named

Dig www.westos.com

3. Configuring the DHCP service

4. Generating symmetric encrypted files

5. Add the key file in the DNS master configuration file Westos

6. Write permissions to/var/named/, and open DNS write domain name permissions in SELinux

7. Key update, update domain name news.westos.com, test can resolve

8 Add the key file Westos in the DHCP service's configuration file, and restart the service.

9. Delete the/var/named/westos.com.zone.jnl and reply to the Westos.com.zone file (to prevent the client from parsing)

10. Client Host Testing

(1) Set the client host DNS to 172.25.254.124, host name music.westos.com

(2) Set up the client host to get the network dynamically and restart the network service

(3) test dig music.westos.com See if it can be resolved successfully

(4) Adjust the IP range of the service side of the DHCP service, the client re-acquisition, test again, see whether it can be successfully resolved.


This article is from the "13122425" blog, please be sure to keep this source http://13132425.blog.51cto.com/13122425/1955979

Linux Cloud Automation Operations Basics (DDNS service configuration)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.