473,385 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Reverse DNS Lookup - Need Ability to specify which DNS Server is contacted.

I have a web page that displays and creates DNS entries. It displays
DNS entries if they exist for certain IP ranges. (Usually about 20 IP
address at a time) If a DNS entry needs to be created then it creates
the entry. However if I use GetHostEntry() to perform the DNS lookup it
does not show me the entry I just created. It takes several minutes
before it would appear.I assume this is happening because GetHostEntry
queries the DNS server listed on the IIS machine.

I need the ability to query a specific DNS server so that I can query
the server that I just created the DNS entry on. The only way I could
find to do this is via a WMI query. However the page takes anywhere
from 30-120 seconds to complete the WMI query and I am looking for
something faster. Each WMI query takes 30 to 120 seconds so I have
managed to write 1 WMI query per run and dump all of it into a table
and display it instead of doing 20 or so WMI queries each time. It is
still slow.

I found this page where he has written an assembly that queries the DNS
server directly, but he does not have support for Reverse DNS lookups.
http://www.codeproject.com/cs/intern...47#xx1508409xx

Does anyone know a way to do Reverse DNS Lookups without using WMI and
still have the ability to specify a DNS server?

Thanks,
Screenbert

Dec 18 '06 #1
1 3186
"Screenbert" <sc********@gmail.comwrote in message
news:11*********************@48g2000cwx.googlegrou ps.com...
[...]
Does anyone know a way to do Reverse DNS Lookups without using WMI and
still have the ability to specify a DNS server?
I don't know a .NET solution to your specific question (though there may
well be one). But what about simply caching a list of the DNS entries you
created and check that before trying GetHostEntry()? You could even cache
DNS queries that you already made to GetHostEntry() to speed those queries
if they repeat later as well.

Pete
Dec 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Pjotr Wedersteers | last post by:
Hi PHP buddies, I want to include a reverse DNS lookup (find host/domain for a given IP) in my pagetracker scripts. Is there anything prefab in the PHP world I am overlooking I could put to use...
35
by: Raymond Hettinger | last post by:
Here is a discussion draft of a potential PEP. The ideas grew out of the discussion on pep-284. Comments are invited. Dart throwing is optional. Raymond Hettinger ...
59
by: Raymond Hettinger | last post by:
Please comment on the new PEP for reverse iteration methods. Basically, the idea looks like this: for i in xrange(10).iter_backwards(): # 9,8,7,6,5,4,3,2,1,0 <do something with i> The...
2
by: CoreyWhite | last post by:
The future of computer architecture will use lookup tables. Currently computer processor speed outweighs the benefits of using computer memory for lookup tables, except in some cases. As computer...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
15
by: Fady Anwar | last post by:
Hi while browsing the net i noticed that there is sites publishing some software that claim that it can decompile .net applications i didn't bleave it in fact but after trying it i was surprised...
12
by: rudysanford | last post by:
I just started messing with programming and started with Python. Part of my first project deals with translating numerical values to letters. I would like to be able to do the reverse as well,...
8
by: rh0dium | last post by:
Hi all, I have a dict which looks like this.. dict={'130nm': {'umc': }, '180nm': {'chartered': , 'tsmc': }, '250nm': {'umc': , 'tsmc': } }
8
by: schaf | last post by:
Hi NG! I have a problem in my remote application. After calling a remote function the calculation will be done by the service. The calculation result will be sent to the caller (client) via...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.