Created
June 28, 2018 04:33
-
-
Save swarupdonepudi/5491548a8c5d4d8129b76613cb1213a0 to your computer and use it in GitHub Desktop.
Python DNS Resolver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dns.resolver | |
my_resolver = dns.resolver.Resolver() | |
for data in my_resolver.query("test.db.cforcoins.com", 'cname'): | |
print(data.target) | |
Output : | |
test-db-cluster.cluster-criapcajhism.ap-south-1.rds.amazonaws.com. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment