LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Reverse DNS lookup fails (https://www.linuxquestions.org/questions/linux-security-4/reverse-dns-lookup-fails-662754/)

<Ol>Origy 08-14-2008 10:40 AM

Reverse DNS lookup fails
 
Hey. I know this isn't exactly linux-related, but I'd like to ask something about a possible hack attempt. Recently I checked my apache2 httpd logs and found multiple entries of this strange IP address scanning my webserver for vulnerabilities. While I can't say they found any holes as I regularly update my software, I was curious to see who it was. I did a reverse DNS lookup on the IP in question, but the lookup failed. I've tried multiple reverse-DNS-lookup websites and they were all unable to resolve the IP. I know the IP is valid since it appears in the logs, but why can it not be resolved to a hostname?

Here's a piece from the logs.
Quote:

212.83.247.74 - - [13/Aug/2008:02:53:12 +0200] "GET /sql/db/main.php HTTP/1.0" 404 277
212.83.247.74 - - [13/Aug/2008:02:53:13 +0200] "GET /sql/web/main.php HTTP/1.0" 404 278
212.83.247.74 - - [13/Aug/2008:02:53:13 +0200] "GET /sql/pMA/main.php HTTP/1.0" 404 278
212.83.247.74 - - [13/Aug/2008:02:53:13 +0200] "GET /sql/admin/main.php HTTP/1.0" 404 280
212.83.247.74 - - [13/Aug/2008:02:53:14 +0200] "GET /sql/main.php HTTP/1.0" 404 274
212.83.247.74 - - [13/Aug/2008:02:53:14 +0200] "GET /sql/dbadmin/main.php HTTP/1.0" 404 282
212.83.247.74 - - [13/Aug/2008:02:53:15 +0200] "GET /sql/pMA2006/main.php HTTP/1.0" 404 282
212.83.247.74 - - [13/Aug/2008:02:53:15 +0200] "GET /sql/pma2006/main.php HTTP/1.0" 404 282
212.83.247.74 - - [13/Aug/2008:02:53:15 +0200] "GET /sql/sqlmanager/main.php HTTP/1.0" 404 285
212.83.247.74 - - [13/Aug/2008:02:53:16 +0200] "GET /sql/sqlmanager/main.php HTTP/1.0" 404 285
212.83.247.74 - - [13/Aug/2008:02:53:16 +0200] "GET /sql/p/m/a/main.php HTTP/1.0" 404 280

MensaWater 08-14-2008 12:08 PM

There is no requirement that IP addresses be tied to names. This is done for convenience. Computers would work just fine using only IP addresses but we humans would have a hard time remember IPs for everything we want to use so we assign names.

We use DNS to find the names when we don't know them but it requires that someone registered the name and published its association with the IP address. Sometimes you don't want people knowing what your systems are for legitimate purposes. Sometimes you don't want them knowing because you're a hacker and are doing something bad.

There are sites that will approximate the IP address' geographic location. If you see it is coming out of some exotic foreign land (e.g. Russia) you probably just want to blacklist the address so it doesn't do any queries.

<Ol>Origy 08-14-2008 12:37 PM

Yeah, thanks for the summary. This IP seems to originate from Rotterdam, NL. Seeing that the IP had no hostname made me a little paranoid, thinking that I'm being hacked by the feds or something ;)

edit: How hard is it to figure out the ISP of such IP address?

PTrenholme 08-14-2008 12:48 PM

Code:

$ whois 212.83.247.74
[Querying whois.ripe.net]
[whois.ripe.net]
<redacted - copyrighted material>

<edit>
Oops! I posted before I read the copyright notice. Sorry - just run the command to see the output.
</edit>


All times are GMT -5. The time now is 04:52 AM.