Skip to content

Instantly share code, notes, and snippets.

@nairsgithub
nairsgithub / ddns_route53.py
Created October 11, 2018 11:21
Change A Name Record on Aws Route53 automatically detecting IP address of device you are running the code on. Use this as a DDNS feature if you have a dynamic IP and want to Host a website and do Port Forwarding.
import boto3
import socket
import datetime,time
ACCESS_KEY_ID = 'YOUR_ACCESS_KEY'
ACCESS_SECRET_KEY = 'YOUR_SECRET_KEY'
HOSTED_ZONE_ID = "Find this in route53"
def get_ip_address():
import urllib2