<s> from __future__ import print_function <EOL> import os <EOL> import sys <EOL> import pyrax <EOL> import pyrax . exceptions as exc <EOL> pyrax . set_setting ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> creds_file = os . path . expanduser ( "<STR_LIT>" ) <EOL> pyrax . set_credential_file ( creds_file ) <EOL> dns = pyrax . cloud_dns <EOL> domain_name = "<STR_LIT>" <EOL> try : <EOL> dom = dns . find ( name = domain_name ) <EOL> except exc . NotFound : <EOL> print ( "<STR_LIT>" % domain_name ) <EOL> sys . exit ( ) <EOL> print ( "<STR_LIT>" % ( domain_name , dom . ttl ) ) <EOL> new_ttl = dom . ttl + <NUM_LIT> <EOL> dom . update ( ttl = new_ttl ) <EOL> dom . reload ( ) <EOL> print ( "<STR_LIT>" % dom . ttl ) </s>
