Results 1 to 3 of 3

Thread: gethostbyaddr(127.0.0.2) failed: 1

  1. #1
    Join Date
    Feb 2014
    Beans
    39

    gethostbyaddr(127.0.0.2) failed: 1

    I get these error messages that I try to fix. This is from the mail log:
    Code:
    Feb 22 01:25:02 server1 sendmail[4185]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 22 01:30:04 server1 sendmail[4752]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 22 01:35:03 server1 sendmail[5476]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 22 01:40:02 server1 sendmail[6119]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 22 01:45:01 server1 sendmail[6767]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 22 01:50:03 server1 sendmail[7427]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 22 01:55:01 server1 sendmail[8022]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 22 02:02:04 server1 sendmail[10312]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 22 02:05:02 server1 sendmail[10579]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 22 02:10:02 server1 sendmail[11191]: gethostbyaddr(127.0.0.2) failed: 1
    It is a 12.04 VPS server. I do not have postfix, I have msmtp instead. I also have munin installed. Since this message is every 5 min, could it be munin trying to send a message?

    Can you help me please?

  2. #2
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: gethostbyaddr(127.0.0.2) failed: 1

    try
    Code:
    sudo sh -c 'echo "127.0.0.2 server1" >> /etc/hosts'
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  3. #3
    Join Date
    Feb 2014
    Beans
    39

    Re: gethostbyaddr(127.0.0.2) failed: 1

    This is my /etc/hosts file:
    127.0.0.1 localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    192.210.214.129 server1.surf-anonymous.info server1
    ::1 localhost.localdomain localhost
    I think this file is autogenerated. I will add the code you said, but don't you think it will be erased if something changes to the system?

    It worked. Thank you!

    Full details of problem and solution: http://bbb-solutions.blogspot.gr/201...-messages.html
    Last edited by howefield; September 3rd, 2016 at 09:30 AM. Reason: posts combined.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •