
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
hetzner-dns-client
Advanced tools
Hetzner DNS API client for Node.js
npm i hetzner-dns-client
You can use this client library with your Node.js project.
import {HetznerDnsClient, DnsRecord} from 'hetzner-dns-client';
// create client instance
const client = new HetznerDnsClient("YOUR_API_TOKEN");
// get zone by ID
const zone = await client.zones.get("ZONE_ID");
// create apex/root zone record of type "A" to 127.0.0.1
const record = await zone.createRecord("@", DnsRecord.Type.A, "127.0.0.1");
import {HetznerDnsClient, DnsRecord, Zone} from 'hetzner-dns-client';
// create client instance
const client: HetznerDnsClient = new HetznerDnsClient("YOUR_API_TOKEN");
// get zone by ID
const zone: Zone = await client.zones.get("ZONE_ID");
// create apex/root zone record of type "A" to 127.0.0.1
const record: DnsRecord = await zone.createRecord("@", DnsRecord.Type.A, "127.0.0.1");
Methods that may throw an error are marked with throws
in the documentation and specify what error types may be thrown. You can catch these errors with a try/catch
block.
For example:
try {
const zone = await client.zones.get("ID that does not exist");
}
catch (err) {
if (err instanceof ApiError)
console.error(err); // the Hetzner API returned an error, e.g. "Zone not found"
else if (err instanceof ClientParseError)
console.error(err); // the client could not understand or parse the response from the Hetzner API
else
console.error(err); // some other error occurred
}
The official Hetzner DNS API documentation can be found on https://dns.hetzner.com/api-docs/.
Note: The Hetzner DNS API documentation appears to be incomplete and contains a few errors. The documentation of this client library is a separate documentation and some functionality may be described differently.
If you find any errors in the documentation, or think that further clarification is needed, please open an issue or pull request.
The client library documentation is available in DOCS.md in this repository.
FAQs
Hetzner DNS API client for Node.js
The npm package hetzner-dns-client receives a total of 5 weekly downloads. As such, hetzner-dns-client popularity was classified as not popular.
We found that hetzner-dns-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.