win32, multiple nic, different dns per nic, how gethostbyname() behaves ?

Posted by dweeves on Server Fault See other posts from Server Fault or by dweeves
Published on 2009-10-02T20:26:42Z Indexed on 2010/03/18 10:01 UTC
Read the original article Hit count: 285

Filed under:
|

Hello SF,

On a win32 multiple nic computer, how to force DNS resolving through gethostbyname() on a specific nic if all nics have different DNS configured and have the same metric ?

Otherwise, how to know which DNS will be used to resolve names each time a gethostbyname() call will be performed by the application ?

© Server Fault or respective owner

Related posts about networking

Related posts about Windows