I looked for an option to pass user defined name server (via adns.init) and it
took to me some time to understand following:
1. debugfileobj is file handler like: open('/tmp/adns.log', 'a'). This was hard
to figure out, as python interpreter return some bullshit like: 'TypeError:
must be (unspecified), not str'.
Only looking at module sources made to understand to pass file handler.
2. configtext is text in resolv.conf format like: 'nameserver 8.8.8.8'
3. Also there is a typo in doc string, as arguments wrapped in a list...
Incorrect (current) - s.adns.init([initflags,debugfileobj=stderr,configtext=''])
Correct - adns.init(initflags,debugfileobj=stderr,configtext='')
Original issue reported on code.google.com by 0x6d3...@gmail.com on 15 Nov 2014 at 1:28
Original issue reported on code.google.com by
0x6d3...@gmail.com
on 15 Nov 2014 at 1:28