Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 64 guests and 1 member online
 
Advertisement

You are here: Home arrow Resourcesarrow Toolsarrow Nmap and DNS - a suggestion.
EH-Net
May 19, 2013, 03:22:34 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Nmap and DNS - a suggestion.  (Read 1678 times)
0 Members and 1 Guest are viewing this topic.
bobby_here
Newbie
*
Offline Offline

Posts: 14


View Profile
« on: June 10, 2012, 04:08:36 AM »

I wanted to detail an interesting experience (to me at least) I recently had using nmap 6.00.

I was using Nmap through a VPN and so I expected that all traffic would flow through the VPN.

I was using Wireshark to monitor ppp0 (the connection between my VPN IP address and the remote host).

I was using - among other commands - nmap -sL which very quickly resolves IPs into hostnames for remote hosts (should, of course, the remote hosts have been named).

My /etc/resolv.conf file showed my VPN's two DNS servers, then my ISPs three DNS servers.

The command (for example) nmap -sL 150.150.1.1-150.150.5.255 would mean that thousands of scans are done very quickly.

ppp0 showed that the nmap was using all five DNS servers.  This was not necessarily leakage as such because it was my VPN IP which was calling my ISP's DNSes (rather than my 'real' IP calling them) but, even so, this was not behavior I expected.

There are two solutions.  First, specifically with nmap, use its --dns-servers command to allocate specific DNS servers.

The other more general option is to comment out all non-VPN DNS servers in /etc/resolv.conf.  I assume that nmap (and, for that matter, any other program) can call from that file to select their DNSes.

Any comments or questions would be appreciated.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.056 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.