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

use hostResolve instead /etc/resolv.conf #28

Closed
wants to merge 1 commit into from
Closed

use hostResolve instead /etc/resolv.conf #28

wants to merge 1 commit into from

Conversation

pengbinbin1
Copy link
Member

i think a constant variable is better than string

@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign after the PR has been reviewed.
You can assign the PR to them by writing /assign in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot
Copy link
Collaborator

Welcome @pengbinbin1! It looks like this is your first PR to kubeedge/edgemesh 🎉

@kubeedge-bot kubeedge-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 4, 2021
@@ -168,7 +168,7 @@ func (dns *EdgeDNS ) getFromRealDNS(req []byte, from *net.UDPAddr) {

// parseNameServer gets all real nameservers from the resolv.conf
func (dns *EdgeDNS) parseNameServer() ([]net.IP, error) {
file, err := os.Open("/etc/resolv.conf")
file, err := os.Open(hostResolv)
if err != nil {
return nil, fmt.Errorf("error opening /etc/resolv.conf: %v", err)
Copy link
Member

Choose a reason for hiding this comment

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

@pengbinbin1 /etc/resolv.conf in log should modified synchronously.

Copy link
Member Author

Choose a reason for hiding this comment

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

log has been modified synchronously

Signed-off-by: pengbinbin1 <pengbiny@163.com>
@kubeedge-bot kubeedge-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 19, 2021
@kubeedge-bot
Copy link
Collaborator

@pengbinbin1: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ZBoIsHere
Copy link
Member

@pengbinbin1 needs rebase

@Poorunga
Copy link
Member

Poorunga commented Nov 3, 2021

This issue has been resolved in PR #19

/close

@kubeedge-bot
Copy link
Collaborator

@Poorunga: Closed this PR.

In response to this:

This issue has been resolved in PR #19

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants