|Beijer Electronics (formerly QSI Corporation)
|Page 1 of 1|
|Author:||harlan [ Thu Oct 16, 2008 6:45 am ]|
Is there a way to emulate the behavior of an LMHOSTS file on the Treq? Corporate security won't pass our DNS through the firewall to the Treq (coming in over a cell connection) and I need to be able to resolve hostnames to addresses in a manual way.
|Author:||brianc [ Tue Oct 21, 2008 12:58 pm ]|
|Post subject:||Re: LMHOSTS?|
This can be done via a registry setting. You will need to add a registry key and value for each host name/IP address pair. For example, the following registry key and value can be used to manually resolve the some_hostname host name to 192.168.0.1.
To test, save a text file with the above 2 lines to a USB memory drive. Name the file <something>.reg. Launch the program \HardDisk\bin\RegEditCE.exe, and use File, Import to import the .reg file. Start a command shell (Start, Programs, Command Prompt), then try to ping some_hostname. The TREQ should resolve the hostname to the correct IP. Note that this test assumes that ICMP ping packets are not blocked by a firewall -- test this by pinging the IP address first to test connectivity.
You can use the Registry API to create these keys and values programmatically (e.g. RegSetValueEx, RegCreateKeyEx).
|Page 1 of 1||All times are UTC - 7 hours|
|Powered by phpBB® Forum Software © phpBB Group