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

Fix searches dns chain element #1417

Merged

Conversation

glazychev-art
Copy link
Contributor

@glazychev-art glazychev-art commented Feb 7, 2023

Signed-off-by: Artem Glazychev artem.glazychev@xored.com

Description

From man resolv.conf :

search Search list for host-name lookup.
...
Resolver queries ... will be attempted using each component of the search path in turn until a match is found

It will be much more efficient if we check the success of the dns request one by one, rather than all at once.

Issue link

#1414

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionality
  • Documentation
  • Refactoring
  • CI

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
@codecov-commenter
Copy link

codecov-commenter commented Feb 7, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@51ab81f). Click here to learn what that means.
Patch has no changes to coverable lines.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1417   +/-   ##
=======================================
  Coverage        ?   67.75%           
=======================================
  Files           ?      267           
  Lines           ?    11611           
  Branches        ?        0           
=======================================
  Hits            ?     7867           
  Misses          ?     3239           
  Partials        ?      505           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@glazychev-art glazychev-art marked this pull request as ready for review February 7, 2023 11:05
@denis-tingaikin denis-tingaikin merged commit c1a6ac4 into networkservicemesh:main Feb 7, 2023
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request Feb 7, 2023
…k@main

PR link: networkservicemesh/sdk#1417

Commit: c1a6ac4
Author: Artem Glazychev
Date: 2023-02-07 21:00:36 +0700
Message:
  - Fix searches dns chain element (#1417)
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
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.

3 participants