{"id":37823750,"url":"https://github.com/armakuni/go-dns-assertions","last_synced_at":"2026-01-16T15:43:54.855Z","repository":{"id":194668308,"uuid":"691566298","full_name":"armakuni/go-dns-assertions","owner":"armakuni","description":"A Golang library to assert that DNS records exist by performing lookups on a given nameserver.","archived":false,"fork":false,"pushed_at":"2024-09-09T08:48:30.000Z","size":89,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-09-08T14:58:12.314Z","etag":null,"topics":["dns","go","golang","infrastructure-testing","library"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/armakuni/go-dns-assertions","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/armakuni.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-09-14T12:46:33.000Z","updated_at":"2023-09-29T13:28:57.000Z","dependencies_parsed_at":"2023-09-14T15:23:43.481Z","dependency_job_id":"b982e634-8954-4325-ae13-8231e9d4a3a0","html_url":"https://github.com/armakuni/go-dns-assertions","commit_stats":null,"previous_names":["armakuni/go-dns-assertions"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/armakuni/go-dns-assertions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armakuni%2Fgo-dns-assertions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armakuni%2Fgo-dns-assertions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armakuni%2Fgo-dns-assertions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armakuni%2Fgo-dns-assertions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armakuni","download_url":"https://codeload.github.com/armakuni/go-dns-assertions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armakuni%2Fgo-dns-assertions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","go","golang","infrastructure-testing","library"],"created_at":"2026-01-16T15:43:54.747Z","updated_at":"2026-01-16T15:43:54.823Z","avatar_url":"https://github.com/armakuni.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNS Assertions for Golang Tests\n\nThis is a Golang library to assert that DNS records exist by performing lookups on a given nameserver.\n\n## Purpose\n\nAdding tests that make requests to real DNS servers is probably not something you want to do often when building an application.\nThis library's primary intended use is for write infrastructure tests.\nIf you are using Golang to test you infrastructure as code (when using [Terratest](https://terratest.gruntwork.io/) for example) then this could be a useful tool.\n\n## Usage\n\nInstall this library using the usual `god mod` command:\n\n```shell\ngo mod get github.com/armakuni/go-dns-assertions\n```\n\nYou can now write tests using Go test that look like this:\n\n```go\nfunc TestFetchDNSRecords(t *testing.T) {\n\tclient := dnsassertions.NewTestClient(t)\n\n\tresult := client.FetchDNSRecords(\"mysite.com\", \"8.8.8.8\")\n\tresult.AssertHasARecord(\"1.2.3.4\")\n\n\tresultWww := client.FetchDNSRecords(\"www.mysite.com\", \"8.8.8.8\")\n\tresultWww.AssertHasCNAMERecord(\"mysite.com.\")\n}\n```\n\n## Documentation\n\nAPI docs can be found at [https://pkg.go.dev/github.com/armakuni/go-dns-assertions](https://pkg.go.dev/github.com/armakuni/go-dns-assertions).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmakuni%2Fgo-dns-assertions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmakuni%2Fgo-dns-assertions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmakuni%2Fgo-dns-assertions/lists"}