{"id":24835768,"url":"https://github.com/tobilg/mesosdns-resolver","last_synced_at":"2025-10-14T10:30:32.731Z","repository":{"id":86825917,"uuid":"46046747","full_name":"tobilg/mesosdns-resolver","owner":"tobilg","description":"A bash script to resolve Mesos DNS SRV records to actual host:port endpoints","archived":true,"fork":false,"pushed_at":"2016-11-24T15:23:46.000Z","size":7,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T11:59:58.940Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/tobilg.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":"2015-11-12T10:49:27.000Z","updated_at":"2023-07-04T10:44:16.000Z","dependencies_parsed_at":"2023-07-16T13:24:55.683Z","dependency_job_id":null,"html_url":"https://github.com/tobilg/mesosdns-resolver","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tobilg/mesosdns-resolver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fmesosdns-resolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fmesosdns-resolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fmesosdns-resolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fmesosdns-resolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobilg","download_url":"https://codeload.github.com/tobilg/mesosdns-resolver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fmesosdns-resolver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018780,"owners_count":26086452,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2025-01-31T04:51:43.375Z","updated_at":"2025-10-14T10:30:32.725Z","avatar_url":"https://github.com/tobilg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mesosdns-resolver.sh\n\nA bash script to resolve Mesos DNS SRV record to actual host:port endpoints\n\n## Prerequisites\n\n`dig` has to be available on the system.\n\n## Installation\n\nRun `curl -cL https://raw.githubusercontent.com/tobilg/mesosdns-resolver/master/mesosdns-resolver.sh \u003e /usr/bin/mesosdns-resolver.sh \u0026\u0026 chmod +x /usr/bin/mesosdns-resolver.sh` to install the script locally.\n\n## Usage\n\n`mesosdns-resolver.sh [options]`\n\nA service name has to be supplied, all other options are non-mandatory.\n\nOptions:\n--------\n- `-sn \u003cservice name\u003e` or `--serviceName \u003cservice name\u003e` : (MANDATORY) The Mesos DNS service name (such as web.marathon.mesos).  \n- `-s \u003cserver ip\u003e` or `--server \u003cserver ip\u003e` : Can be use to query a specify DNS server. Uses local server by default.  \n- `-d` or `--drill` : Use drill instead of dig for name resolution, as dig is not available in Alpine Linux (and it has a smaller footprint).  \n- `-m` or `--mesosSuffix` : To resolve service groups the name suffix is needed (defaults to marathon.mesos in mesos DNS), keep in mind that the script does NOT set a default for backwards compatibility reasons.  \n- `-a` or `--all` : If specified, all endpoints of a service will be returned, with standard separator \"comma\".  \n- `-pi \u003cport index\u003e` or `--portIndex \u003cport index\u003e` : By default, the first port (index 0) will be returned. If another port index shall be used, specify the index.  \n- `-se \u003cseparator\u003e` or `--separator \u003cseparator\u003e` : The separator to be used then concatenating multiple endpoint results (only usable together with the --all parameter).  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilg%2Fmesosdns-resolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobilg%2Fmesosdns-resolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilg%2Fmesosdns-resolver/lists"}