I am using
Although this is somewhat of an old thread, I will jump in. I've bumped against the same challenge and I thought I would share the solution. So, basically the config file would populate the 'nameservers' instance variable of the dns.resolver.Resolver you are using. Hence, if you want to coerce your Resolver to use a particular nameserver, you can do it direcly like this:
import dns.resolver my_resolver = dns.resolver.Resolver() # 184.108.40.206 is Google's public DNS server my_resolver.nameservers = ['220.127.116.11'] answer = my_resolver.query('google.com')
Hope someone finds it useful.