ubiety / Ubiety.Dns.Core

Flexible DNS library for .NET Core, and .NET Framework
Apache License 2.0
8 stars 6 forks source link

Upgraded to the latest version now I get no results #36

Closed mjanulaitis closed 5 months ago

mjanulaitis commented 2 years ago

Describe the bug Upgraded to the latest version now I get no results. No code changes were made.

To Reproduce var resolver = ResolverBuilder.Begin() .AddDnsServer(host.Name) .SetTimeout(1000) .EnableCache() .SetRetries(3) .UseRecursion() .Build();

    var response = resolver.Query(model.TestHost, (Ubiety.Dns.Core.Common.QuestionType)model.QuestionType, (Ubiety.Dns.Core.Common.QuestionClass)model.QuestionClass);
    if (response == null)
        throw new Exception(Resources.TEMPLATE_DNS_NO_RESPONSE);

Expected behavior I should be getting back an answer.

Desktop (please complete the following information):

Rolling back to version 4.2.0 resolves the issue.

Sabbi commented 2 years ago

Same/similar issue here.

With 4.2.2, I do get a FormErr only:

[Ubiety.Dns.Core.Resolver::Debug] Received CNAME query for github.com [Ubiety.Dns.Core.Resolver::Debug] Searching cache for question... [Ubiety.Dns.Core.Resolver::Debug] Sending request to server... [Ubiety.Dns.Core.Resolver::Debug] Starting TCP request... [Ubiety.Dns.Core.Resolver::Debug] Attempt 1 of 3... [Ubiety.Dns.Core.Resolver::Debug] Connecting to 8.8.8.8... [Ubiety.Dns.Core.Resolver::Debug] Sending request to server... [Ubiety.Dns.Core.Resolver::Debug] Building response... [Ubiety.Dns.Core.Response::Debug] Received information from server [Ubiety.Dns.Core.Resolver::Debug] Error from server - FormErr

Same everything, but with 4.2.1:

[Ubiety.Dns.Core.Resolver::Debug] Received CNAME query for github.com [Ubiety.Dns.Core.Resolver::Debug] Searching cache for question... [Ubiety.Dns.Core.Resolver::Debug] Sending request to server... [Ubiety.Dns.Core.Resolver::Debug] Starting TCP request... [Ubiety.Dns.Core.Resolver::Debug] Attempt 1 of 3... [Ubiety.Dns.Core.Resolver::Debug] Connecting to 8.8.8.8... [Ubiety.Dns.Core.Resolver::Debug] Sending request to server... [Ubiety.Dns.Core.Resolver::Debug] Building response... [Ubiety.Dns.Core.Response::Debug] Received information from server [Ubiety.Dns.Core.Response::Debug] Adding questions...

realslacker commented 2 years ago

I have the same problem with 4.2.2, however I was not able to use 4.2.1 and 4.2.0 seems to have some issues with TXT records.

mjanulaitis commented 1 year ago

No updates. It seems this repository is dead :(. I guess we all need to branch our own from 4.2.0 and maintain the library in our own repositories. Bummer. @realslacker do you have a reproduceable scenario with TXT records?

coder2000 commented 1 year ago

Sorry. I my focus has been pulled elsewhere. If someone posts a pr that resolves the issue I am more than happy to pull it in.

On Fri., Jan. 20, 2023, 10:22 a.m. Michael Janulaitis, < @.***> wrote:

No updates. It seems this repository is dead :(. I guess we all need to branch our own from 4.2.0 and maintain the library in our own repositories. Bummer. @realslacker https://github.com/realslacker do you have a reproduceable scenario with TXT records?

— Reply to this email directly, view it on GitHub https://github.com/ubiety/Ubiety.Dns.Core/issues/36#issuecomment-1398624051, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAG2KEYGLYHDEFOMTQ7QI3WTK3TDANCNFSM5PRKXGOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tjhlansbergen commented 1 year ago

I think this PR should fix it, @coder2000 could you look into that? https://github.com/ubiety/Ubiety.Dns.Core/pull/47

EdwinVanVliet commented 1 year ago

Created a new PR for this.

https://github.com/ubiety/Ubiety.Dns.Core/pull/51

cornerbowlsoftware commented 5 months ago

Created a new PR for this.

51

So sad it looks like this repo is stale.

coder2000 commented 5 months ago

Merged