Skip to content

Improving Nameserver suffix handling#207

Closed
MichaConrad wants to merge 7 commits intodevfrom
MichaCo/suffix-handling
Closed

Improving Nameserver suffix handling#207
MichaConrad wants to merge 7 commits intodevfrom
MichaCo/suffix-handling

Conversation

@MichaConrad
Copy link
Collaborator

  • Removing the filter during resolving namespaces from NRPT, the code can handle any suffix or namespace filter, doesn't have to start with .
  • Adding Contains(string) to DnsString to, for example, find a namespace within a query string.
  • Changing equals of NameServer to allow for multiple servers with the same IP/Port but different DnsSuffixes... (I might inverse that to a list of suffixes, but handling is actually nicer like this).

For more details, see #198 and the MiniDig change here which does an example of how to find nameservers using the new Contains etc...

@MichaConrad MichaConrad added this to the 1.8.0 milestone Jan 21, 2024
private static ushort GetRandom()
{
var block = new byte[2];
s_generator.GetBytes(block);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RandomNumberGenerator instance methods are not guaranteed to be thread safe, even though they might be in practice.

@MichaConrad
Copy link
Collaborator Author

splitting this into separated PRs

@MichaConrad MichaConrad deleted the MichaCo/suffix-handling branch June 30, 2024 19:41
@MichaConrad MichaConrad removed this from the 1.8.0 milestone Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants