{"id":37027661,"url":"https://github.com/openpojo/dnscontrol","last_synced_at":"2026-01-14T03:17:39.892Z","repository":{"id":92326948,"uuid":"122694230","full_name":"OpenPojo/dnscontrol","owner":"OpenPojo","description":"Simplified control over DNS routing in JAVA","archived":false,"fork":false,"pushed_at":"2024-07-22T14:34:34.000Z","size":243,"stargazers_count":5,"open_issues_count":6,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-14T01:49:44.106Z","etag":null,"topics":["dns","dnscontrol","dnsrouter","java","router","startup"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenPojo.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":"2018-02-24T02:20:24.000Z","updated_at":"2020-10-14T01:29:29.000Z","dependencies_parsed_at":"2023-05-16T21:16:22.067Z","dependency_job_id":null,"html_url":"https://github.com/OpenPojo/dnscontrol","commit_stats":null,"previous_names":["oshoukry/dns4java"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/OpenPojo/dnscontrol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenPojo%2Fdnscontrol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenPojo%2Fdnscontrol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenPojo%2Fdnscontrol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenPojo%2Fdnscontrol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenPojo","download_url":"https://codeload.github.com/OpenPojo/dnscontrol/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenPojo%2Fdnscontrol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","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":["dns","dnscontrol","dnsrouter","java","router","startup"],"created_at":"2026-01-14T03:17:39.145Z","updated_at":"2026-01-14T03:17:39.885Z","avatar_url":"https://github.com/OpenPojo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## DNSControl [![Build Status](https://travis-ci.org/OpenPojo/dnscontrol.svg?branch=master)](https://travis-ci.org/OpenPojo/dnscontrol) [![Coverage Status](https://coveralls.io/repos/github/OpenPojo/dnscontrol/badge.svg?branch=master)](https://coveralls.io/github/OpenPojo/dnscontrol?branch=master) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.openpojo/dnscontrol/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.openpojo/dnscontrol)\n### Simplified control over DNS routing in JAVA\nWhen you need more control on which DNS servers to use in Java for certain hosts or domains.\n\n#### Quick startup\nCreate a DNS Control configuration file as such:\n```properties\n# Selection order is more specific wins\n# For example, if you have a host, domain, and default override, they will be processed in that order.\n# The left hand side is the destination to override, the right hand is the list of dns servers to use.\n# Left hand entries should be unique, one entry per destination.\n# Don't need to suffix your entries with \".\" dot, this is implied, meaning, default domain will not be appended.\n\n# Setup default DNS servers, this is optional.\n# If not defined, the current host DNS servers will be used if unset (i.e. resolv.conf).\n.=10.0.0.1,10.0.0.2\n\n# Override DNS lookups for specific hosts\nwww.openpojo.com=10.1.1.1\n\n# Override DNS lookups for whole domains (starts with \".\" dot),\n# This will override lookups for *.openpojo.com (i.e. some.host.openpojo.com)\n.openpojo.com=10.0.2.2\n\n# Suppress any queries that you'd like to never resolve\nhiddenhost.openpojo.com=\n\n# Finally if you want to use your current system's DNS servers without having to know the entries.\nunchanged.resolution.openpojo.com=SYSTEM\n```\nstartup your JVM passing NameService provider as well as DNS routing file\n```sh\njava -Dsun.net.spi.nameservice.provider.1=dns,dnscontrol \\\n     -Ddnscontrol.conf.file=/path/where/dns_control_file\n```\nIf you have a hosts file you'd like to also use you may use the jdk.net.hosts.file property and add it to your startup parameters\n```sh\njava -Dsun.net.spi.nameservice.provider.1=dns,dnscontrol \\\n     -Ddnscontrol.conf.file=/path/where/dns_control_file \\\n     -Djdk.net.hosts.file=/path/where/hosts_file\n```\n##### Notes:\n1. The default value for dnscontrol.conf.file is /dnscontrol.conf on root of the classpath.\n2. The Hosts file is the highest priority when it comes to resolution.\n\n##### Environment\nCurrently DNSControl runs on Java 1.7 \u0026 1.8.\n\nBuilds on the functionality provided by [dnsjava](http://dnsjava.org/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenpojo%2Fdnscontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenpojo%2Fdnscontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenpojo%2Fdnscontrol/lists"}