Hello guys

When I run

sudo nano /etc/proftpd/proftpd.conf

I get this error :

sudo unable to resolve host localhost.localdomain

I'm trying to set DefaultRoot to /var/wwwas per the following screenshots.


When I press CTRl + X then write Y and press enter,/kbd> it give me this error


Can someone please tell me how to resolve this problem?

  • what does /etc/hosts contains ?
    – nux
    Jan 28, 2014 at 21:57
  • Please explain , did you mean my pc (windows 7) or on ths server because i'am running propdf on ubuntu 12.0.4 vps
    – user241110
    Jan 29, 2014 at 0:27
  • Hello sir , it contains
    – user241110
    Jan 29, 2014 at 0:50
  • localhost ubuntu12.pcsmarthosting.co.uk ubuntu12 # 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 @nux
    – user241110
    Jan 29, 2014 at 0:51

1 Answer 1


Edit your server hosts file (/etc/hosts). You are missing the domain. For example:

It probably has a line like:  localhost

Change it to:  localhost.localdomain  localhost

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.