Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


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