
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
github.com/CyCoreSystems/netdiscover
Advanced tools
Netdiscover is a CLI tool and Golang library by which network information may be discovered on various cloud platforms and bare metal installations. The typical use case is, when running inside Kubernetes or a container, to discover the public IP and/or hostname of the node on which the container is running. This is commonly necessary to configure VoIP applications.
In the root directory can be found a CLI tool which can be used to query network information. There are two options:
-provider <name>: if a cloud provider is specified, that provider's
metadata services will be used to determine the network information.
Otherwise, a best-effort approach will be used.-field <name>: if a field is specified, only that particular network
detail will be returned. Otherwise, a JSON object will be returned
containing all network information which was discovered.Currently, this tool supports four cloud providers:
aws: Amazon Web Servicesazure: Microsoft Azure Clouddo: Digital Oceangcp: Google Cloud PlatformNot all providers support all network details. General discovery should be used for baremetal or other unsupported environments. It will use the public service (jsonip.io) to determine the necessary network data.
I am happy to accept pull requests to implement more providers.
Currently, this tool supports four network data fields:
hostname: the public hostname of the nodeprivatev4: the private (internal) IPv4 address of the nodepublicv4: the public (external) IPv4 address of the nodepublicv6: the public (external) IPv6 address of the nodeNote that for DigitalOcean's hostname feature to work as expected, you need to change the Droplet name to the fully-qualified domain name of the host. Doing so will also cause DigitalOcean to register the reverse DNS lookup for the Droplet's IP address, so this should generally be done, anyway.
Retrieve the public version 4 IP address of the node instance on GCP:
netdiscover -provider gcp -field publicv4
Retrieve all network information on Amazon Web Services platform:
netdiscover -provider aws
Retrieve the version 6 IP address of a baremetal machine:
netdiscover -field publicv6
FAQs
Unknown package
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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.