Re: localhost resolves to wrong IP?

From: Jonathan (jonathan_at_bakerbates.SPAMGONE.com)
Date: 11/29/03


Date: Sat, 29 Nov 2003 13:07:22 -0000


> So this IP is in /etc/resolv.conf? Sounds as if you have been
> rooted.

No, it's not in resolv.conf. It's not in any system config file at all.
We've recursively grepped /var/named, and all of /etc. We've run chkrootkit
from a CD using trusted binaries, and we run an md5sum check (database on a
write-protected floppy) on all system binaries and important config files
(like resolv.conf) every 10mins. No sign of any rooting we can tell.

Jonathan

"Michael Heiming" <michael+USENET@www.heiming.de> wrote in message
news:d2k9qb.eg5.ln@news.heiming.de...
> Jonathan <jonathan@bakerbates.spamgone.com> wrote:
> > Hi - we're using a standard install of RedHat 7.3 i386.
>
> > About 12 hours ago or so ago, several services on our machine stopped
> > working. Further investigation showed that localhost is resolving to the
> > wrong IP address - instead of 127.0.0.1 it thinks it's 203.210.212.24,
which
> > is nothing to do with us, it isn't even on our ISP's netblock.
>
> > /etc/hosts shows:
>
> > 127.0.0.1 localhost.localdomain localhost
>
> > and /etc/host.conf:
>
> > order hosts,bind
>
> > The machine is running a name server, but it's not querying it any
more -
> > it's trying to ask this other IP, and that's not pinging.
>
> So this IP is in /etc/resolv.conf? Sounds as if you have been
> rooted. Is your box patched with all patches available for RH
> 7.3?
>
> > Anyone any ideas as to how this might be happening, and what we can do
to
> > get it back to normal?
>
> If you have been cracked, which sounds reasonable, read the cols
> FAQ and reinstall your system from scratch:
>
> http://www.linuxsecurity.com/docs/colsfaq.html
>
> 5.5) I've been compromised, what should I do?
>
> Good luck
>
> --
> Michael Heiming
>
> Remove +SIGNS and www. if you expect an answer, sorry for
> inconvenience, but I get tons of SPAM



Relevant Pages

  • Re: localhost resolves to wrong IP?
    ... It's not in any system config file at all. ... We've run chkrootkit ... from a CD using trusted binaries, and we run an md5sum check (database on a ... Is your box patched with all patches available for RH ...
    (comp.os.linux.security)
  • Re: localhost resolves to wrong IP?
    ... Jonathan ... It's not in any system config file at all. ... Is your box patched with all patches available for RH ...
    (comp.os.linux.networking)
  • Re: localhost resolves to wrong IP?
    ... Jonathan ... It's not in any system config file at all. ... Is your box patched with all patches available for RH ...
    (comp.os.linux.security)
  • Re: 2.6.11-rc5-mm1
    ... > on the .config file, let alone if you try them on another architecture. ... > would be nice to receive less such patches, ... The ia64 audit bit is likely my fault from the audit header detangle. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)