Questions tagged [dnspython]

DNSPython is a Python package that provides high and low level access to DNS.

DNSPython is a Python package that provides high and low level access to DNS. Find more information here: http://www.dnspython.org/

116 questions
1
vote
1 answer

How to use 'relativize' in dnspython but prevent replacing full names with '@'?

I am using the dnspython package. While processing a file and passing relativize=False in dnspython's from_file() function, each name of a record is displayed fully, (e.g. 'smtp.example.com.') I prefer an overview which shows only "smtp" in case of…
Cloud
  • 458
  • 1
  • 13
  • 34
1
vote
1 answer

Will DNSpython use Cache?

I'm using DNSPython library to get DNS resolution time in my script. I've a query on the caching part, that whether this library uses Cache on its own. My requirement is to check how much it takes to resolve DNS from a endpoint. Here's the part of…
1
vote
1 answer

Generate TSIG keyring (as encoded byte string) for DNS Update

I am trying to use python DNS module (dnspython) to create (add) new DNS record. Documentation specifies how to create update http://www.dnspython.org/examples.html : import dns.tsigkeyring import dns.update import sys keyring =…
Majus Misiak
  • 643
  • 7
  • 14
1
vote
1 answer

How to find the number of servers serving domains which end in .com?

How to obtain servers which serve domains which end in .com? For example, a server which serves a.com and a server which servers b.c.com are both counted
arjun goel
  • 11
  • 1
1
vote
1 answer

PyInstaller issue with Pymongo

I'm attempting to make a windows executable that uses Pymongo and Kivy. I'm using PyInstaller to create it. I am using Python 3.6. When I run main.py directly it works as expected but when I attempt to run main.exe it will open the kivy window but…
jonyfries
  • 772
  • 6
  • 20
1
vote
1 answer

In dnspython, given the DNS IP, how to get the DNS zone name

Using the dnspython library, I have this simple code, given the DNS IP, I canquery a domain name. I need to get the zone name of the DNS server. For example, if instead of 8.8.8.8 I have a private IP 192.168.4.5 for zone named com and the server in…
user9371654
  • 2,160
  • 16
  • 45
  • 78
1
vote
1 answer

DNSSEC using dnspython error: AttributeError: 'NS' object has no attribute 'is_absolute'

I have a DNS server for (com) zone. I use BIND 9.10.3 in Ubuntu. I want to use DNSSEC for DNS queries to this server. I have created ZSK and KSK and I have a signed zone file named forward.com.signed. The forward.com.signed file content is the…
user9371654
  • 2,160
  • 16
  • 45
  • 78
1
vote
1 answer

How can I query all IPs for a domain using dnspython

I use dnspython to query a DNS server to resolve a domain name to its IP(s). When I try to resolve "google.co.uk" I get only one IP. However, using another resolver tool I get another IP. Both IPs are correct and I tested them by placing the IPs in…
None
  • 281
  • 1
  • 6
  • 16
1
vote
0 answers

dnspython: Validating DS record from server

I want to validate the DS record of a query response. When I get the response from the server, I use the library provided function like this - >>> ret =…
avee137
  • 421
  • 2
  • 7
  • 15
1
vote
1 answer

How does dig any work?

My general question is how does "dig any" work? In particular, I would like to compare the use of dig to naive sending of multiple equivalent requests (a, txt, mx, ...). Does a single DNS query is sent? Is the use of dig more efficient? Is it…
Gari BN
  • 1,635
  • 2
  • 17
  • 31
1
vote
1 answer

Python: Checking the MX records for a list of domains keeps running, then stopping unless I hit Ctrl+C?

I have an Excel spreadsheet of domains that I need to check for a valid MX record. It runs for the first 10 lines, then pauses, then runs again for the next 10 lines, then pauses, then runs for the next 41 lines, then pauses, so there's not really a…
Sam W
  • 79
  • 2
  • 8
1
vote
1 answer

Do all DNS root servers and top-level-domain servers (TLD) support DNSSEC?

I know that DNSSEC has been widely implemented since 2010. For Authority name servers, it depends on the admin whether he wants to support DNSSEC or not. However, I would like to know whether or not all root name servers, and all TLD servers support…
weefwefwqg3
  • 961
  • 10
  • 23
1
vote
1 answer

query with different name server

I am going to change the default name server of a domain and then get its A records! I tried to use the following code but the problem is that when I use the IP address as name server every thing works but when I used name server name such as…
Alex
  • 303
  • 1
  • 6
  • 17
1
vote
3 answers

python output different when printed to std out than stored in dict

I'm trying to do a zonetransfer with dnspython, and then store the A record's into a dictionary that i can pop values from later. See below: import dns.zone import dns.query from dns.exception import DNSException from dns.rdataclass import * from…
dobbs
  • 1,089
  • 6
  • 22
  • 45
1
vote
2 answers

why cannot I get the authority information with dnspython while nslookup is useful

#code like this import dns import dns.resolver import dns.name import dns.message import dns.query request = dns.message.make_query("google.com",dns.rdatatype.NS) response = dns.query.udp(request,"216.239.32.10") print response.authority but it's…
Nigel Lee
  • 11
  • 2