Go Down

Topic: /etc/hosts on Arduino help needed (Read 1 time) previous topic - next topic

NewLine

Hi,

I am trying to run fetchmail on the Arduino. I am almost there but I am getting the warning/error:

Code: [Select]
gethostbyname failed for Arduino
Name or service not knownCannot find my own host in hosts database to qualify it!
Trying to continue with unqualified hostname.
DO NOT report broken Received: headers, HELO/EHLO lines or similar problems!
DO repair your /etc/hosts, DNS, NIS or LDAP instead.


I am no linux expert, so I don't really know what should be in /etc/hosts, currently it contains:

Code: [Select]
127.0.0.1 localhost

Someone has an idea how I can fix this on the arduino? Just out of interest, how does fetchmail arrive to the name "Arduino"?



NewLine

BTW I am just guessing I should fix something in /etc/hosts, but maybe that is not the case (the Arduino gets its IP address from DHCP)

NewLine

I got the fetchmail 'error' to go away by putting the following /etc/hosts:

Code: [Select]
127.0.0.1 localhost
127.0.1.1 Arduino


I have really no idea if this makes sense or not....

fermino

Or as a workaround as well you could try:
Code: [Select]
127.0.0.1    localhost    Arduino

Go Up