Stupid Here having problems with the host file :(

Discussion in 'Installation/Configuration' started by badgerbox76, Sep 29, 2006.

  1. badgerbox76

    badgerbox76 Member

    I am working on step 5 Configure The Network in the The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake) - Page 3 howto. I am trying to chage my hosts file.

    Here is the host file
    Code:
    127.0.0.1 localhost admin-desktop
    127.0.1.1 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
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    
    Here is my edited host file
    Code:
    127.0.0.1 localhost admin-desktop
    192.168.0.105 server1.monitorwaves.no-ip.org server1
    
    # 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
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    
    Why does it not change?
    Code:
    root@admin-desktop:/home/admin# hostname
    admin-desktop
    root@admin-desktop:/home/admin# hostname -f
    localhost
    root@admin-desktop:/home/admin#
    
    I have tryed a restart but it does not do a thing. I have also set my ip to static. Any sugestions? Thanks
     
  2. badgerbox76

    badgerbox76 Member

    Any suggestions about my problem?
     
  3. badgerbox76

    badgerbox76 Member

    Am i going to get any help with this?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    You can try this:
    Code:
    echo server1.example.com > /etc/hostname
    /bin/hostname -F /etc/hostname
     
  5. badgerbox76

    badgerbox76 Member

    Ok my host name is coming out alright now but i am runing into another problem. My sql server will not allow me to connect to it. I checked myslq and it is up and runing.

    Code:
    root@server1:/home/admin# hostname
    server1.monitorwaves.no-ip.org
    root@server1:/home/admin# hostname -f
    server1.monitorwaves.no-ip.org
    root@server1:/home/admin# mysqladmin -h server1.monitorwaves.no-ip.org -u root password mypassword
    mysqladmin: connect to server at 'server1.monitorwaves.no-ip.org' failed
    error: 'Host 'server1.monitorwaves.no-ip.org' is not allowed to connect to this MySQL server'
    root@server1:/home/admin#
    
     
  6. falko

    falko Super Moderator ISPConfig Developer

Share This Page