ID

Uploaded

Status

Description

Work Items

Action

16654
by rclaasen
Jul 28, 2014
1:45 PM

Being evaluated

Fixes "Resolve fails if dnsServer provided as an IP without PTR"

Download

12732
by tjeerdhans
Aug 17, 2012
7:43 AM

Applied

To be able to use ipv6 DNS server addresses, I added the AddressFamily to the TcpClient and UdpClient constructors in DnsQueryResponse.cs:

private static byte[] ResolveTcp(byte[] bDnsQuery, IPEndPoint ipep)
{
TcpClient tcpClient = new TcpClient(ipep.AddressFamily);
...
and
private byte[] ResolveUdp(byte[] bDnsQuery, IPEndPoint ipep)
{
// UDP messages, data size = 512 octets or less
UdpClient udpClient = new UdpClient(ipep.AddressFamily);
...

Works for me :)


Applied Jul 10, 2014: Great! I hadn't been able to test it.

Download

16545
by claitonlovatojr
Jul 4, 2014
2:17 PM

Applied

Removing the FlagsAttribute from the RCode Enum


Applied Jul 10, 2014: Agreed!

13241

Download

6347
by dgoslin
Jul 15, 2010
11:09 PM

Applied

Hi,

I have added support for TSIG signed dns requests to the library. I will be using this in a production application in the very near future. I spent a lot of time looking for a lib that would do more advanced DNS queries that was easy to modify. There are not a lot of options.

I hope the code I have added/modified is clear enough.

Here is a console output as some modest proof of functionality, I have obscured some of the data for security reasons.

Bytes received: 262
Name:
OpCode: INET
NsFlags: RD, AA
NsType: A
RCode: NoError
OpCode: QUERY
Answers:
Address: 127.0.0.42
|--- RDATA Field Length: 4
|--- Name: XXXXXXXXXXXXXXXXXXXXXX.inXXXXXdits-arXXXXX.fr.
|--- NS Class: INET
|--- NS Type: A
|--- TTL: 0

dns4.arjel.fr.
|--- RDATA Field Length: 13
|--- Name: XXXXXXXXXXXXXXXXXXXXXX.inXXXXXdits-arXXXXX.fr.
|--- NS Class: INET
|--- NS Type: NS
|--- TTL: 86400

dns1.arjel.fr.
|--- RDATA Field Length: 7
|--- Name: XXXXXXXXXXXXXXXXXXXXXX.inXXXXXdits-arXXXXX.fr.
|--- NS Class: INET
|--- NS Type: NS
|--- TTL: 86400

dns2.arjel.fr.
|--- RDATA Field Length: 7
|--- Name: XXXXXXXXXXXXXXXXXXXXXX.inXXXXXdits-arXXXXX.fr.
|--- NS Class: INET
|--- NS Type: NS
|--- TTL: 86400

dns3.arjel.fr.
|--- RDATA Field Length: 7
|--- Name: XXXXXXXXXXXXXXXXXXXXXX.inXXXXXdits-arXXXXX.fr.
|--- NS Class: INET
|--- NS Type: NS
|--- TTL: 86400

hmac-sha256. 15/07/2010 23:05:13 300 32 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX NoError 0
|--- RDATA Field Length: 61
|--- Name: oXXXXXXXXXXXXXXXX29.
|--- NS Class: ANY
|--- NS Type: TSIG
|--- TTL: 0


Applied Sep 23, 2010: far as I can tell it looks good...haven't been able to fully test, but will apply it and hopefully others will provide feedback.

8723

Download

View All
  • 1-4 of 4 Patches
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Patches