Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexOutOfRangeException on server #21

Closed
ghost opened this issue Feb 3, 2017 · 2 comments
Closed

IndexOutOfRangeException on server #21

ghost opened this issue Feb 3, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 3, 2017

I created a server and it returns this:

{Id=1814, QuestionCount=1, AnswerRecordCount=0, AuthorityRecordCount=0, AdditionalRecordCount=0, Response=False, OperationCode=Query, AuthorativeServer=False, Truncated=False, RecursionDesired=True, RecursionAvailable=False, ResponseCode=NoError}
System.Collections.Generic.List`1[DNS.Protocol.Question]
0
0
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at DNS.Protocol.Request.FromArray(Byte[] message)
   at DNS.Server.DnsServer.<>c__DisplayClass5.<Listen>b__0()
@JensSterckx
Copy link

JensSterckx commented Feb 3, 2017

Having the exact same issue and error output.
Versions I use:
Nuget package V 1.2.3
Project .Net framework 4.5 (Tested on the mentioned 4.0 too, same error.)

Using google DNS for forwarding. (Local defined hostnames throwing same error.)

@kapetan
Copy link
Owner

kapetan commented Apr 1, 2018

Should be fixed by 71df004

@kapetan kapetan closed this as completed Apr 1, 2018
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

No branches or pull requests

2 participants