WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Winsock
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Keywords: 

Question:

I am trying to write a script for Telnet. This is basically for logging into our Routers by Telnet and do some upgrades. I used the extenders and wrote a tool. But this is not working properly.

Problem:

Even though I give the IP address of the router (Telnet server), it is sending the quiry to the DNS server, which will not resolve, because the IP address of the router is a private IP address. I am not able to come out from this problem.

Please help me on this.

How can we use these kind of operations by using the Windows DLL's. Please explain. If possible, send some sample scripts..

Answer:

  1. The WInSock extender really really wants a DNS served IP address. However many people have found that by simply putting an entry fo that IP address in your HOSTS file you can circumvent the need for a DNS lookup.

    Look for a HOSTS.SAM file in your Windows directory and examine it. It usually has some comments that tell you how to set it up.

    I think you have to reboot to make it effective.

  2. HOSTS.SAM file: In Win95/98, it's in your Windows subdirectory. In WinNT, it's in \WinNT\System32\ in some subdirectory (search for HOSTS.SAM). Instructions on how to add the entry are in the file. It's a tab-delimited list.

Article ID:   W14561
Filename:   Non-DNS served IP addresses and Winsock.txt
File Created: 2000:10:18:10:37:52
Last Updated: 2000:10:18:10:37:52