JF Mezei <> wrote:
> Used the system preferences to change my server's name (and updated all
> the DNS info).
>
> The DNS stuff works fine, including reverse DNS.
>
> However, when I get to the command line, the prompt still shows the old
> host name (the "\h in the prompt string (valiable PS1 in bash).
>
> Anyone know where the Unix portion of a mac gets its host name ? (which
> is used for stuff like the \h).
>
> (This is on an Xserve, so perhaps it behaves a bit differently from a
> real mac)
From past experience, the hostname is obtained by a DNS reverse lookup,
so perhaps the old name has stuck in a DNS server.
(I had a problem where my ISP's DNS server had an inapporpriate entry
belonging to a different customer in the 192.168.0 range, which happened
to match the IP address I was using for one computer on my home network,
so every time I used my laptop at home I got a funny name assigned to
it. It appears they have now fixed it.)
What do you get if you do a reverse lookup on your IP address, e.g.
dig -x 192.168.0.1
(substitute your server's IP address on its primary network interface).
--
David Empson