![명령줄에서 RIPE 데이터베이스를 쿼리하는 방법은 무엇입니까?](https://linux55.com/image/27887/%EB%AA%85%EB%A0%B9%EC%A4%84%EC%97%90%EC%84%9C%20RIPE%20%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%B2%A0%EC%9D%B4%EC%8A%A4%EB%A5%BC%20%EC%BF%BC%EB%A6%AC%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
(Fedora에서) Stock을 사용하면 whois
IP 주소에 대한 정보를 쉽게 얻을 수 있습니다.
$ whois SOME_IP
% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
[..]
% Information related to 'SOME_IP/SOME_AS'
route: SOME_ROUTE
mnt-by: SOME_STRING
[..]
이제 "mnt-by"에 SOME_STRING이 포함된 항목 검색을 되돌리고 싶습니다.
나는 합격했다성숙한 웹 인터페이스.
하지만 명령줄을 통해 이 작업을 수행하는 방법은 무엇입니까?
(예: 더 쉬운 후처리/스크립팅을 위해)
성숙한 문서옵션 -i
, 그러나:
$ whois.md -h riswhois.ripe.net -i mnt-by SOME_STRING
Warning: RIPE flags used with a traditional server.
[just options listing without -i]
$ jwhois -h riswhois.ripe.net -i mnt-by SOME_STRING
[Querying riswhois.ripe.net]
[riswhois.ripe.net]
% This is RIPE NCC's Routing Information Service
% whois gateway to collected BGP Routing Tables
% IPv4 or IPv6 address to origin prefix match
%
% For more information visit http://www.ripe.net/ris/riswhois.html
% ERROR: Invalid search key
그러한 쿼리에 대해 다른 whois 클라이언트를 사용해야 합니까?
답변1
이것기록된 RIPE whois 옵션작업whois.md 그리고올바른 RIPE whois 서버 주소:
$ whois.md -h whois.ripe.net -i mnt-by SOME_STRING
[..]
route: SOME_ROUTE
descr: SOME_DESC
origin: SOME_AS
mnt-by: SOME_STRING
source: RIPE # Filtered
[.. more entries ..]
그리고GNU jwhois반드시명확하게 말하다이는 -i ...
쿼리의 일부여야 합니다.
$ jwhois -h whois.ripe.net -- -i mnt-by SOME_STRING
[Querying whois.ripe.net]
[whois.ripe.net]
% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
% See http://www.ripe.net/db/support/db-terms-conditions.pdf
[..]
route: SOME_ROUTE
descr: SOME_DESC
origin: SOME_AS
mnt-by: SOME_STRING
source: RIPE # Filtered
[.. more entries ..]
참고하세요--명령의 플래그입니다. else는 옵션 -i
으로 해석됩니다 jwhois
.