#
# Waterloo TCP/IP sample configuration file.
#
# Use this file as a template to make your own.
# This file should be located in "current directory" or in a directory
# pointed to by the environment variable "WATTCP.CFG".
#
# E.g. Put a copy of this file in "c:\net\watt\bin" and insert this
# line in your AUTOEXEC.BAT:
# set wattcp.cfg=c:\net\watt\bin
#
# Note 1: No trailing `\' at end of line, and no spaces around the `='.
#
# Note 2: The order of keywords/value pairs are significant.
# For instance, if you have "my_dns = 134.121.10.8" in your
# "c:\net\watt\bin\hosts" file, then "hosts = c:\net\watt\bin\hosts"
# MUST be listed before the line specifying your nameserver;
# "nameserver = my_dns". The same rule applies to "gateway" and "cookie"
#
# Note 3: the value (right of `=') is the default if you comment the
# line out. Comments starts with `#' or `;'. To use `#' or `;' inside
# string values, the string MUST be put in quotes.
# E.g. these keywords have different values:
# keyword1 = "hello world #;"
# keyword2 = "hello world "#;
#
# Note 4: The right-side value may contain an environment variable that
# will be expanded when read. The effect is like in makefiles.
# E.g. if environment variable "ETC" is "c:\net\watt\bin",
# "$(ETC)\hosts" becomes "c:\net\watt\bin\hosts" after
# expansion. See "README.TOO" for details.
#
# Note 5: Remember that all this text takes time to parse (especially on
# a 386 or older CPU). Cut down the contents of your "WATTCP.CFG" (not
# this file, a copy) to a minimum to improve speed.
#
#
# Text printed to screen (stdout).
#
# print = "Waterloo TCP/IP setup" ; optional key/value
#
# If using a fixed IP-address, insert the dotted decimal address below.
# If your LAN has a DHCP server, use "my_ip = dhcp".
# Likewise, if you want to get your IP-address via BOOTP or RARP servers.
#
# my_ip = 192.168.1.2 ; really is 0.0.0.0, mandatory
my_ip=dhcp
#
# The name of this host excluding the domain-name.
# Note: may be overridden by DHCP/BOOTP server.
# Max 50 characters.
#
# hostname = "random-pc" ; optional
#
# A better method would be to define it via the environment.
# If djgpp is installed and you have the djgpp `uname' program, then
# use $(COMPUTERNAME) if running under Windows for consistent names
# here.
#
#hostname = $(COMPUTERNAME)
#
# The netmask specifying the sub-net your are on.
# Note: may be overridden by DHCP/BOOTP server.
#
netmask = 255.255.255.0 ; mandatory if not using DHCP
#
# IP-address (or name) of DNS host(s). The DNS host's job is to
# translate hostnames to IP-addresses if the hostname isn't listed
# in "$(ETC)\hosts".
#
# Notes: DHCP/BOOTP servers may add additional nameservers to the one(s)
# you specify here.
# There are no default server. There can be a total of 10
# nameservers. All nameserver are queried in sequence until an
# IP-address is returned. Enter the "fastest" (closest) nameserver
# first for best result.
#
# nameserver = 0.0.0.0 ; primary DNS, mandatory if not using DHCP
# nameserver = 0.0.0.0 ; secondary DNS, optional
#
# The IP-address (or name) of your gateway.
# If you are running DOS-PPP with EtherNet emulation this should be
# replaced with $(REMIP). For SLIP or normal PPP, gateway is not used.
#
# The syntax is "ip-addr [,subnet [,mask]]"
#
# Notes: Will most likely be overridden by DHCP/BOOTP server.
# The ARP-routing table is limited to 12 gateways.
#
# gateway = 0.0.0.0 ; mandatory if not using BOOTP/DHCP
...以下略.作者: 寒稞 时间: 2003-4-19 00:00 我的lynx再c盘aaa目录,运行下列命令:
lynx -cfg=c:\aaa\lynx.cfg www.163.com
则会显示
Looking up www.163.com first
Looking up www.163.com.com, guessing...
Looking up www.163.com.edu, guessing...
Looking up www.163.com.net, guessing...
Looking up www.163.com.org, guessing...
Can't Access `file://localhost/c:/aaa/www.163
Alert!: Unable to access document.