rumd3x/dns-updater 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rumd3x/dns-updater

Composer 安装命令:

composer create-project rumd3x/dns-updater

包简介

Updates your DNS records on your DNS provider when it changes.

README 文档

README

Updates your DNS records on your DNS provider when it changes.

About

This project is a PHP utility used to update DNS Records on multiple DNS providers. It is basically used to keep an DNS "A" Record in sync with your public IP automatically, on any provider.

Currently available providers are:

  • Cloudflare
  • DigitalOcean

Usage

Running Locally

This tool does not ensure that your configurations are correct. Configure your DNS settings correctly on your provider first, and use this tool only to keep the record updated.

  1. Download the project locally
git clone https://github.com/rumd3x/dns-updater.git
# or
composer create-project rumd3x/dns-updater

Make sure to install the dependencies with composer install when using git clone.

  1. Copy the .env.example file to .env and fill in the necessary parameters.
  • PROVIDER should be either digitalocean or cloudflare.
  • KEY Your API key of the provider. If your provider is cloudflare it should be email@email.com;your-api-key.
  • DOMAIN The domain that your record belongs to, like mysite.com.
  • RECORD The record that will be updated E.g. 'ddns' for updating the record at ddns.mysite.com.
  1. Now run the app/bootstrap.php file and watch your DNS records get updated.
  2. Put the command to call the project on a schedule (Like a cron running it every 5 minutes or so) to make sure it is always up to date.

Running the docker way

You can also run this project using docker. It will run the project on a schedule (every 5 mins) by default. Just run the following command and you are good to go (refer for the environment variables definitions in the section above).

docker run --name dns-updater-mysite-ddns \
--env PROVIDER=cloudflare \
--env KEY=email@email.com;my-api-key-here \
--env DOMAIN=mysite.com \
--env RECORD=ddns \
--restart unless-stopped \
edmur/dns-updater

To check what's going on inside the container just run:

docker logs dns-updater-mysite-ddns

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固