Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Add nameresolver api #18

Merged
merged 2 commits into from
Oct 8, 2021
Merged

Add nameresolver api #18

merged 2 commits into from
Oct 8, 2021

Conversation

yifguoMSFT
Copy link
Contributor

Sometimes the nameresolver CLI provides a different result as the user app because it implements its own name resolving logic which can introduce more problems and uncertainty to checks in Network Troubleshooter. For example, nameresolver does not check WEBSITE_DNS_ALT_SERVER. And when both DNS in appsetting are not reachable, nameresolver can still produce a result
image

image

Add nameresolver api in DaasExtension to resolve hostname by using C# DNS library, which should provide the same result as the name resolving request sent from user code.

@@ -0,0 +1,62 @@
// -----------------------------------------------------------------------
// <copyright file="UdpEchoTestController.cs" company="Microsoft Corporation">
Copy link
Contributor

Choose a reason for hiding this comment

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

please correct this...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

{
/// <summary>
/// Worker instances are running an udp echo server on port 30000. This controller is for checking the connection between target
/// worker instance by pinging and checking the echoed result.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update this to the correct text

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry it's my bad, I was too hurry to push this PR before getting off so that didn't notice this at all. It's now updated.

}
else
{
result = new NameResolverResult { Status = "unknown error", Exception = e };
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont know how the caller for this API will look like but do you want to add another field to NameResolverResult (like SocketErrorCode) and just return socketException.SocketErrorCode.ToString() to it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@yifguoMSFT yifguoMSFT merged commit eceaa00 into main Oct 8, 2021
puneetg1983 added a commit that referenced this pull request Jan 27, 2022
Adding DaaS V2 API

Removing additional logging statements

Logging improvements

Add nameresolver api (#18)

* done

* resolve PR comments

Improving error handling and logging

Increment DAAS Version

Updating DiagnosticAnalysis.exe to latest

Correcting the Attribute routing paths

API changes better suited with ARM

Handling exception while removing older sessions

Correcting response slightly

Updating framework to 4.8 and adding controllers for GeoMaster

Incrementing version and enabling Diag CLI everywhere

Cpu monitoring always on mode (#21)

 AlwaysOn Monitoring mode

ILMerge for DaasRunner and DaasConsole and some CPU monitoring related changes

Reducing ServerTimeout slightly

Bug fix for SCM separation and CPU monitoring improvements

DaaS V 2.1 minor cleaup

Minor fixes in DaaS v2

Adding ServerCertificateValidationCallback

Propagating error while copying to session

Removing sessions from the runningSessions list

Handling DaasRunner restarts during V2 sessions

Adding DiagCLI report viewer to DaaS

Fetch the DiagnosticAnalysis CLI & results viewer from nuget feeds (#23)

* Fetch the DiagnosticAnalys CLI from nuget

* Fetch the DiagnosticAnalyis HTML report files from nuget
@yifguoMSFT yifguoMSFT deleted the yifguo/name_resolver_api branch March 11, 2022 17:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants