{"id":20766847,"url":"https://github.com/xavier-hernandez/dnsclient-api","last_synced_at":"2026-04-21T11:37:38.842Z","repository":{"id":112017139,"uuid":"449031232","full_name":"xavier-hernandez/dnsclient-api","owner":"xavier-hernandez","description":"An .NET core API built using Swagger, DnsClient.NET, and Rollbar that retrieves A, MX, and TXT records for a domain.","archived":false,"fork":false,"pushed_at":"2023-06-02T21:26:36.000Z","size":55,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T23:47:23.860Z","etag":null,"topics":["dns","dnsclient","rollbar","rollbar-api","swagger","swagger-api","swagger-codegen","swagger-ui"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xavier-hernandez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-01-17T19:57:49.000Z","updated_at":"2022-01-17T20:31:07.000Z","dependencies_parsed_at":"2023-07-30T21:01:05.012Z","dependency_job_id":null,"html_url":"https://github.com/xavier-hernandez/dnsclient-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavier-hernandez%2Fdnsclient-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavier-hernandez%2Fdnsclient-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavier-hernandez%2Fdnsclient-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xavier-hernandez%2Fdnsclient-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xavier-hernandez","download_url":"https://codeload.github.com/xavier-hernandez/dnsclient-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243094461,"owners_count":20235513,"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","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","dnsclient","rollbar","rollbar-api","swagger","swagger-api","swagger-codegen","swagger-ui"],"created_at":"2024-11-17T11:26:26.469Z","updated_at":"2025-12-24T11:58:14.740Z","avatar_url":"https://github.com/xavier-hernandez.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dnsclient-api\nA .NET core API built using Swagger, DnsClient.NET, and Rollbar.\n\nSaw someone post on UpWork that they wanted an API to retrieve DNS information for a domain, specifically TXT records. I never heard back from them, so I took on the challenge anyway. I created this is in less than 24 hours spread out over 2 days. Its free for anyone to use now but remember it’s still rough around the edges.\n\nI created a YAML file built on OpenAPI 3.0 standards for my endpoints(paths) and models. I generated the stub code on https://editor.swagger.io/ then tweaked, fixed, and updated the code. Creating the stub code really gives a great head start.\n\nI kept authentication simple, it’s using an API key sent in the header request. Currently the API key is hardcoded to \"1\" but maybe later I'll use a database or something to store API keys. I might host this somewhere if it’s something I find interesting to host. Tie it maybe to a MySQL/MariaDB database.\n\nThe library being used to retrieve DNS information is called DnsClient.NET https://github.com/MichaCo/DnsClient.NET and available as a nuget package.\n\nI'm also using https://rollbar.com/ which is an easy way to log errors and information. Maybe if I host it on Azure I'll use Application Insights.\n\nThere are 3 available endpoints for A, MX, and TXT records.\n\n\n![alt text](https://xavier.cc/wp-content/uploads/2022/01/DnsApiCapture1.jpg)\n\n![alt text](https://xavier.cc/wp-content/uploads/2022/01/DnsApiCapture2.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavier-hernandez%2Fdnsclient-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxavier-hernandez%2Fdnsclient-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavier-hernandez%2Fdnsclient-api/lists"}