You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short: "Query ipinfo.io for IP address information",
21
+
Long: `Use the ipinfo provider to query IP address information from ipinfo.io, including the IP address, hostname, and whether the IP address is a bogon.
22
+
23
+
Examples:
24
+
cnquery shell ipinfo
25
+
cnquery run ipinfo -c "ipinfo(ip('8.8.8.8')){*}"
26
+
cnquery run ipinfo -c "ipinfo(){*}" # Query your public IP"
27
+
cnquery run -c "network.interfaces.map(ips.map(_.ip)).flat.map(ipinfo(_){*})"
28
+
29
+
Notes:
30
+
- Pass an IP address to query information about that specific IP: ipinfo(ip("1.1.1.1"))
31
+
- Pass no arguments (empty IP) to query your machine's public IP: ipinfo()
32
+
- The bogon field indicates whether the returned IP is a private, link-local, or otherwise non-routable address. When bogon is true, the returned IP is the same as the requested IP.
33
+
- Set IPINFO_TOKEN environment variable to use the authenticated ipinfo.io API.
0 commit comments