[comp.protocols.tcp-ip.ibmpc] Does the latest KA9Q use HOSTS.NET ?

bill@polygen.UUCP (Bill Poitras) (01/10/90)

Does the latest version of KA9Q (v9000105A NOS) do static host table lookups?
When I have the HOSTS.NET in my root directory on C:\ and then I type 
'ftp fred', I get 'Unknown host fred', but fred is in my HOSTS.NET.  If KA9Q
doesn't do static host table lookups, does it do name resolving through domain
servers?  Any help would greatly be appreciated.


+-----------------+---------------------------+-----------------------------+
| Bill Poitras    | Polygen Corporation       | {princeton mit-eddie        |
|     (bill)      | Waltham, MA USA           |  bu sunne}!polygen!bill     |
|                 |                           | bill@polygen.com            |
+-----------------+---------------------------+-----------------------------+

skl@van-bc.UUCP (Samuel Lam) (01/10/90)

In article <661@fred.UUCP>, bill@fred.UUCP (Bill Poitras) wrote:
>Does the latest version of KA9Q (v9000105A NOS) do static host table lookups?
>When I have the HOSTS.NET in my root directory on C:\ and then I type 
>'ftp fred', I get 'Unknown host fred', but fred is in my HOSTS.NET.  If KA9Q
>doesn't do static host table lookups, does it do name resolving through domain
>servers?

The NOS version no longer uses HOSTS.NET, however, you can use both a static
host table or domain name servers with it.

To use domain name servers, add some "domain addserver SERVER" commands
to the AUTOEXEC.NET file to declare the your domain name servers.

To use a static host table, simply don't declare any domain name servers
in AUTOEXEC.NET but instead create a file named DOMAIN.TXT in the root
directory with lines of the form:

   (NAME) 99999999 IN A (IP)

where

   (NAME) is a remote host's domain name, with the trailing dot.
   (IP)   is that remote host's IP address, without the []'s.

For example:

   van-bc.wimsey.bc.ca. 99999999 IN A 128.189.233.155

Additonally, You could also use a mixture of the two methods.  i.e. Have
a static host table and use the domain name servers if the domain name
is not in the static table.  For example, you can put your domain name
servers' IP addresses in the static table so that you can refer to them
using their domain names instead of their IP addresses in your
"domain addserver" commands.

...Sam
-- 
Internet: <skl@wimsey.bc.ca>	UUCP: {van-bc,ubc-cs,uunet}!wimsey.bc.ca!skl

karn@jupiter..bellcore.com (Phil R. Karn) (01/13/90)

In article <34781@mirror.UUCP> skl@van-bc.UUCP (Samuel Lam) writes:
>To use a static host table, simply don't declare any domain name servers
>in AUTOEXEC.NET but instead create a file named DOMAIN.TXT in the root
>directory with lines of the form:
>
>   (NAME) 99999999 IN A (IP)

Actually, the dummy TTL field isn't really required. You can enter records
like this:

foo.bar.com.	IN	A	1.2.3.4

and they will be interpreted as having TTLs of infinity.

Of course, all this is moot since I don't yet implement the timing out of
resource records...

Phil