0
votes
2answers
373 views

How to parse dhcpd.conf files with python and bicop?

I want to edit files (dhcpd.conf, dns files) with python. I was looking for any option and i found bicop library. I try to do: from bicop import parse parse("/home/tigov/dhcp/dhcpd.conf") and i ...
1
vote
2answers
29 views

Does twisted epollreactor use non-blocking dns lookup?

It seems obvious that it would use the twisted names api and not any blocking way to resolve host names. However digging in the source code, I have been unable to find the place where the name ...
2
votes
1answer
1k views

Persistent DNS caching not utilized by Python's socket.getaddrinfo/mercurial

I used to have very slow DNS lookups on my Ubuntu machine when connecting through one Modem/ISP. I followed instructions (such as those here) to use persistent DNS caching so I don't do repeated DNS ...
13
votes
6answers
16k views

how to extract domain name from URL

how would you extract the domain name from a URL, excluding any subdomains? My initial simplistic attempt was: '.'.join(urlparse.urlparse(url).netloc.split('.')[-2:]) This works for ...
1
vote
2answers
1k views

Python DNS Server

I am adding a feature to my current project that will allow network admins to install the software to the network. I need to code a DNS server in Python that will allow me to redirect to a certain ...
0
votes
0answers
20 views

How to delete a dyanmic DNS record using Python or Bash?

The Following code in python updates import dns.query import dns.tsigkeyring import dns.update import sys keyring = dns.tsigkeyring.from_text({'host-example.' : 'XXXXXXXXXXXXXXXXXXXXXX=='}) update ...
0
votes
1answer
61 views

Python's email sending slow only on certain net connections - getfqdn takes 30 seconds

I am experiencing a problem on my dev machine (MacBook Air with MacOS 10.8.3) with sending email. It is painfully slow. However, the slowness is dependent on how I connect to the internet. If I am on ...
1
vote
1answer
52 views

OpenERP 6.0.4 XML Domain by Python Context List

I've been trying to create a domain filter on an XML domain for the past few days with no positive results as yet. I have a field on my form tied to a function def _return_reviewer_exempt(self, cr, ...
0
votes
1answer
43 views

Handle error on a simple DNS Twisted Client

The following DNS async client works fine if all domains exist. However, if a domain name doesn't exist, the DNSNameError exception is raised and isn't not catched by my "try except" block. Then, ...
1
vote
2answers
86 views

DNS query using Google App Engine socket

I'm trying to use the new socket support for Google App Engine in order to perform some DNS queries. I'm using dnspython to perform the query, and the code works fine outside GAE. The code is the ...
0
votes
0answers
46 views

Python - Parsing DNS data gives “Invalid name at offset 12”

I've managed to recieve, parse and understand what the different data types sent from the client is all about, however.. When the server is supposed to respond with data to a request i'm not quite ...
4
votes
2answers
3k views

Domain Registration API

At my company I have to do a lot of domain registration. Is there a way for me to write something in a common web-language e.g. Ruby/Python/PHP that would allow me to buy a domain name from my own ...
0
votes
1answer
53 views

asynchronous DNS resolver using asyncore

Is there any way to make DNS resolving using Python with asyncore? I can not install adns and I do not like to use gevent library. (for URL downloading gevent give me slow performance than ...
2
votes
2answers
333 views

Querying TXT records (DNS) from app engine python

Is there a way to query the DNS for a particular a txt record given the domain name from app engine .. I looked into pydns, but then "socket" is not available on app engine ..
0
votes
0answers
39 views

Create EDNS packet in python bigger than 512 bytes

I want to use EDNS to create a DNS packet bigger than 512 bytes using the UDP protocol. I have used dnspython to do some DNS requests before, but not using EDNS extension. What I want to do is to ...

1 2 3 4 5 9
15 30 50 per page