Merge branch 'master' of github.com:Mic92/whois42d into flags
This commit is contained in:
commit
9710330201
2
.gitignore
vendored
2
.gitignore
vendored
@ -22,3 +22,5 @@ _testmain.go
|
|||||||
*.exe
|
*.exe
|
||||||
*.test
|
*.test
|
||||||
*.prof
|
*.prof
|
||||||
|
|
||||||
|
whois42d
|
||||||
|
61
README.md
61
README.md
@ -43,49 +43,24 @@ it run as user nobody, who cannot bind to port 43 itself.
|
|||||||
|
|
||||||
## Supported Queries
|
## Supported Queries
|
||||||
|
|
||||||
# mntner
|
- mntner: `$ whois -h <server> HAX404-MNT`
|
||||||
$ whois -h <server> HAX404-MNT
|
- person: `$ whois -h <server> HAX404-DN42`
|
||||||
|
- aut-num: `$ whois -h <server> AS4242420429`
|
||||||
|
- dns: `$ whois -h <server> hax404.dn42`
|
||||||
|
- inetnum: `$ whois -h <server> 172.23.136.0/23` or `$ whois -h <server> 172.23.136.1`
|
||||||
|
- inet6num: `$ whois -h <server> fd58:eb75:347d::/48`
|
||||||
|
- route: `$ whois -h <server> 172.23.136.0/23`
|
||||||
|
- route6: `$ whois -h <server> fdec:1:1:dead::/64`
|
||||||
|
- schema: `$ whois -h <server> PERSON-SCHEMA`
|
||||||
|
- organisation: `$ whois -h <server> ORG-C3D2`
|
||||||
|
- tinc-keyset: `$ whois -h <server> SET-1-DN42-TINC`
|
||||||
|
- tinc-key: `$ whois -h <server> AS4242422703`
|
||||||
|
- as-set: `$ whois -h <server> 4242420000_4242423999`
|
||||||
|
- as-block: `$ whois -h <server> AS-FREIFUNK`
|
||||||
|
- route-set: `$ whois -h <server> RS-DN42-NATIVE`
|
||||||
|
|
||||||
# person
|
|
||||||
$ whois -h <server> HAX404-DN42
|
|
||||||
|
|
||||||
# aut-num
|
## TODO
|
||||||
$ whois -h <server> AS4242420429
|
|
||||||
|
|
||||||
# dns
|
- [ ] Support for filtering
|
||||||
$ whois -h <server> hax404.dn42
|
- [ ] Match multiple objects by inverse index
|
||||||
|
|
||||||
# inetnum
|
|
||||||
$ whois -h <server> 172.23.136.0/23
|
|
||||||
# or
|
|
||||||
$ whois -h <server> 172.23.136.1
|
|
||||||
|
|
||||||
# inet6num
|
|
||||||
$ whois -h <server> fd58:eb75:347d::/48
|
|
||||||
|
|
||||||
# route
|
|
||||||
$ whois -h <server> 172.23.136.0/23
|
|
||||||
|
|
||||||
# route6
|
|
||||||
$ whois -h <server> fdec:1:1:dead::/64
|
|
||||||
|
|
||||||
# schema
|
|
||||||
$ whois -h <server> PERSON-SCHEMA
|
|
||||||
|
|
||||||
# organisation
|
|
||||||
$ whois -h <server> ORG-C3D2
|
|
||||||
|
|
||||||
# tinc-keyset
|
|
||||||
$ whois -h <server> SET-1-DN42-TINC
|
|
||||||
|
|
||||||
# tinc-key
|
|
||||||
$ whois -h <server> AS4242422703
|
|
||||||
|
|
||||||
# as-set
|
|
||||||
$ whois -h <server> 4242420000_4242423999
|
|
||||||
|
|
||||||
# as-block
|
|
||||||
$ whois -h <server> AS-FREIFUNK
|
|
||||||
|
|
||||||
# route-set
|
|
||||||
$ whois -h <server> RS-DN42-NATIVE
|
|
||||||
|
6
whois42d.service
Normal file
6
whois42d.service
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Whois dn42 daemon
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/local/bin/whois42d -registry /var/lib/whois42d/registry
|
||||||
|
User=nobody
|
8
whois42d.socket
Normal file
8
whois42d.socket
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Whois dn42 daemon socket
|
||||||
|
|
||||||
|
[Socket]
|
||||||
|
ListenStream=43
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sockets.target
|
Loading…
x
Reference in New Issue
Block a user