Skip to content

Commit d6a9ca6

Browse files
authored
Create README.md
1 parent 92b3ef4 commit d6a9ca6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)