how to ask different DNS for gethostbyname?
Martin v. Löwis
loewis at informatik.hu-berlin.de
Wed Mar 20 11:17:06 CET 2002
koji at twinsun.com (Koji Nobumoto) writes:
> Is there any way to use a DNS which is not looked up
> when I just use the socket.gethostbyname(), without
> changing /etc/resolv.conf or any system configuration?
No. You need, at a minimum, access to the systems resolver library,
which is not exposed in standard Python. Better yet, you should use a
Python DNS package - that will allow you to use all tuning you want.
More information about the Python-list