lglass.md
... ...
@@ -6,7 +6,7 @@ lglass is a Python software package designed for Internet Registries like the DN
6 6
7 7
lglass provides an event-based whois daemon with internal caching, which was written in Python. It is very simple to run an instance:
8 8
9
- $ python -m lglass.whoisd -D $PATH_TO_DATA_DIR -H $HOST -P $PORT
9
+ $ ./bin/lglass-whoisd -D $PATH_TO_DATA_DIR -H $HOST -P $PORT
10 10
11 11
## Generate zone files
12 12
... ...
@@ -14,15 +14,15 @@ lglass also provides a script to generate zone files from the registry. It's nam
14 14
15 15
To generate DNS zones:
16 16
17
- $ python zonegen.py -d $PATH_TO_DATA_DIR -n ns1... -n ns2... -e foo.bar.com dns -z dn42
17
+ $ ./bin/lglass-zonegen -d $PATH_TO_DATA_DIR -n ns1... -n ns2... -e foo.bar.com dns -z dn42
18 18
19 19
To generate IPv4 rDNS zones:
20 20
21
- $ python zonegen.py -d $PATH_TO_DATA_DIR -n ns1... -n ns2... -e foo.bar.com rdns4 -N 172.22.0.0/16
21
+ $ ./bin/lglass-zonegen -d $PATH_TO_DATA_DIR -n ns1... -n ns2... -e foo.bar.com rdns4 -N 172.22.0.0/16
22 22
23 23
To generate IPv6 rDNS zones:
24 24
25
- $ python zonegen.py -d $PATH_TO_DATA_DIR -n ns1... -n ns2... -e foo.bar.com rdns6 -N fd00::/8
25
+ $ ./bin/lglass-zonegen -d $PATH_TO_DATA_DIR -n ns1... -n ns2... -e foo.bar.com rdns6 -N fd00::/8
26 26
27 27
## Reformat RPSL files
28 28
... ...
@@ -30,4 +30,8 @@ You can also reformat RPSL files using lglass by using the lglass.rpsl module:
30 30
31 31
$ python -m lglass.rpsl < $DATA/inetnum/172.22.0.53_32
32 32
33
-At the moment, lglass doesn't support in-place operation.
... ...
\ No newline at end of file
0
+lglass.rpsl also supports in-place operation:
1
+
2
+ $ python -m lglass.rpsl -i $DATA/inetnum/172.22.0.53_32
3
+
4
+This opens the file, reads the content into memory, seeks to position 0, writes the formatted object and truncates the file.