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 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

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9E/57/wKioL1mQaATwFmVuAAC6yYm9cLg723.png "title=" Screenshot from 2017-08-13 05_05_28.png "alt=" Wkiol1mqaatwfmvuaac6yym9clg723.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9E/57/wKioL1mQaIzQ4j0bAAA6BCsq1NQ817.png "title=" Screenshot from 2017-08-13 05_05_43.png "alt=" Wkiol1mqaizq4j0baaa6bcsq1nq817.png "/>



(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

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9E/57/wKioL1mQaSXBN2gAAADLZmrq-X0854.png "style=" float : none; "title=" screenshot from 2017-08-13 05_10_25.png "alt=" Wkiol1mqasxbn2gaaadlzmrq-x0854.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9E/68/wKiom1mQaSWC5gZlAABKSdt389U499.png "style=" float : none; "title=" screenshot from 2017-08-13 05_11_07.png "alt=" Wkiom1mqaswc5gzlaabksdt389u499.png "/>



(3) Installing the BIND service and DHCP service

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/9E/68/wKiom1mQaKrhfUGrAABoqZ1ypSY419.png "title=" Screenshot from 2017-08-13 05_06_29.png "alt=" Wkiom1mqakrhfugraaboqz1ypsy419.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9E/68/wKiom1mQaMmSjUhBAACjbVzC-wo686.png "title=" Screenshot from 2017-08-13 05_06_43.png "alt=" Wkiom1mqammsjuhbaacjbvzc-wo686.png "/>

(4) Set named service to start

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9E/68/wKiom1mQaUTCisdjAABhjeFVkZE011.png "title=" Screenshot from 2017-08-13 05_12_10.png "alt=" Wkiom1mqautcisdjaabhjefvkze011.png "/>


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

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9E/68/wKiom1mQaW3yHKq5AABZ0PszMsU312.png "title=" Screenshot from 2017-08-13 05_13_09.png "alt=" Wkiom1mqaw3yhkq5aabz0pszmsu312.png "/>

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

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9E/68/wKiom1mQaYCQaEvGAAAxZOfsP8E390.png "title=" Screenshot from 2017-08-13 05_16_12.png "alt=" Wkiom1mqaycqaevgaaaxzofsp8e390.png "/>

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

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9E/57/wKioL1mQaaTTTJowAAC2JakgyJU347.png "title=" Screenshot from 2017-08-13 05_21_21.png "alt=" Wkiol1mqaatttjowaac2jakgyju347.png "/>

(4) Systemctl restart named

Dig www.westos.com

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9E/68/wKiom1mQabzgnpkzAADtzwWDzCk371.png "title=" Screenshot from 2017-08-13 05_22_26.png "alt=" Wkiom1mqabzgnpkzaadtzwwdzck371.png "/>



3. Configuring the DHCP service

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/9E/68/wKiom1mQagbhWg8AAAAmXrPZ-Sk590.png "style=" float : none; "title=" screenshot from 2017-08-13 05_28_16.png "alt=" Wkiom1mqagbhwg8aaaamxrpz-sk590.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9E/57/wKioL1mQageC-QjIAAFGrcn6w10859.png "style=" float : none; "title=" screenshot from 2017-08-13 05_40_21.png "alt=" Wkiol1mqagec-qjiaafgrcn6w10859.png "/>


Note: Here 14 lines should uncomment and change none to interim


4. Generating symmetric encrypted files

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/9E/68/wKiom1mQaj7A1_r7AACefaB-0zA296.png "style=" float : none; "title=" screenshot from 2017-08-13 05_57_38.png "alt=" Wkiom1mqaj7a1_r7aacefab-0za296.png "/>


650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9E/68/wKiom1mQamej8XuaAAAp_NMnSrE857.png "title=" Screenshot from 2017-08-13 05_57_21.png "alt=" Wkiom1mqamej8xuaaaap_nmnsre857.png "/>

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

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/9E/57/wKioL1mQaruBjyl2AABBPMjPUns089.png "title=" Screenshot from 2017-08-13 06_35_12.png "alt=" Wkiol1mqarubjyl2aabbpmjpuns089.png "/>

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

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9E/68/wKiom1mQa1jQgC-lAABVxIEaw9I068.png "title=" Screenshot from 2017-08-13 06_37_10.png "alt=" Wkiom1mqa1jqgc-laabvxieaw9i068.png "/>

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

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9E/68/wKiom1mQayaiLUw3AAEdEzqR7F0278.png "title=" Screenshot from 2017-08-13 06_56_05.png "alt=" Wkiom1mqayailuw3aaedezqr7f0278.png "/>

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

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/9E/68/wKiom1mQbBGCxakZAACAY7ujcUA874.png "title=" Screenshot from 2017-08-13 07_02_55.png "alt=" Wkiom1mqbbgcxakzaacay7ujcua874.png "/>

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

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M02/9E/57/wKioL1mQbGrAc689AACGXJgEQPI010.png "title=" Screenshot from 2017-08-13 08_05_28.png "alt=" Wkiol1mqbgrac689aacgxjgeqpi010.png "/>

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.

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/68/wKiom1mQbIbS_gNoAA3legMDsP8723.png "style=" float : none; "title=" screenshot from 2017-08-13 20-39-31.png "alt=" Wkiom1mqbibs_gnoaa3legmdsp8723.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/57/wKioL1mQbI_jWBo-AA4G4AdY8CY090.png "style=" float : none; "title=" screenshot from 2017-08-13 20-46-54.png "alt=" Wkiol1mqbi_jwbo-aa4g4ady8cy090.png "/>


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

Linux Cloud Automation Operations Basics (DDNS service configuration)

Related Article

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.