Can't ping hostname (2nd posting)

Discussion in 'Server Operation' started by satimis, Sep 24, 2008.

  1. satimis

    satimis New Member

    Hi folks,


    Machine-1
    OpenVZ
    Ubuntu 8.04 Hardy - Host
    Ubuntu 8.04 Hardy - Guests


    Machine-2
    Xen
    Debian Etch - Host
    Debian Etch - Guests


    Both machines together with their guests are working. They can ping and ssh-connect each other on IP. But they can't ping nor ssh connect each and others (both local and remote machines) on hostname. I have been playing around on hosts, hostname, resolv.conf, mailname, etc. for 2 days without a solution. Please help. TIA


    B.R.
    satimis
     
  2. chipsafts

    chipsafts New Member

  3. kcharoen

    kcharoen New Member

    cat /etc/nsswitch.conf | grep hosts
     
  4. satimis

    satimis New Member

    Hi kcharoen,


    Solved the problem already by putting IPs and hostnames of all machines on /etc/hosts, both physical and virtual.


    $ grep hosts /etc/nsswitch.conf
    Code:
    hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
    
    "files" is at the beginning of that line. I did not make any change.


    I heard winbind can solve the problem avoiding having a long list on /etc/hosts. Its setup is simple. Of couse bind9 is another option but its setup is not easy. Another option is samba.


    B.R.
    satimis
     

Share This Page