Skip to content

Instantly share code, notes, and snippets.

@icanhazdevops
Created August 19, 2013 20:41
Show Gist options
  • Save icanhazdevops/6273903 to your computer and use it in GitHub Desktop.
Save icanhazdevops/6273903 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import os
import sys
import pyrax
pyrax.set_setting('identity_type', 'rackspace')
pyrax.set_credentials('username', 'apikey')
dns = pyrax.cloud_dns
domains = dns.list()
for domain in domains:
domain.update(ttl=300)
records = domain.list_records()
for record in records:
record.update(ttl=300)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment