sudo: unable to resolve host(none)

August 12, 2014 4.8k views

Hi team,

I am trying to resolve all the possible ways it is not resolved.

i am getting thousands of emails like given below

1 Cron<admin@(none)>sudo/usr/loacl/vesta/bin/v-update-sys-rrd
body of mail is
sudo: unable to resolve host(none)

  1. Cron<admin@none)>sudo/usr/loacl/vesta/bin/v-backup-users
    body of mail is
    sudo: unable to resolve host(none)

  2. Cron<admin@(none)>sudo/usr/loacl/vesta/bin/v-update-queue-backup
    body of mail is
    sudo: unable to resolve host(none)

  3. Cron<admin@(none)>sudo/usr/loacl/vesta/bin/v-update-user-state=s
    body of mail is
    sudo: unable to resolve host(none)

5 Cron<admin@(none)>sudo/usr/loacl/vesta/bin/v-update-queue traffic
body of mail is
sudo: unable to resolve host(none)

please help me anybody to solve this problem.

Thanks
krishna murthy

1 comment
1 Answer

Could you post the contents of /etc/hostname and /etc/hosts ?

Make sure the file /etc/hostname contains the name of your droplet while /etc/hosts looks something like:

127.0.0.1   localhost
127.0.1.1   your-droplets-name

# 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
Have another answer? Share your knowledge.