Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Background

My VPN connection does not have its own Network adapter as a result all DNS queries are sent down my Internet connection. My VPN connection works fine handling requests to a specific IP address range: 192.168.x.x.

The Question

I want to specify my Server in my outlook account settings using an IP address so Outlook can connect to Exchange over my VPN. However when I change the setting it goes off finds the host names and uses that instead - as a result when trying connect over VPN cannot connect as cannot resolve the host name. How can I force it to use the IP address??

enter image description here

share|improve this question
    
how about making a host file entry? –  SpacemanSpiff Jan 24 '12 at 5:51
    
please tell me more.. –  user55029 Jan 24 '12 at 6:07
1  
Do people still make hostfile entries? This leads mostly to problems. What OS ar you using? How do connect to the VPN? Usually you can manage the vpn-connection itself and configure your DNS-Servers. –  Tom Jan 24 '12 at 7:35
1  
A hostfile is used for local resolution and takes precedence of DNS, WINS, broadcast, everything. To solve a simple problem on a single computer it is more than adequate to the task. Edit C:\Windows\system32\drivers\etc\hosts and put the name of your server in. Keep in mind, this will no longer resolve the public address unless you remove the entry. –  SpacemanSpiff Jan 24 '12 at 14:14
    
awesome - it is only for a few developers - if you put it in an answer I can mark it as correct –  user55029 Jan 25 '12 at 0:36
add comment

1 Answer 1

up vote 3 down vote accepted

Add an entry to the Windows host file: http://en.wikipedia.org/wiki/Hosts_file, which will make Windows use the IP address you specify instead of querying DNS when resolving the host.

For example:

192.168.0.254   my_exchange_server.domain.local

Works perfectly!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.