ARSoft.Tools.Net | project contains a complete managed | DNS library
kandi X-RAY | ARSoft.Tools.Net Summary
kandi X-RAY | ARSoft.Tools.Net Summary
This project contains a complete managed .Net SPF validation, SenderID validation and a dns client and dns server implementation written in C#.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ARSoft.Tools.Net
ARSoft.Tools.Net Key Features
ARSoft.Tools.Net Examples and Code Snippets
Community Discussions
Trending Discussions on ARSoft.Tools.Net
QUESTION
I have 2 DNS Servers(domainserverwithport.com:5356 and domainserverwithoutport.com) I am connecting to for a lookup request. One has a port number but the other one doesn't have.
The one without the port number connects and gets answer from the request. But the second returns nothing. And while using ARSoft.Tools.Net.Core, I could not see option to instantiate a new DNSClient with IP Address and Port Number. Please is there a way around this?
I did the following for the DNS Server that has no port number.
...ANSWER
Answered 2019-May-13 at 16:59Reading the code at https://github.com/mccj/ARSoft.Tools.Net.Core/blob/master/ARSoft.Tools.Net.Core/Dns/DnsClientBase.cs you can see there is an internal constructor that takes a port number...
And here https://github.com/mccj/ARSoft.Tools.Net.Core/blob/master/ARSoft.Tools.Net.Core/Dns/DnsClient.cs on line 81 we can see an example of an accessible constructor that accesses the internal one, passing in 53 as a hard coded value (i.e. you cant set the port number in your code, if you're using the provided DnsClient)
There doesn't appear to be a way to change the port number either upon instantiation of a DnsClient or afterwards (eg via a property) and you can't subclass DnsClientBase yourself because the relevant constructor you want is internal to the other assembly and not accessible. If you're desperate to do this, you might have to clone the ARSoft.Tools.Net.Core repo yourself and add a constructor to DnsClient
It's worth noting that the port setting is client-wide; there isn't the notion of having server A on port 53 and server B on port 5353, and both servers known to the same client. The port is fixed at instantiate time and applies to all the servers in the known list for that DnsClientBase
You may also get some mileage out of writing to the package author and asking for more info on why the code is arranged thus, as it seems to make it deliberately hard to use a custom port externally but internally all the necessary guts are there to make it a variable setting
QUESTION
What I want to happen: Pass the method a domain as a string and have it return true if the domain resolves. False if it does not. The underlying goal is to see if a domain exists.
What happens: Most valid domain strings return true. Some, however, return false despite resolving with nslookup.
I don't understand why certain domains are failing to resolve when they look fine when using command prompt nslookup and nslookup sites. (I've used https://centralops.net/ , http://www.kloth.net/services/nslookup.php , and http://network-tools.com/nslook/)
Method (C#):
...ANSWER
Answered 2017-Jun-23 at 16:59"you can try and use a different library, the DnsClient (nuget) instead, see dnsclient.michaco.net. The domain names in question seem to work just fine " - @MichaC
The problem was in fact the Arsoft.Tools.Net library I was using. Switching to DnsClient.Net fixed the problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ARSoft.Tools.Net
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page