reverse-dns

Python Asynchronous Reverse DNS Lookups

廉价感情. 提交于 2019-12-06 07:46:10
问题 I am looking to do a large number of reverse DNS lookups in a small amount of time. I currently have implemented an asynchronous lookup using socket.gethostbyaddr and concurrent.futures thread pool, but am still not seeing the desired performance. For example, the script took about 22 minutes to complete on 2500 IP addresses. I was wondering if there is any quicker way to do this without resorting to something like adns-python. I found this http://blog.schmichael.com/2007/09/18/a-lesson-on

What are Android SyncAdapter contentAuthority and accountType?

余生长醉 提交于 2019-12-05 08:15:50
I'm creating a custom Android SyncAdapter and hit a snag following the SDK example "SampleSyncAdapter". - I'm creating my equivalent of the xml/syncadapter.xml . Here's the parts I'm confused about: android:contentAuthority="com.android.contacts" android:accountType="com.example.android.samplesync" The documentation of AbstractThreadedSyncAdapter states: The android:contentAuthority and android:accountType attributes indicate which content authority and for which account types this sync adapter serves. The documentation is circular in that it says nothing the name doesn't already tell you. I

Python Asynchronous Reverse DNS Lookups

大兔子大兔子 提交于 2019-12-04 12:10:29
I am looking to do a large number of reverse DNS lookups in a small amount of time. I currently have implemented an asynchronous lookup using socket.gethostbyaddr and concurrent.futures thread pool, but am still not seeing the desired performance. For example, the script took about 22 minutes to complete on 2500 IP addresses. I was wondering if there is any quicker way to do this without resorting to something like adns-python. I found this http://blog.schmichael.com/2007/09/18/a-lesson-on-python-dns-and-threads/ which provided some additional background. Code Snippet: ips = [...] with

Reverse DNS lookup in perl

雨燕双飞 提交于 2019-12-03 11:16:12
How do I perform a reverse DNS lookup, that is how do I resolve an IP address to its DNS hostname in Perl? gethostbyaddr and similar calls. See http://perldoc.perl.org/functions/gethostbyaddr.html If you need more detailed DNS info use the Net::DNS module, here is an example: use Net::DNS; my $res = Net::DNS::Resolver->new; # create the reverse lookup DNS name (note that the octets in the IP address need to be reversed). my $IP = "209.85.173.103"; my $target_IP = join('.', reverse split(/\./, $IP)).".in-addr.arpa"; my $query = $res->query("$target_IP", "PTR"); if ($query) { foreach my $rr (

Android Browser hostnames does not get resolved if domain name is not appended [closed]

无人久伴 提交于 2019-11-30 08:14:09
I am trying open a site hosted on my localhost using machine name in an android browser. When I type in machine name on a desktop browser , it gets resolved, but in an android device I get webpage not available. Server has been configured to handle DNS correctly and we do not see any errors.Please help. Thank you There's two things at play here... 1: How is your machine name getting resolved? There are several mechanisms for this. Windows machines use a combination of NetBIOS/WINS/ActiveDirectory to discover other machines on the local network. (Linux/Mac machines can access this data SAMBA,

How to resolve DNS in Python?

无人久伴 提交于 2019-11-30 06:46:22
I have a DNS script which allow users to resolve DNS names by typing website names on a Windows command prompt. I have looked through several guides on the DNS resolve but my script can't still seem to resolve the names (www.google.com) or (google.com) to IP address. The script outputs an error of Traceback (most recent call last): File "C:\python\main_menu.py", line 37, in ? execfile('C:\python\showdns.py') File "C:\python\showdns.py", line 3, in ? x = input ("\nPlease enter a domain name that you wish to translate: ") File "<string>", line 0, in ? NameError: name 'google' is not defined The

Android Browser hostnames does not get resolved if domain name is not appended [closed]

☆樱花仙子☆ 提交于 2019-11-29 11:13:58
问题 I am trying open a site hosted on my localhost using machine name in an android browser. When I type in machine name on a desktop browser , it gets resolved, but in an android device I get webpage not available. Server has been configured to handle DNS correctly and we do not see any errors.Please help. Thank you 回答1: There's two things at play here... 1: How is your machine name getting resolved? There are several mechanisms for this. Windows machines use a combination of NetBIOS/WINS

How to resolve DNS in Python?

老子叫甜甜 提交于 2019-11-29 06:58:22
问题 I have a DNS script which allow users to resolve DNS names by typing website names on a Windows command prompt. I have looked through several guides on the DNS resolve but my script can't still seem to resolve the names (www.google.com) or (google.com) to IP address. The script outputs an error of Traceback (most recent call last): File "C:\python\main_menu.py", line 37, in ? execfile('C:\python\showdns.py') File "C:\python\showdns.py", line 3, in ? x = input ("\nPlease enter a domain name