Hostname problems Ubuntu 6.06 setup

Discussion in 'Installation/Configuration' started by badgerbox76, Jun 12, 2006.

  1. badgerbox76

    badgerbox76 Member

    My host file admin-server localhost admin-desktop

    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes

    [email protected]:/home/admin# hostname
    [email protected]:/home/admin# hostname -f
    [email protected]:/home/admin#

    It should be coming out as admin-server and then right?
  2. EvanCarroll

    EvanCarroll New Member HowtoForge Supporter

    The "hostname" doesn't come from the file "hosts" it comes from the file /etc/hostname, which must resolve to something with the resolver.
    So in your case make /etc/hostname read "admin-desktop", and run
    hostname -F /etc/hostname
    then your
    hostname -f
    will work

Share This Page