{"id":34151017,"url":"https://github.com/root4loot/nsfinder","last_synced_at":"2026-05-29T03:31:24.868Z","repository":{"id":318118802,"uuid":"1049828088","full_name":"root4loot/nsfinder","owner":"root4loot","description":"DNS resolver discovery","archived":false,"fork":false,"pushed_at":"2025-09-03T16:58:48.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-17T20:22:18.534Z","etag":null,"topics":["discovery","dns","nameserver","osint","reconnaissance"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/root4loot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-03T14:53:47.000Z","updated_at":"2025-09-03T16:58:52.000Z","dependencies_parsed_at":"2025-10-05T08:45:26.882Z","dependency_job_id":"5cbab9db-cb47-4a3b-9ba4-b57312458d2d","html_url":"https://github.com/root4loot/nsfinder","commit_stats":null,"previous_names":["root4loot/nsfinder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/root4loot/nsfinder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root4loot%2Fnsfinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root4loot%2Fnsfinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root4loot%2Fnsfinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root4loot%2Fnsfinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/root4loot","download_url":"https://codeload.github.com/root4loot/nsfinder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root4loot%2Fnsfinder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33635961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discovery","dns","nameserver","osint","reconnaissance"],"created_at":"2025-12-15T05:04:17.336Z","updated_at":"2026-05-29T03:31:24.863Z","avatar_url":"https://github.com/root4loot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nsfinder \n\n[![CI](https://github.com/root4loot/nsfinder/actions/workflows/ci.yml/badge.svg)](https://github.com/root4loot/nsfinder/actions/workflows/ci.yml)\n\nA tool to find DNS resolvers for a target (domain or IP) using:\n\n- WHOIS nameserver extraction\n- NS record traversal\n- ASN-based IP range scanning\n- Port 53 scanning (UDP/TCP)\n- Curated public DNS resolvers\n\n## Quick Start\n\n```bash\ngo get github.com/root4loot/nsfinder/pkg/nsfinder\n```\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"time\"\n    \"github.com/root4loot/nsfinder/pkg/nsfinder\"\n)\n\nfunc main() {\n    finder := nsfinder.NewFinder(\u0026nsfinder.Options{\n        EnableWhois:     true,\n        EnableNSLookup:  true,\n        EnablePortScan:  false, // Can be slow\n        Concurrency:    10,\n        Timeout:        30 * time.Second,\n    })\n\n    go func() {\n        for result := range finder.Results {\n            if result.Error == nil {\n                fmt.Printf(\"Found: %s from %s (target: %s)\\n\", \n                    result.Resolver, result.Source, result.Target)\n            }\n        }\n    }()\n\n    finder.FindStream(\"example.com\", \"test.com\")\n}\n```\n\n## Configuration Options\n\n```go\ntype Options struct {\n    EnableWhois     bool          // Extract nameservers from whois data\n    EnableNSLookup  bool          // Follow NS record chains\n    EnablePortScan  bool          // Scan for port 53 services\n    EnableASNLookup bool          // Use ASN data for IP range finding\n    EnableDNSGrab   bool          // Use existing dnsgrab functionality\n    Timeout         time.Duration // Timeout for operations\n    Concurrency     int           // Number of concurrent workers\n    Verbose         bool          // Verbose logging\n}\n```\n\n## Core Types\n\n```go\ntype Finder struct {\n    Options *Options\n    Results chan Result\n}\n\ntype Result struct {\n    Resolver string // The found DNS resolver\n    Source   string // Finding method (whois, ns-records, etc.)\n    Target   string // Original target\n    Error    error  // Any error encountered\n}\n```\n\n## Example Usage\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"log\"\n    \"time\"\n\n    \"github.com/root4loot/nsfinder/pkg/nsfinder\"\n)\n\nfunc main() {\n    finder := nsfinder.NewFinder(\u0026nsfinder.Options{\n        EnableWhois:           true,\n        EnableNSLookup:        true,\n        EnablePortScan:        false,\n        EnableASNLookup:       false,\n        EnableDNSGrab:         false,\n        EnablePublicResolvers: true,\n        Concurrency:           10,\n        Timeout:               30 * time.Second,\n        Verbose:               true,\n    })\n\n    fmt.Println(\"Stream\")\n    go func() {\n        for result := range finder.Results {\n            if result.Error != nil {\n                log.Printf(\"Error: %s - %v\", result.Target, result.Error)\n            } else {\n                fmt.Printf(\"Found: %s from %s (target: %s)\\n\",\n                    result.Resolver, result.Source, result.Target)\n            }\n        }\n    }()\n\n    finder.FindStream(\"example.com\", \"hackerone.com\")\n    time.Sleep(10 * time.Second)\n}\n\n// Found: a.ns.hackerone.com:53 from whois (target: hackerone.com)\n// Found: b.ns.hackerone.com:53 from whois (target: hackerone.com)\n// Found: a.ns.hackerone.com:53 from ns-records (target: hackerone.com)\n// Found: 162.159.0.31:53 from ns-records (target: hackerone.com)\n// Found: [2400:cb00:2049:1::a29f:1f]:53 from ns-records (target: hackerone.com)\n// ...\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Add tests for new functionality\n4. Ensure all tests pass\n5. Submit a pull request\n\n## License\n\nMIT License - see LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot4loot%2Fnsfinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froot4loot%2Fnsfinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot4loot%2Fnsfinder/lists"}