dns

How to modify selenium webdriver dns to custom one

How to modify selenium webdriver dns to custom one Question: so for some reason my webdriver session does not able to enter some website that on my normal browser I can, I receive DNS_PROBE_FINISHED_NXDOMAIN error. I tried manually change the DNS provider to CloudFlare (1.1.1.1) and then it worked, how can I make the webdriver …

Total answers: 1

Query DNS server for usable/plain IP address

Query DNS server for usable/plain IP address Question: I am trying to write a program to query multiple DNS servers for the IP address of a hostname. My only problem is that I can’t get the actual IP address, only the server’s response. This is my code: import dns.resolver my_resolver = dns.resolver.Resolver() reply_list = [] …

Total answers: 2

Why am i getting this error when i try to answer my own dns request?

Why am i getting this error when i try to answer my own dns request? Question: import scapy.all as scapy p = scapy.DNS(qd=scapy.DNSQR(qname=’www.example.com’), an=scapy.DNSRR(rrname=’127.0.0.1′)) scapy.send(p) result : Traceback (most recent call last): File "/home/kali/PROJECTS/server.py", line 3, in <module> scapy.send(p) File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 425, in send return _send( File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 395, in _send results = …

Total answers: 1

Flask shows apache2 page on DNS

Flask shows apache2 page on DNS Question: My flask app works when accessed via IP(http://194.233.174.220/) but when using the dns(http://friendhub.social/), it only shows the default apache2 page. If I try to move my own page over to /var/www/html, it will only show a directory tree /etc/apache2/sites-available/social.conf: <VirtualHost *:80> ServerName 194.233.174.220 ServerAdmin [email protected] WSGIScriptAlias / /var/www/social/social.wsgi …

Total answers: 1

DNS Packet IP Address Structure

DNS Packet IP Address Structure Question: I have been writing a python program that builds a packet and sends a reverse DNS lookup request to a DNS server. I have a problem the IP address is stored in hex in a way that is difficult to understand. In the hex field it has the number …

Total answers: 2

Error occured when getting the data file through URL using python

Error occured when getting the data file through URL using python Question: I tried to load data from a URL url = ‘http://raw.githubusercontent.com/justmarkham/DAT8/master/data/chipotle.tsv’ chipo = pd.read_csv(url, sep = ‘t’) and there is an error URLError: <urlopen error [Errno 11004] getaddrinfo failed> I’ve checked this answer but this does not help. I’ve also tried fetching data …

Total answers: 1

Why does math.sqrt result in ValueError: math domain error?

Why does math.sqrt result in ValueError: math domain error? Question: What causes the problem? from math import sqrt print "a : " a = float(raw_input()) print "b : " b = float(raw_input()) print "c : " c = float(raw_input()) d = (a + b + c)/2 s = sqrt(d*(d-a)*(d-b)*(d-c)) print("a+b+c =", a, b, c) print("Distr. …

Total answers: 4

Python 'requests' library – define specific DNS?

Python 'requests' library – define specific DNS? Question: In my project I’m handling all HTTP requests with python requests library. Now, I need to query the http server using specific DNS – there are two environments, each using its own DNS, and changes are made independently. So, when the code is running, it should use …

Total answers: 4

Python DNS resolver and original TTL

Python DNS resolver and original TTL Question: I need to get original TTL for dns record on each query. DNS resolver shows original ttl only at first query. It shows time to reset cache on each next query. >>> answer = dns.resolver.query(‘www.stackoverflow.com’) >>> print answer.rrset.ttl 300 >>> answer = dns.resolver.query(‘www.stackoverflow.com’) >>> print answer.rrset.ttl 292 How …

Total answers: 2

How can I check the value of a DNS TXT record for a host?

How can I check the value of a DNS TXT record for a host? Question: I’m looking to verify domain ownership via a script, specifically a Python script, and would like know how to lookup the value of a DNS TXT entry. I know there are services and websites out there for this, but I …

Total answers: 5