Dnsx Agent Setup to perform multiple dns queries

Dnsx Command

Using {{domain}} ReconNess replace {{domain}} for the subdomain.

echo {{domain}} | ./dnsx -silent -a -resp

Click here to know more about Dnsx

This Agent run in each subdomain.

Dnsx Script

We save the DNS Lookup inside the Subdomain's Notes

return new ReconNess.Core.Models.ScriptOutput { Note = lineInput };

Check the Readme on GitHub to know more about the Script.

Dnsx Dockerfile Entry

# -------- Agents dependencies --------
# To allow run dnsx inside the docker
RUN apt-get update && apt-get install -y git wget
RUN wget https://golang.org/dl/go1.16.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz
RUN export GOPATH=$HOME/go
RUN export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
RUN GO111MODULE=on /usr/local/go/bin/go get -v github.com/projectdiscovery/dnsx/cmd/dnsx
# -------- End Agents dependencies --------

Dnsx Command for Docker

echo '{{domain}}' | /root/go/bin/dnsx -silent -a -resp