Git Product home page Git Product logo

dns-o-matic's Introduction

DNS-O-Matic โ€“ Update your IP Address on OpenDNS

What

This Python script allows Meraki users to update the IP Addresses of their MR and MX products on OpenDNS using the Meraki Provisioning API and DNS-O-Matic API.

Why

Why do you even need this script? Our MR and MX products update their IP Addresses every so often. And if you use OpenDNS to describe policies for your devices using IP Addresses, they may not act appropriately as the device IP addresses are changing. We need to be able to update the IP Addresses of our devices on OpenDNS. We can usually do this manually, but when we have thousands of devices across countless networks, this can be a not-so-fun task. This script allows us to solve this issue in an easy, automated fashion.

How to run

In order to update the IP Addresses of your Meraki devices on OpenDNS, you will run the above script from your command line.

Install the modules specified in requirements.txt using pip, a package manager for Python.

pip install -r requirements.txt

If you don't want to use the requirements.txt file, you can install the requests module yourself as well. Using pip, try running this from the command line:

pip install requests

After you have installed all the required modules, you can run the following from the command line:

python update_ip_addr_dns.py [X-Cisco-Meraki-API-Key] [DNS-O-Matic-USER]:[DNS-O-Matic-PASS] [device_type1, device_type2]

For example, when I try updating the IP Addresses of my MR devices on all of my networks, I run the following command (the password and API key are fake):

python update_ip_addr_dns.py 8943qjkewasdf98q34 [email protected]:mypassword MR

And voila! You will now have updated your IP Addresses for your specific devices on OpenDNS.

Getting Help

dns-o-matic's People

Contributors

jainshubhi avatar

Watchers

 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.