netdb(n) Tnm Tcl Extension netdb(n)_________________________________________________________________NAMEnetdb - Access the local network databases.
_________________________________________________________________DESCRIPTION
The netdb command provides access to network information
that is stored in configuration files, the Network Infor-
mation Service (NIS) or in the Domain Name System (DNS).
The results of the netdb command usually depend on the
local configuration of your operating system.
NETDB COMMANDnetdb hosts
netdb hosts name address
netdb hosts address name
The first version of the netdb hosts command
returns a list of all locally known hosts. Each
element of this list contains a host name and its
IP address. The result is an empty list on many
systems that are configured to use the DNS for
hostname lookups. The second version of the netdb
hosts command converts an IP address into a host
name and the third version of the netdb hosts com-
mand converts a host name into an IP address.
netdb networks
netdb networks name address
netdb networks address name
The first version of the netdb networks command
returns a list of all locally known networks. Each
element of this list contains a network name and
the IP network address. The second version of the
netdb networks command returns the network name
that belongs to the IP network address and the
third version of the netdb networks command returns
the network address that belongs to a given network
name.
netdb protocols
netdb protocols name number
netdb protocols number name
The first version of the netdb protocols command
returns a list of all locally known Internet proto-
cols. Each element of this list contains a protocol
name and its protocol number. The second version of
the netdb protocols command returns the protocol
name that belongs to number and the third version
of the netdb protocols command returns the protocol
number that belongs to a protocol name.
Tnm 1
netdb(n) Tnm Tcl Extension netdb(n)netdb services
netdb services name number protocol
netdb services number name protocol
The first version of the netdb services command
returns the list of all locally known services.
Each element of this list contains a service name,
the service number and the transport protocol. The
second version of the netdb services command
returns the service name for the service described
by number and protocol. The third version of the
netdb services command returns the protocol number
for the service described by name and protocol.
netdb sunrpcs
netdb sunrpcs name number
netdb sunrpcs number name
The first version of the netdb sunrpcs command
lists all locally known Sun RPCs. Each element of
this list contains a RPC name and its registration
number. The second version of the netdb sunrpcs
command returns the RPC name for a given RPC number
and the third version of the netdb sunrpcs command
returns the RPC number for a given RPC name.
netdb ip class address
netdb ip range address mask
The first version of the netdb ip command returns
the IP class of the given address. The following
classes are recognized: A, B, C, D and loopback.
The second version of the netdb ip command returns
the list of IP addresses in the address range given
by address and mask.
SEE ALSOscotty(1), Tnm(n), Tcl(n)AUTHORS
Juergen Schoenwaelder <schoenw@cs.utwente.nl>
Tnm 2