tags:

views:

60

answers:

1

ciao!

I am using dns.resolver.

Is it possible to set the ip address of the server to use for the queries ?

Thanks, Massimo

A: 

You don't specify in your question, but assuming you're using the resolver from dnspython.org, the documentation indicates you want to set the nameservers attribute on the Resolver object.

Though it may be easier to provide an /etc/resolv.conf-style file to pass to the constructor's filename argument.

bstpierre