Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
In [90]: str(r0.answer[0])
Out[90]: 'pinterest.com. 60 IN A 54.243.129.204\npinterest.com. 60 IN A 50.16.219.149\npinterest.com. 60 IN A 54.225.186.27\npinterest.com. 60 IN A 54.235.105.67\npinterest.com. 60 IN A 50.16.231.144\npinterest.com. 60 IN A 23.21.210.110\npinterest.com. 60 IN A 50.17.251.14\npinterest.com. 60 IN A 54.243.162.10'
In [91]: str(r1.answer[0])
Out[91]: 'pinterest.com. 60 IN A 54.197.238.4\npinterest.com. 60 IN A 174.129.10.138\npinterest.com. 60 IN A 50.16.211.7\npinterest.com. 60 IN A 54.225.188.149\npinterest.com. 60 IN A 174.129.209.56\npinterest.com. 60 IN A 54.225.139.43\npinterest.com. 60 IN A 54.225.169.36\npinterest.com. 60 IN A 50.17.208.61'
In [92]: if str(r0.answer[0]) == str(r1.answer[0]):
print('No problem')
....:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment