Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
feat(core): add support for CNAME records
Browse files Browse the repository at this point in the history
  • Loading branch information
upsetbit committed Aug 16, 2018
1 parent 4e40844 commit b166e9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dora.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ def look(self):
elif self.resource == 'AAAA':
records = self.aaaa

elif self.resource == 'CNAME':
records = self.cname

elif self.resource == 'MX':
records = self.mx

Expand Down Expand Up @@ -274,6 +277,10 @@ def a(self):
def aaaa(self):
return self.query('ipv6')

@property
def cname(self):
return self.query('canonical')

@property
def ns(self):
return self.query('nameserver')
Expand Down

0 comments on commit b166e9b

Please sign in to comment.