Giter VIP home page Giter VIP logo

raspi_alidns_ddns's Introduction

Raspi_AliDNS_DDNS

描述

本脚本用于在通过wifi联网(通过有线连接也可以),由DHCP分配IP的情况下,自动更新阿里云上用于访问树莓派的域名解析
只适用于内网,非公网IP 公网也应该可以吧?

用法

关于脚本内的详细用法详见原脚本:https://github.com/h46incon/AliDDNSBash
如果以Systemd方式使用此脚本,以下为在树莓派4B上可用的service文件示例:

[Unit]
Description=Internal network DDns
After=networking.service

[Service]
Type=oneshot
ExecStart=/bin/bash path/to/ddns.sh
KillSignal=SIGINT

[Install]
WantedBy=multi-user.target

可通过Systemd设置为定时任务,以下为timer文件示例:

[Unit]
Description=DDNS Timer

[Timer]
OnBootSec=10min
OnUnitInactiveSec=1h
Persistent=true

[Install]
WantedBy=timers.target

其它

本项目来自https://github.com/h46incon/AliDDNSBash 对原作者表示感谢
本脚本在树莓派4B上测试通过,理论上也可用于其它设备

raspi_alidns_ddns's People

Contributors

fxzxmic avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.