![]() | Register | FAQ | Members | Social Groups | User Map | Calendar | Search | Today's Posts | Mark Forums Read |
| | | LinkBack | Thread Tools | Search Thread | Language |
| Sponsored Links |
| | #1 |
![]() Join Date: Jan 2006
Posts: 498
Thanks: 1
Thanked 20 Times in 16 Posts
Rep Power: 9 | 1) Use an older function like Resolve() and you get told it's 'obsolete' and you should use GetHostByAddress(). Do what you're told and you may well hit this problem: MS Connect link 2) Either way your code may end up hanging around a while if the IP isn't in DNS. Presumably it tries asking whatever is at that IP address for it's NetBIOS name, and if that box isn't switched on eventually gets around to timing out. YMMV but I didn't want the latter. 3) So I gave up and went and found a 3rd party DNS resolver dnDNS and so far that works just fine. |
| |
| | #2 |
![]() Join Date: Jun 2005 Location: Fylde, Lancs, UK.
Posts: 9,875
Thanks: 42
Thanked 223 Times in 203 Posts
Blog Entries: 1 Rep Power: 66 | I don't know anything about .net coding but over here in *nix land we generally try and do DNS resolution (in either direction) in it's own thread/process and use a named pipe/IPC/etc to tell the main program if/when we get an answer. That way we don't get in the way of the main processes execution path and hold everything up. |
| |
| | #3 |
![]() Join Date: Jan 2006
Posts: 498
Thanks: 1
Thanked 20 Times in 16 Posts
Rep Power: 9 | Oh you do that everywhere when you need to, but in this case a) the DNS service running on the same box is authoritative for my queries, b) I only want an answer from DNS (and I want it to be correct!), c) there's not enough mileage in it to justify coding threads and locks etc. |
| |
| | #4 |
![]() Join Date: Nov 2006
Posts: 181
Thanks: 3
Thanked 13 Times in 11 Posts
Rep Power: 7 | Thanks for DNS link, will have a look at that. TO be honest I currently resolve IP address/host via a thread to stop really bad WMI timeouts by only trying to connect to a valid host that pings, as the WMI RPC timeout is V slow! I take it you were using a try/catch on the ip lookup. They do sometimes seem to add a bit of lag to reponse times, when the catch fires! Been looking at ways of working around it, that avoid c++! If anyone has info on this I would be grateful. |
| |
| | #5 | ||
![]() Join Date: Jan 2006
Posts: 498
Thanks: 1
Thanked 20 Times in 16 Posts
Rep Power: 9 | Quote:
Quote:
| ||
| |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BAD dotNet docs | PiqueABoo | Coding | 1 | 10-11-2007 03:54 PM |
| DNS Queries excessive ? | Scruff | Networks | 12 | 16-10-2007 06:08 PM |
| DNS reverse look up zones. | Kyle | Windows | 1 | 16-10-2007 08:42 AM |
| One||Zero queries | Gatt | Windows | 18 | 23-05-2006 02:23 PM |
| ISA Queries... | Gatt | Windows | 14 | 11-05-2006 06:42 PM |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search Thread |
|
|





