|
|
|
|
Where the long (FQDN) form of a hostname works but the short name doesn't (for example,
client.example.com works but
client doesn't), consider the following:
-
DNS:
This usually indicates there is no default domain in which to look up the short names. Look for a
default line in
/etc/resolv.conf on the Samba server with your domain in it, or a
search line with one or more domains in it. One or the other may need to be present to make short names usable; which one depends on vendor and version of the DNS resolver. Try adding
domain
your domain to
resolv.conf and ask your network or DNS administrator what should have been in the file. -
Broadcast/WINS:
Broadcast/WINS doesn't support long names; it won't suffer from this problem. -
NIS:
Try the command
ypmatch
hostname
hosts . If you don't get a match, your tables don't include short names. Speak to your network manager; short names may be missing by accident, or may be unsupported as a matter of policy. Some sites don't ever use (ambiguous) short names. -
NIS+ :
Try
nismatch
hostname
hosts , and treat failure exactly as with NIS above. -
hosts:
If the short name is not in
/etc/hosts, consider adding it as an alias. Avoid, if you can, short names as primary names (the first one on a line). Have them as aliases if your system permits. -
LMHOSTS:
LAN Manager doesn't support long names, so it won't suffer from this problem.
On the other hand, if the short form of the name works and the long doesn't, consider the following:
-
DNS:
This is bizarre; see your network or DNS administrator, as this is probably a DNS setup bug. -
Broadcast/WINS:
This is a normal bug; Broadcast/WINS can't use the long form. Optionally, consider DNS. Microsoft has stated that they will switch to DNS, though it's not providing name types like <00>. -
NIS:
If you can use
ypmatch to look up the short form but not the long, consider adding the long form to the table as at least an alias. -
NIS+:
Same as NIS, except you use
nismatch instead of
ypmatch to look up names. -
hosts:
Add the long name as at least an alias, and preferably as the primary form. Also consider using DNS if it's practical. -
LMHOSTS:
This is a normal bug. LAN Manager can't use the long form; consider switching to DNS or
hosts.
|
|
|