Closed atikrahman1 closed 3 years ago
I have solved the issue by editing the
https://github.com/d3mondev/puredns/blob/dc73bee6d3b580ffc82db7602a9d9708b1659269/pkg/massdns/runner.go#L41
What I did is to solve this problem edit this code and added --root
argument end of the command.
args := []string{"-q", "-r", resolvers, "-o", "Snl", "-t", "A", "--root", "--retry", "REFUSED", "--retry", "SERVFAIL", "-w", output}
and rebuild the package.
step to solve
Go to /root/go/pkg/mod/github.com/d3mondev/puredns/v2@v2.0.1/pkg/massdns/runner.go
Edit and save the file
cd /root/go/pkg/mod/github.com/d3mondev/puredns/v2@v2.0.1
go install
Should PIN this. Great find!
Puredns now supports running massdns as root since v2.1.0!
Hi ,
Everything seems fine. Massdns installed but puredns throwing error that
puredns error: error resolving domains: exit status 1
I trace the issue. The problem is actually in massdns. that massdns will not allow you to run massdns without supplying --root argument when you are the root user. Puredns doesn't supply the --root argument while running the massdns.