Re: proper way to change ip and hostname

From: Thomas Hood (jdthood_at_aglu.demon.nl)
Date: 07/27/05

  • Next message: Dave Ewart: "Re: Can't change XF86Config-4 (Sarge)"
    Date: Wed, 27 Jul 2005 11:20:16 +0200
    To: debian-user@lists.debian.org
    
    

    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
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Dave Ewart: "Re: Can't change XF86Config-4 (Sarge)"

    Relevant Pages

    • Re: Why not XML based configurationfiles?
      ... If config files are installed elsewhere, ... if your distro doesn't contain the apps you wan't or versions of the ... You can then control where the config files go. ... The windows registry is almost as bad than ...
      (comp.os.linux.misc)
    • Mouse corruption
      ... and even the kde keyboard mouse emulation - but, ... window: Moving the mouse around within the window just works fine, ... I have not changed any global config ... I also did not change account specific config files explicitely, ...
      (comp.os.linux.x)
    • Re: Why not XML based configurationfiles?
      ... > would be wrapped in xml. ... waste of time learning 100 ways to to edit freaking configfiles. ... Config part, the part that contains the current value for the variable. ... >>I know it's important to acces config files from texteditors. ...
      (comp.os.linux.misc)
    • Re: Make and execute .jar-file
      ... some installer, ... jar in some temporary directory, replace that one file and repack the jar - assuming the user has write permission to the jar, which is not a good idea for a centrally installed application. ... Global application specific config files belong in some location which is shared the same way like the location in which the jar is installed. ...
      (comp.lang.java.programmer)
    • Re: ANN : ConfigObj 3.0.0 - Simple config file parsing
      ... > There have been a couple of config file 'systems' announced recently, ... > reading config files with sections and various other simplifications. ... > Because the programmers interface is the same as the Python ... we've just written a config system for our app that I ...
      (comp.lang.python)