{"id":35550626,"url":"https://github.com/corelan/dnshjmon","last_synced_at":"2026-01-04T07:02:59.070Z","repository":{"id":12828043,"uuid":"15503347","full_name":"corelan/dnshjmon","owner":"corelan","description":"dnshjmon is a free tool to monitor public DNS records and report hijacks","archived":false,"fork":false,"pushed_at":"2013-12-30T10:25:40.000Z","size":236,"stargazers_count":90,"open_issues_count":0,"forks_count":24,"subscribers_count":17,"default_branch":"master","last_synced_at":"2023-08-07T10:13:10.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/corelan.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}},"created_at":"2013-12-29T04:08:53.000Z","updated_at":"2023-05-06T15:05:15.000Z","dependencies_parsed_at":"2022-08-30T14:11:51.721Z","dependency_job_id":null,"html_url":"https://github.com/corelan/dnshjmon","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/corelan/dnshjmon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corelan%2Fdnshjmon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corelan%2Fdnshjmon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corelan%2Fdnshjmon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corelan%2Fdnshjmon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corelan","download_url":"https://codeload.github.com/corelan/dnshjmon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corelan%2Fdnshjmon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28199379,"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":"2026-01-04T02:00:06.065Z","response_time":58,"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":"2026-01-04T07:01:48.913Z","updated_at":"2026-01-04T07:02:59.061Z","avatar_url":"https://github.com/corelan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"dnshjmon\n========\n\ndnshjmon is a free tool to monitor public DNS records and report hijacks\n\n\nSyntax\n------\npython dnshjmon.py [arguments]\n\nValid arguments:\n\n     -h                   : show help\n\n     -d \u003cdns configfile\u003e  : full path to dns config file.\n                            Defaults to dnshjmon_dns.conf in current folder\n\n     -s \u003csmtp configfile  : full path to smtp config file.\n                            Defaults to dnshjmon_smtp.conf in current folder\n\n     -n \u003cdns server file\u003e : full path to file that contains\n                            DNS server IP addresses\n                            Use this setting to overrule the default behaviour\n                            of using the OS DNS server configuration\n     ** Note: option -n requires the python-dnspython library **\n              (http://www.dnspython.org/)\n\n     -mail                : Test e-mail configuration\n\n\nDNS Config file\n----------------\nThis is a flat ascii file (dnshjmon_dns.conf) that contains the list with hostnames that need to be checked and the list with valid IPs for that hostname.\n\n`hostname=ip`\n\nYou can specify multiple IP addresses and/or even use CIDR notation. Simply separate entries with a comma:\n\n`hostname=127.0.0.1,192.168.0.1/25`\n\nIf you want to exclude a certain IP, prefix it with a dash  \n\n`hostname=127.0.0.1,192.168.0.1/25,-192.168.0.5`\n\n\nSMTP Config file\n----------------\nThis file (dnshjmon_smtp.conf) will be created the first time you run dnshjmon.py, using an interactive wizard.\nIf you want to add additional mailserver configurations or change the existing one, simply edit the conf file.\nYou can test if the mail configuration works correctly by using the `-mail` argument.\nBy default, emails will be sent with high-priority and requesting a return-receipt.\n\n\nCustom nameservers\n------------------\nBy default, dnshjmon will use the OS DNS configuration. If you want to use specific nameservers, you'll need to install the python-dnspython library.  dnshjmon will automatically detect if the library is present and allow you to use the -n option.\nUsing -n, you can specify the location of a flat ascii file that contains the IP addresses of the nameservers to use.\n\n\nUsage\n-----\n\nSimply schedule the script as a Cron job or Scheduled Task.\nPlease note that the script was written and tested against python 2.7.\nMore info: https://www.corelan.be/index.php/2013/12/29/a-chain-is-only-as-strong-as-its-weakest-link-dns-hijack-monitoring/\n\nDisclaimer\n----------\nUse at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorelan%2Fdnshjmon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorelan%2Fdnshjmon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorelan%2Fdnshjmon/lists"}