home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
NETWORK
/
ISP
/
bind.4.8.3.lzh
/
BIND483
/
Readme.OSK
< prev
Wrap
Text File
|
1994-09-23
|
3KB
|
69 lines
Here is the resolver library and some tools (including nslookup) for
OSK. They were compiled under OSK ver. 2.4 using ISP ver. 1.3 with the
GNU gcc2 compiler ver. 2.5.8 and using PD dmake (available in the PD
ksh package on chestnut.cs.wisc.edu).
I tried to mark the changes by "#ifdef OSK" so you can find them by
searching for the string "OSK". If I had to change the entire file, the
original is left with the suffix ".org".
An essential part of the resolver library is select() that can also
work on socket paths. The Microware implementation of sockets is crippled -
it does not support the _ss_ssig, so select() was obtained by using the
existing PD implementation by the Munich TOP group and adding a combination
of events and alarms. This select() works for several standard (SCF, PIPE)
paths and for one network (SOCKMAN) path. It can be generalized to many network
paths by creating a separate event for each path. Right now the calling
program has to create an event. See the source of nsquery.c to find out how
this can be done.
A good reference on the subject is the book by P. Albitz and C. Liu,
"DNS and BIND", O'Reilly 1992. Examples from this book are included here
in the subdirectory EXAMPLES.
Several compiled programs are included in directory CMDS. They include:
nslookup, nsquery (from the original BIND sources) and checksoa (to check
the source of authority, from the book quoted above). To use them you
have to create first the file /h0/resolv.conf. Here is an example:
;
; /etc/resolv.conf
;
domain desy.de
nameserver 131.169.200.2
Replace here "desy.de" by your own domain and the IP address by the IP
address of your name server.
Then you can try:
nsquery ftp.funet.fi
or
checksoa if.uj.edu.pl
The manual pages can be found in subdirectory MAN in nroff format. I have
added PostScript versions for your convenience.
To save some space I removed from DOC the texts of RFC's 920, 974, 1032,
1033, 1034, 1035 and 1101 included in the original. If needed, they can be
easily found elsewhere.
BUGS :
- the resolver library works only in the TCP protocol (and now defaults
to it). I could not find the reason why it does not work in the UDP
protocol - it seems that the OSK machine generates port number 0 in
the UDP packet.
- nslookup when used in the interactive mode wants sometimes two CR at
the end of line. Even to get to this stage I had to replace by hand
read() by readln() in command.c (which is the flex output from command.l).
Andrzej Kotanski
(kotanski@zeus02.desy.de)
Cracow, Poland, September 23, 1994