dnscontrol/docs/_functions/global/IP.md
Patrik Kernstock c65ba1c84c General docs improvements (#481)
* docs improvements

* Updated matrix as part of "go generate" (e.g. adds SSHFP row)

* Commiting full matrix file

* Added docs for SSHFP record

* Matrix: Mark OVH as SSHFP-capable in docs (see PR #482)
2019-05-20 22:33:50 -04:00

341 B

name parameters
IP
ip

Converts the IP address from string to an integer. This allows performing mathematical operations with the IP address.

{% include startExample.html %} {% highlight js %}

var addrA = IP('1.2.3.4') var addrB = addrA + 1 // addrB = 1.2.3.5

{%endhighlight%} {% include endExample.html %}