nbtodns(1Mtcp)


nbtodns, dnstonb -- convert NetBIOS and DNS names

Synopsis

nbtodns [-d] NetBIOS_name

dnstonb DNS_name

Description

Before you can use DNS to resolve NetBIOS names, you must make sure that the names you want to add are encoded in a form acceptable to DNS. The nbtodns command enables you to generate a DNS encoded name from a NetBIOS name. The -d option of nbtodns and the dnstonb command both enable you to decode a DNS encoded name back into a valid NetBIOS name.

Since NetBIOS names can contain spaces and non-printable characters it is usually best to enclose the name in quotes when you specify NetBIOS_name. Non-printable characters should be represented in hexadecimal format by specify two digits following a ``\0x'' prefix.


NOTE: The DNS Manager performs automatic encoding and decoding of NetBIOS names. It is recommended, that whenever possible, you use the DNS Manager instead of nbtodns for converting NetBIOS names.

Examples

To convert a NetBIOS name ``1demonstration\0x00\0x1c'', use the following command:

nbtodns "1demonstration\0x00\0x1c"

The resulting DNS name would be:

   DBGEGFGNGPGOHDHEHCGBHEGJGPGOAABM
To convert the same DNS name back to a NetBIOS name, use either of the following commands:

nbtodns -d DBGEGFGNGPGOHDHEHCGBHEGJGPGOAABM

or

dnstonb DBGEGFGNGPGOHDHEHCGBHEGJGPGOAABM

The resulting NetBIOS name would be the same for both commands:

   "1demonstration\0x00\0x1c"

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004