Skip to content

Commit

Permalink
fix: containerdbg bug with new resolv.conf configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
barp committed May 14, 2023
1 parent 042df98 commit 4f4b098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/dnsproxy/dnsproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import (
"os"
"regexp"

"github.com/miekg/dns"
"github.com/google/containerdbg/proto"
"github.com/miekg/dns"
)

const ResolveConfPath = "/etc/resolv.conf"
const nameserverRegexp = "\\nnameserver\\s+.*\\n"
const nameserverRegexp = "nameserver\\s+.*\\n"

var nameserverRedirect = fmt.Sprintf("\nnameserver 127.0.0.1\n%s\n", ContainerdbgComment)

Expand Down

0 comments on commit 4f4b098

Please sign in to comment.