I am going to suggest that you are using some kind of linux flavor. If so, you can look at your /etc/hostsfile - is there an entry for localhost? I expect to see something like:
127.0.0.1 localhost zaftra
::1 localhost
I did some Googling - there is a similar question on SuperUser - the suggestion was to add the following to /etc/resolv.conf:
search (domainname) // in your case, search (zaftra)
You can also try:
search zaftra
search zaftra.example.com
(This is based on the entry I received resolv.confon one of my Ubuntu machines).
source
share