NAME
Tnm::netdb - Access local network databases.
DESCRIPTION
The Tnm::netdb command provides access to network information that is stored in configuration files, the Network Information Service (NIS) or in the Domain Name System (DNS). The results of the Tnm::netdb command usually depend on the local configuration of your operating system.
NETDB COMMAND
- Tnm::netdb hosts
- Tnm::netdb hosts name address
- Tnm::netdb hosts address name
- Tnm::netdb hosts aliases address
-
The first version of the Tnm::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 Tnm::netdb hosts command converts an IP address into a host name and the third version of the Tnm::netdb hosts command converts a host name into an IP address. The fourth version of the Tnm::netdb hosts command returns a list of all known aliases for an IP address.
- Tnm::netdb networks
- Tnm::netdb networks name address
- Tnm::netdb networks address name
- Tnm::netdb networks aliases address
-
The first version of the Tnm::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 Tnm::netdb networks command returns the network name that belongs to the IP network address and the third version of the Tnm::netdb networks command returns the network address that belongs to a given network name. The fourth version of the Tnm::netdb networks command returns a list of all known aliases for an IP address.
- Tnm::netdb protocols
- Tnm::netdb protocols name number
- Tnm::netdb protocols number name
- Tnm::netdb protocols aliases number
-
The first version of the Tnm::netdb protocols command returns a list of all locally known Internet protocols. Each element of this list contains a protocol name and its protocol number. The second version of the Tnm::netdb protocols command returns the protocol name that belongs to number and the third version of the Tnm::netdb protocols command returns the protocol number that belongs to a protocol name. The fourth version of the Tnm::netdb protocols command returns a list of all known aliases for a protocol number.
- Tnm::netdb services
- Tnm::netdb services name number protocol
- Tnm::netdb services number name protocol
- Tnm::netdb services aliases number protocol
-
The first version of the Tnm::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 Tnm::netdb services command returns the service name for the service described by number and protocol. The third version of the Tnm::netdb services command returns the protocol number for the service described by name and protocol. The fourth version of the Tnm::netdb services command returns a list of all known aliases for a given service number and protocol.
- Tnm::netdb sunrpcs
- Tnm::netdb sunrpcs name number
- Tnm::netdb sunrpcs number name
- Tnm::netdb sunrpcs aliases number
-
The first version of the Tnm::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 Tnm::netdb sunrpcs command returns the RPC name for a given RPC number and the third version of the Tnm::netdb sunrpcs command returns the RPC number for a given RPC name. The fourth version of the Tnm::netdb sunrpcs command returns a list of all known aliases for a given RPC number.
- Tnm::netdb ip apply address mask
- Tnm::netdb ip broadcast address mask
- Tnm::netdb ip class address
- Tnm::netdb ip compare mask mask
- Tnm::netdb ip range address mask
-
The first version of the Tnm::netdb ip command applies the mask to the address and returns the resulting subnet. The Tnm::netdb ip broadcast command applies the mask to the address and returns the resulting broadcast address. The netdb ip class command returns the IP class of the address argument. The following classes are recognized: A, B, C, D and loopback. The Tnm::netdb ip compare command compares two masks and returns -1, 0 or 1, depending on whether the first mask is smaller, equal or greater than the second mask. The Tnm::netdb ip range command returns the list of IP addresses in the address range given by address and mask.
SEE ALSO
AUTHORS
Juergen Schoenwaelder <[email protected]>