GithubHelp home page GithubHelp logo

aliddns's Introduction

aliddns

The DDNS tool for domains hosted on AliYun. It keeps your domain pointing to your changing local IP, by updating domain record value when local IP is changed. Therefore, there will be a DELAY after IP change, when you should expect some downtime. USE WITH CAUTION.

For now, aliddns supports only ppp on linux.

This is not an Alibaba product.

Installation

Due to dependency, aliddns can only be used on Python 2.6 and above. Using pip install in a virtualenv is the recommended way. For example:

source $VIRTUAL_ENV/bin/activate
pip install git+https://github.com/decentfox/aliddns

Then configure aliddns by editing $VIRTUAL_ENV/lib/python2.x/site-packages/aliddns/local_config.py:

INTERFACES = ['ppp0']
RECORDS = [
    (u'@', u'example.com', u'A'),
    (u'www', u'example.com', u'A'),
]

ALIYUN_KEY_ID = 'xxx'
ALIYUN_KEY_SECRET = 'xxx'

This will result the values of A records of example.com and www.example.com to always be the IP on local network interface ppp0.

ppp

To enable aliddns on a ppp interface, you'll need to link the hook:

cd /etc/ppp/if-up.d
ln -s $VIRTUAL_ENV/bin/aliddns-ppp

Debugging

Log file is by default located at /var/log/aliddns.log. And there're a few more logging configurations in aliddns/config.py which you can override in local_config.py specified above.

aliddns's People

Contributors

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