OK, sorry I made a mistake. Here's the deal. The problem
is that the client does a HOSTS file loookup first then it
does a dns server lookup next. Here is the reasoning why
I want to change this.
Problem is that we have internal and external dns
servers. On our internal server we have a dns entry for
our email server with the private ip address so that the
users can connect using the email client software using a
domain name for the email server. On our external server
we do not have an entry for or email server due to
security reasons. To get around this, we can add an entry
in the hosts file for the email server. Now here in lies
the problem. When the laptop users comes back to the
office the user will attempt to connect to the email
server but when it does a name lookup for the email server
it will try connecting to the email server using the
external address due to the HOSTS file.
So basically if we change the lookup order to the DNS
server first this would resolve the problem because when
the user is outside it will fail the dns server lookup and
then fall back to the HOSTS file. At that point it will
connect using the external IP address. But when the user
is internal it will get the internal address for the email
server from the internal dns server.
I hope this clears things up.