node-red-contrib-name2ipv4 1.0.8

Returns the ipv4 of a domain name.

npm install node-red-contrib-name2ipv4

Gets the IP of a domain name. The IP version 4 not v6.

  • If in msg.payload there's a .domain_name:string, it overrides the domain_name setup in the config box Name.
  • If in msg.payload there's a .dns_ip:string, it overrides the DNS IP setup in the config box DNS IP.

Returns the data in msg.payload :

{
  ok: boolean,
  error: errortxt,
  dns_ip: ip,
  domain: domain,
  ip: ip
}

Uses by default the DNSs of the OS, but you can specify a different one in the config box DNS.

name2ipv4(v1.0.8)

Node Info

Version: 1.0.8
Updated 2 years, 8 months ago
License: ISC
Rating: 5.0 1

Actions

Rate:

Downloads

2 in the last week

Nodes

  • name2ipv4

Keywords

  • node-red

Maintainers