Skip to content

Commit

Permalink
Allow zone detection of domains lower than 2nd level
Browse files Browse the repository at this point in the history
  • Loading branch information
vincetse committed Apr 23, 2016
1 parent 68525e6 commit 81a698d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/route53-presence
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ from boto.route53.record import ResourceRecordSets
import requests

def get_zone_id(hostname):
domainname = '.'.join(hostname.split('.')[-2:])
domainname = '.'.join(hostname.split('.')[1:])
zone = conn.get_hosted_zone_by_name(domainname)
if not zone:
print "Sorry, you don't have access to that domain!"
Expand Down

0 comments on commit 81a698d

Please sign in to comment.