I have a VM in AWS. I has two ethernet interfaces, which have different security groups applied to them. One of those security groups white-lists all sorts of machine addresses in my domain. When resolving the machine's fully-qualified domain name, I want the interface with the domain-friendly security to be resolved, however at present it's the other interface that's being resolved.
When enumerating the ethernet interfaces using netsh interface ipv4 show interfaces
, the unfriendly interface happens to be listed first in order of Idx:
Idx Met MTU State Name
--- ---------- ---------- ------------ ---------------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
13 20 1500 connected Local Area Connection 2
15 20 1500 connected Local Area Connection 1
Based on the absence of better information, I might guess that Windows is just picking the first ipv4 interface it finds in this list when being asked to resolve the machine name. Is this the case? If so, is it possible to reorder this list? I poked around in the netsh help info but I couldn't find anything.