{"id":23151600,"url":"https://github.com/nbuchwitz/nc_dnsapi","last_synced_at":"2025-08-17T20:32:02.740Z","repository":{"id":57445228,"uuid":"144276875","full_name":"nbuchwitz/nc_dnsapi","owner":"nbuchwitz","description":"API wrapper for the netcup DNS API","archived":false,"fork":false,"pushed_at":"2023-03-16T16:21:21.000Z","size":29,"stargazers_count":15,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-09T10:08:00.522Z","etag":null,"topics":["api","dns","hacktoberfest","netcup"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nbuchwitz.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":"2018-08-10T11:16:51.000Z","updated_at":"2024-09-06T10:08:11.000Z","dependencies_parsed_at":"2022-09-26T17:30:48.971Z","dependency_job_id":null,"html_url":"https://github.com/nbuchwitz/nc_dnsapi","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbuchwitz%2Fnc_dnsapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbuchwitz%2Fnc_dnsapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbuchwitz%2Fnc_dnsapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbuchwitz%2Fnc_dnsapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nbuchwitz","download_url":"https://codeload.github.com/nbuchwitz/nc_dnsapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230163584,"owners_count":18183256,"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":["api","dns","hacktoberfest","netcup"],"created_at":"2024-12-17T18:35:00.797Z","updated_at":"2024-12-17T18:35:01.516Z","avatar_url":"https://github.com/nbuchwitz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nc_dnsapi\nA simple API wrapper for the netcup DNS API\n\n```python\nfrom nc_dnsapi import Client, DNSRecord\n\ncustomer = 123456\napi_key = \"your-personal-api-key\"\napi_password = \"your-private-api-password\"\n\nwith Client(customer, api_key, api_password) as api:\n    # fetch records\n    records = api.dns_records(\"example.com\")\n    for record in records:\n\tprint(record)\n    \n    # fetch zone details\n    zone = api.dns_zone(\"example.com\")\n    print(zone)\n    \n    # update single record\n    api.update_dns_record(\"example.com\", DNSRecord(\"my-hostname\", \"A\", \"127.0.0.2\", id=108125))\n    \n    # update list of records\n    api.update_dns_record(\"example.com\", [ DNSRecord(\"my-hostname\", \"A\", \"127.0.0.2\", id=108125), \n        DNSRecord(\"my-hostname2\", \"A\", \"127.0.0.2\", id=108126)])\n        \n    # delete record\n    api.delete_dns_record(\"example.com\", DNSRecord(\"my-hostname\", \"A\", \"127.0.0.2\", id=108125))\n    \n    # add record\n    api.add_dns_record(\"example.com\", DNSRecord(\"another-host\", \"AAAA\", \"::1\"))\n\n    # update zone\n    zone = api.dns_zone(\"example.com\")\n    zone.refresh = 3600\n    api.update_dns_zone(\"example.com\", zone)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbuchwitz%2Fnc_dnsapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnbuchwitz%2Fnc_dnsapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbuchwitz%2Fnc_dnsapi/lists"}