Multiple NIC Multiple DNS

Handian Sudianto 6,096 Reputation points
2023-12-29T08:58:15.0966667+00:00

Hello,

I have primary NIC with DNS IP address pointed to 192.168.100.1, then on the server i connect to the corporate VPN and this make a virtual NIC with DNS IP address pointed to 10.0.0.8.

When i do nslookup the server use 10.0.0.8 which this is DNS from VPN interface, how we can change primary dns used so the server will lookup DNS to primary interface (192.168.100.1)

Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-01-03T02:32:10.8333333+00:00

    Hi,

    In general, we can change the dns querying by changing the priority order of NICs, use powershell cmdlet such as Set-NetIPInterface with parameters -InterfaceIndex and -InterfaceMetric. However, the query order is affected by multi factors, including group policy, registry etc.

    Below articles just for your reference.

    Configure the Order of Network Interfaces:

    https://learn.microsoft.com/en-us/windows-server/networking/technologies/network-subsystem/net-sub-interface-metric

    DNS Name Resolution in Windows with Multiple Network Interfaces

    https://yogadns.com/docs/interfaces/#easy

    Note: Since the websites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information. 

    Best Regards,
    Karlie Weng


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.