Re: proper way to change ip and hostname
Brian Kimball wrote:
> Others have already led you in the right direction. To summarize:
>
> 1) change IP address: edit interface information in
> /etc/network/interfaces
> 2) change hostname: edit /etc/hostname and /etc/hosts
> 3) update nameserver information in /etc/resolv.conf or
> /etc/network/interfaces if you use the resolvconf package.
Good
> But that only handles the bare minimum. You will also need to
> reconfigure any software that has your old hostname, IP address,
> netmask, network address, etc., hardcoded in its config files.
> In this case grepping everything in /etc is the only sure-fire
> way to remember what needs to be changed and what doesn't.
But in many cases the software should have been configured to
use "localhost" anyway, and this name -- the canonical hostname
corresponding to IP address 127.0.0.1, never changes.
Matthew Lenz wrote:
> The only other difference I could see is that etherconf puts
> the FQDN in /etc/hostname rather than just the host name.
Arrgh. I'll file a bug report about that. It is possible to
have a FQDN as one's system hostname, but this is not Debian
tradition and Debian configuration tools should be consistent.
--
Thomas Hood
Reply to: