Re: Kerberos5 + SSH Questions



On Tue, Jan 04, 2011 at 07:31:37PM +0800, Lee Eric wrote:
So how do I know what client/server gets the idea of the server host
name? It looks like reverse map works well and they can get the same
IP/Address.

On the server, type "hostname". If it returns anything other than
ns.herdingcat.internal, correct it. Depending on your O/S this may be
something like

# echo "ns.herdingcat.internal" >/etc/hostname
# hostname ns.herdingcat.internal

On both the client and server, check that

$ dig ns.herdingcat.internal
$ dig -x 172.16.14.1

give the right results (names maps to IP, and IP maps to name).

Check /etc/hosts on both machines. Either there should be no entry for this
box, or if there is one, the FQDN should be the first listed name.

172.16.14.1 ns.herdingcat.internal # OK
172.16.14.1 ns.herdingcat.internal ns # OK
172.16.14.1 ns ns.herdingcat.internal # WRONG

Regards,

Brian.
.



Relevant Pages

  • host $(/bin/hostname) differs from gethostbyname(HOSTNAME)
    ... Can someone explain the algorithm that the host command uses ... On my server, /etc/hosts maps 127.0.0.1 to HOSTNAME, and ... host command, when given HOSTNAME, returns the actual IP address. ... Is the host command going directly to the DNS server to get the IP ...
    (comp.unix.admin)
  • /usr/bin/host $(/bin/hostname) differs from gethostbyname(HOSTNAME)
    ... Can someone explain the algorithm that the host command uses ... On my server, /etc/hosts maps 127.0.0.1 to HOSTNAME, and ... host command, when given HOSTNAME, returns the actual IP address. ... Is the host command going directly to the DNS server to get the IP ...
    (comp.unix.programmer)
  • Re: Kerberos5 + SSH Questions
    ... On the server, type "hostname". ... $ dig ns.herdingcat.internal ... give the right results (names maps to IP, ...
    (comp.protocols.kerberos)
  • Re: OWA 2000 mit Umlauten im Betreff
    ... RejectResponseUrl or allow IIS to log the request ... Request headers listed in this section will cause UrlScan to ... Extensions listed here are commonly used on a typical IIS server. ... Maps to webhits.dll, part of Index Server ...
    (microsoft.public.de.german.exchange2000.general)
  • Re: UID/GID mapping system
    ... >> The server cannot trust the clients to do the right thing. ... > The server can't trust the client as it is now anyway. ... Second, if the various organizations are mapped, then only maps (and ... Any uid/gid from a remote host is mapped to ...
    (Linux-Kernel)