Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

Hosts File

Hi,

Is it possible to have this in a hosts file...

172.16.1.3         notes.mail.com
67.20.25.120     notes.mail.com

I want to do this so that an employee with a laptop can access our mail server internally from the ip 172.16.1.3, but if they try to connect externally, they use 67.20.25.120.  Is this possible?

Ryan
0
NeoTek
Asked:
NeoTek
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
No, it will read the first entry as the IP.  
0
 
kain21Commented:
no... if you're using dhcp to assign the laptop an address you could put the host record in your internal dns and have dhcp assign the internal dns server to the laptop...
0
 
thribhuCommented:
I suggest u to put

172.16.1.3         notes1.mail.com
67.20.25.120     notes.mail.com

hope this is better what do u say...
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
mikeleebrlaCommented:
actually you should just set up your DNS properly that way ANY of your users can get to their mail from inside or outside your lan.   If they are on your lan they should point to your internal dns server and get the internal IP.... if they are outside your lan they should point to any public DNS server and get the public IP.  This is called split DNS.
0
 
elconomenoCommented:
what you can do is write a 2 batfiles, place them on the desktop :



home.bat
copy C:\homehost.txt C:\WINNT\system32\drivers\etc\HOSTS


WORK.bat
copy C:\workhost.txt C:\WINNT\system32\drivers\etc\HOSTS



i added also some netsh commands to change DNS changes in the WORK.bat to
0
 
ezSoftwareCommented:
I use a great piece of software that does many things beyond assigning seperate host files for different locales - mapped network drives, printers, IP address/DHCP, domain, management of multiple communication devices such as wireless or wired, vpn, etc.

I need this software because I connect my laptop to approximately 20 different networks - as many as 4 in one day.

It's the best piece of software I've purchased for my laptop and it wasn't tough on the wallet...

http://www.globesoft.com/      - Multi-Network Manager 7
http://www.globesoft.com/cgi-bin/prices.asp?ShortDesc=mnm7     - pricing


0

Featured Post

Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now