Eu tenho o Virtual Box instalado no meu computador com Windows 8 e, como tal, tenho alguns adaptadores de rede virtual
Meu problema é que quando eu faço ping sedtdev1510
ou programaticamente resolvo o IP, a partir do computador local, o IP de um dos adaptadores de rede virtual é retornado em vez do IP do adaptador físico.
Exemplo:
ping -4 sedtdev1510 Pinging SEDTDEV1510.euse.local [192.168.56.1] with 32 bytes of data: Reply from 192.168.56.1: bytes=32 time<1ms TTL=128
O IP esperado é 172.16.5.126
O DNS parece estar OK, pois o nslookup retorna o IP correto:
nslookup sedtdev1510 Server: ad01.euse.local Address: 172.16.1.1 Name: sedtdev1510.euse.local Address: 172.16.5.126
Então, minha pergunta é: por que o Windows se comporta dessa maneira e o que eu preciso fazer para que meu nome de host resolva localmente para o IP do adaptador físico?
Esta é a saída do ipconfig / all
Windows IP Configuration Host Name . . . . . . . . . . . . : SEDTDEV1510 Primary Dns Suffix . . . . . . . : euse.local Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : euse.local Ethernet adapter Ethernet: Connection-specific DNS Suffix . : euse.local Description . . . . . . . . . . . : Intel(R) Ethernet Connection I217-LM Physical Address. . . . . . . . . : 98-90-96-B4-66-E1 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::fd26:be25:db3b:6838%3(Preferred) IPv4 Address. . . . . . . . . . . : 172.16.5.126(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.0.0 Lease Obtained. . . . . . . . . . : den 15 december 2015 14:14:24 Lease Expires . . . . . . . . . . : den 16 december 2015 15:07:45 Default Gateway . . . . . . . . . : 172.16.0.1 DHCP Server . . . . . . . . . . . : 172.16.0.1 DHCPv6 IAID . . . . . . . . . . . : 60330134 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-9C-48-85-98-90-96-B4-66-E1 DNS Servers . . . . . . . . . . . : 172.16.1.1 172.16.1.2 8.8.8.8 NetBIOS over Tcpip. . . . . . . . : Enabled Ethernet adapter VMware Network Adapter VMnet1: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1 Physical Address. . . . . . . . . : 00-50-56-C0-00-01 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::2854:e80e:b60b:416f%5(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.146.1(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : DHCPv6 IAID . . . . . . . . . . . : 134238294 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-9C-48-85-98-90-96-B4-66-E1 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS over Tcpip. . . . . . . . : Enabled Ethernet adapter VMware Network Adapter VMnet8: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8 Physical Address. . . . . . . . . : 00-50-56-C0-00-08 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::14a6:6a9e:ed93:df80%7(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.147.1(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : DHCPv6 IAID . . . . . . . . . . . : 167792726 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-9C-48-85-98-90-96-B4-66-E1 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS over Tcpip. . . . . . . . : Enabled Ethernet adapter VirtualBox Host-Only Network: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter Physical Address. . . . . . . . . : 0A-00-27-00-00-00 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::e552:b8e2:3ff1:32d4%9(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : DHCPv6 IAID . . . . . . . . . . . : 201981991 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-9C-48-85-98-90-96-B4-66-E1 DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 NetBIOS over Tcpip. . . . . . . . : Enabled Tunnel adapter isatap.{51CFEB66-3366-4CA4-8423-EDB63EFBCB68}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter isatap.{FA326420-7A0D-4FA4-A1C1-75293D8D172A}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2 Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter isatap.{31E7A592-72C8-4AAF-8B5E-9032E0D73A1F}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : euse.local Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3 Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes Tunnel adapter isatap.{9E609FF1-63E3-4C97-BE96-EFE454AE4065}: Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4 Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0 DHCP Enabled. . . . . . . . . . . : No Autoconfiguration Enabled . . . . : Yes
Tags dns networking virtualbox windows-8