{"id":20042874,"url":"https://github.com/topscoder/domainer","last_synced_at":"2026-01-16T00:58:55.708Z","repository":{"id":171563128,"uuid":"647919991","full_name":"topscoder/domainer","owner":"topscoder","description":"Domainer is a Go script that allows you to extract the root domains from a list of domains based on the ARPANET RFC's for (top-level) domains (TLDs). It removes the scheme (if present) from the input domains and extracts the last label before the TLD to produce the root domain. The extracted root domains are then printed as output.","archived":false,"fork":false,"pushed_at":"2024-05-24T07:06:46.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T05:31:49.494Z","etag":null,"topics":["bug-bounty-tools","domain","go","root-domain","tld"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/topscoder.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}},"created_at":"2023-05-31T20:12:22.000Z","updated_at":"2025-02-28T21:50:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b97d7b4-123c-4fbf-9de2-3db4e91770e1","html_url":"https://github.com/topscoder/domainer","commit_stats":null,"previous_names":["topscoder/domainer"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/topscoder/domainer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topscoder%2Fdomainer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topscoder%2Fdomainer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topscoder%2Fdomainer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topscoder%2Fdomainer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/topscoder","download_url":"https://codeload.github.com/topscoder/domainer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topscoder%2Fdomainer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276077051,"owners_count":25581287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"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":["bug-bounty-tools","domain","go","root-domain","tld"],"created_at":"2024-11-13T10:54:01.580Z","updated_at":"2025-09-20T09:31:19.551Z","avatar_url":"https://github.com/topscoder.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Domainer - Extract Root Domains from a List of Domains\n\nDomainer is a Go script that extracts the root domain from a list of domains based on a provided list of top-level domains (TLDs) that follows the rules of ARPANET host names as specified in RFC1034 and RFC1123. The list of Top-Level Domains is based on the [official TLD list](https://data.iana.org/TLD/tlds-alpha-by-domain.txt). Also it respects so called Country Code Top-Level Domains.\n\n## Installation\n\nTo install Domainer, you can use the following command:\n\n```shell\ngo install github.com/topscoder/domainer@latest\n```\n\nThis will install the Domainer script as an executable in your Go bin directory.\n\n## Usage\n\nTo use Domainer, provide a list of domains via stdin (standard input). The script will extract the root domain for each domain and print the results to stdout (standard output).\n\n### Example Usage:\n\n```shell\ncat domains.txt | domainer\n```\n\nThe domains should be provided as separate lines in the `domains.txt` file.\n\n## TLDs\n\nDomainer uses an internal list of TLDs, so there is no need for the end user to provide a separate TLDs file. The internal list includes a comprehensive set of TLDs, including both generic TLDs (gTLDs) and country code TLDs (ccTLDs).\n\n## Notes\n\n- The script follows the rules for ARPANET host names as specified in RFC1034 and RFC1123.\n- The list of Top-Level Domains is based on the [official TLD list](https://data.iana.org/TLD/tlds-alpha-by-domain.txt).\n- It respects so called Country Code Top-Level Domains, like .co.uk and .com.mx\n- Domainer removes the scheme (if present) from the input domain before extracting the root domain.\n- If a domain doesn't match any of the internal TLDs or if the extracted root domain is determined to be invalid, it will be marked as \"none\".\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## Credits\n\nThis script was created by [topscoder](https://github.com/topscoder) together with ChatGPT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopscoder%2Fdomainer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopscoder%2Fdomainer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopscoder%2Fdomainer/lists"}