dnsx Action makes it easy to orchestrate dnsx with GitHub Action.
GitHub Action running dnsx
on list of hosts
- name: ๐ฅ dnsx - DNS Resolver
uses: projectdiscovery/dnsx-action@main
with:
list: hosts.txt
GitHub Action running dnsx
with custom resolvers
- name: ๐ฅ dnsx - DNS Resolver
uses: projectdiscovery/dnsx-action@main
with:
list: hosts.txt
resolver: resolver.txt
Example workflow: .github/workflows/dnsx.yml
name: ๐ฅ dnsx - DNS Resolver
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
dnsx-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.17
- name: ๐ฅ dnsx - DNS Resolver
uses: projectdiscovery/dnsx-action@main
with:
list: hosts.txt
- name: GitHub Workflow artifacts
uses: actions/upload-artifact@v2
with:
name: dnsx.log
path: dnsx.log
Key | Description | Required |
---|---|---|
list |
List of hosts to perform DNS resolution | true |
output |
File to save output result (default - dnsx.log) | false |
json |
Write results in JSON format | false |
resolver |
List of custom resolvers to use | false |
flags |
Additional dnsx CLI flags to use | false |