Re: Setting up network

From: Daniel Bye (freebsd-questions_at_slightlystrange.org)
Date: 04/01/05

  • Next message: Perttu Laine: "Re: ata driver."
    Date: Fri, 1 Apr 2005 12:50:04 +0100
    To: freebsd-questions@freebsd.org
    
    
    

    On Thu, Mar 31, 2005 at 10:26:13PM -0500, Anthony M. Agelastos wrote:
    > Hello all,
    >
    > While we are on the topic, after the hostname and domain have been
    > setup from the initial installation, how can they be changed? I went
    > through the FreeBSD manual and some Google searching and did not come
    > up with anything that made any sense. I assume there are files to be
    > edited, probably under /etc. I am just not sure what all of them are.
    > Any assistance (or reference to a site that will explain this to me)
    > will be greatly appreciated (I am a newbie to UNIX and especially
    > FreeBSD).

    In /etc/rc.conf, the variable $hostname sets the machine's name at
    startup. Simply edit the value set here, and next time the machine
    starts up, the new hostname will be set.

    To change it in a running system without rebooting, use hostname(1):

    # hostname new.machine.name

    HTH

    Dan

    -- 
    Daniel Bye
    PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
    PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
                                                                         _
                                                  ASCII ribbon campaign ( )
                                             - against HTML, vCards and  X
                                    - proprietary attachments in e-mail / \
    
    


    • application/pgp-signature attachment: stored

  • Next message: Perttu Laine: "Re: ata driver."

    Relevant Pages

    • Re: Setting up network
      ... While we are on the topic, after the hostname and domain have been ... setup from the initial installation, ... It doesn't matter. ... >> To unsubscribe, send any mail to ...
      (freebsd-questions)
    • Delay during FTP installation before ftp hostname is resolving
      ... delay between sysinstall reported that it is trying to resolv FTP ... hostname and this hostname is actually resolving. ... installation I answered "No" to following two questions: ...
      (freebsd-current)
    • Re: Hostname confusion!!
      ... called 'sinclair' so this is the hostname I told it to use during ... installation. ... as it was 'Sinclair Dedicated' with 'Sinclair' being the networks name, ... Novell's Directory Services is a competitive product to Microsoft's ...
      (Debian-User)
    • Re: [opensuse] Hostname??
      ... I don't recall the installation program asking for a hostname; ... has of course made a mess of my home network. ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ...
      (SuSE)
    • Re: change domain name on Openserver 6.0
      ... | During the installation of OS6 on new hardware ... | results in hostname returning the desired name ... | but sendmail blows up and all local mail ...
      (comp.unix.sco.misc)