We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92b3ef4 commit d6a9ca6Copy full SHA for d6a9ca6
README.md
@@ -0,0 +1,19 @@
1
+# ip-range-to-CIDR
2
+
3
+Convert IP address range to CIDR.
4
5
+## Examples
6
7
+ % ip-range-to-cidr 192.168.0.0 192.168.0.255
8
+ 192.168.0.0/24
9
10
+Figuring out github.com's AS range:
11
12
+ % systemd-resolve github.com
13
+ github.com: 140.82.118.3 -- link: phy0
14
15
+ -- Information acquired via protocol DNS in 45.6ms.
16
+ -- Data is authenticated: no
17
18
+ % openrdap-client --json --type ip 140.82.118.3 | jq -r '"\(.startAddress) \(.endAddress)"' | xargs ./ip-range-to-cidr
19
+ 140.82.112.0/20
0 commit comments