Created
April 24, 2017 18:14
-
-
Save ilkermanap/63b80e00eaa2ea923ab926ad35feee80 to your computer and use it in GitHub Desktop.
dns adres kontrolu
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
from dns.resolver import Resolver | |
myres = Resolver() | |
myres.nameservers = ['8.8.8.8', '8.8.4.4'] | |
liste = open("liste.txt", "r").readlines() | |
for satir in liste: | |
adr, ipadr = satir.split() | |
ans = myres.query(adr, 'A') | |
print adr, ipadr | |
for rdata in ans: | |
print rdata | |
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
manap.se 173.11.22.33 | |
www.hurriyet.com.tr 83.66.162.3 | |
www.sabah.com.tr 174.35.41.106 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment