Link to home
Start Free TrialLog in
Avatar of jbobst
jbobst

asked on

Windows Computer with 2 IP addresses - how does DNS handle it?

We've had a few end user complaints recently where the user is trying to remote desktop their laptop from a remote location in the office (like a lab or some other cube) and the remote desktop connection won't work because the DNS server thinks their computer is at one IP address, but maybe their laptop is on wireless at the moment and DNS won't resolve their computer name to the wireless IP.    If their LAN IP is registered on the DNS server as 192.168.1.50 (for example), and their wireless IP is 192.168.1.242, Windows DNS only seems to "know" one of the IP addresses...usually the LAN.  So in the above scenario, they can remote desktop the wireless IP address (not the computer name) and remote desktop will work.  Of course, who really knows what the numeric wireless IP address is when it's dynamic.  I hope I've explained the issue properly, and I don't understand Windows server/Windows DNS enough to know how to fix this so the users can always use remote desktop to their computer name, regardless of how the laptop is connected to the LAN.  Any ideas?
Avatar of Deadman
Deadman
Flag of India image

Create VPN server for your remote users to connect remote desktop connection

http://technet.microsoft.com/en-us/library/cc725734(v=ws.10).aspx
http://technet.microsoft.com/en-us/library/cc770798(v=ws.10).aspx

and create vpn connection in remote users laptop.

http://support.microsoft.com/kb/314076
Avatar of jbobst
jbobst

ASKER

Deadman, I think you are missing my question...probably my fault since it's somewhat difficult to explain over text.  VPN is not the issue here...the scenario I tried to explain was all happening in our main office building.  Nobody is remote in the sense that they are working from home or in a hotel.  We have many lab facilities where our engineers will work on lab computers (usually desktop machines running windows).  They will occasionally want to open up a remote desktop session back to their laptop computer which is sitting on their desk in their cubical (in the same building on the same LAN).  They could walk to their desk, but our building has multiple floors and can take awhile to walk from their cube/desk back to the lab.

My question is this - a laptop, when on wireless and plugged into a physical ethernet connection has two IP addresses.  If another computer in the building on the same LAN does a "ping" command to this laptop by pinging their computer name (host name), the DNS resolves to one of the IP addresses, usually the physical ethernet port.  IF the ethernet cable is unplugged, and the laptop is ONLY on wireless, and we ping the host name from a machine elsewhere in our building, the ping will time out and not resolve, because DNS is trying to resolve the host name to the Ethernet IP address...which is currently unplugged.  However, if we look at the wireless IP address of the laptop and ping the numeric address, we get a reply with no problem.  We could also do a remote desktop session to the laptop's wireless IP with no problem, but the users rarely know the wireless IP, where as they do know their computer name.  So, given this scenario, WHY doesn't DNS somehow try both IP addresses when it tries to resolve a host name?
ASKER CERTIFIED SOLUTION
Avatar of DrDave242
DrDave242
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial