
¿Alguien sabe cómo configurar el whois
comando para agregar servidores whois para el whois
comando?
Para su información: no es whois
el que está en OSX. Habría publicado en la versión de Apple, pero pensé que tendría más éxito aquí...
Respuesta1
El whois
binario de Mac OS X tiene muchas opciones integradas, incluida la -h
opción que le permite especificar cualquier host que desee como servidor whois.
The whois utility looks up records in the databases maintained by several Network Information Centers (NICs).
The options are as follows:
-6 Use the IPv6 Resource Center (6bone) database. It contains network names and addresses for the IPv6 net-
work.
-A Use the Asia/Pacific Network Information Center (APNIC) database. It contains network numbers used in
East Asia, Australia, New Zealand, and the Pacific islands.
-a Use the American Registry for Internet Numbers (ARIN) database. It contains network numbers used in
those parts of the world covered neither by APNIC nor by RIPE.
(Hint: All point of contact handles in the ARIN whois database end with "-ARIN".)
-b Use the Network Abuse Clearinghouse database. It contains addresses to which network abuse should be
reported, indexed by domain name.
-c country-code
This is the equivalent of using the -h option with an argument of "country-code.whois-servers.net".
-d Use the US Department of Defense database. It contains points of contact for subdomains of .MIL.
-g Use the US non-military federal government database, which contains points of contact for subdomains of
.GOV.
-h host
Use the specified host instead of the default variant. Either a host name or an IP address may be speci-
fied.
Lo único que necesitas saber es qué opción corresponde al servidor whois que deseas buscar.
Si realmente desea agregar una opción de búsqueda a whois que apunte a un nuevo servidor, necesitará el código fuente para poder recompilarlo. Si ejecuta strings /usr/bin/whois
, notará que los servidores relacionados con las opciones enumeradas anteriormente en realidad están codificados en el binario.
Respuesta2
whois
Tal como viene incluido con OSX, tiene el -h
interruptor (como lo muestra Tim), que especifica el host a usar. Hasta donde yo sé, no existe ningún archivo de configuración donde pueda configurar esto permanentemente; la mejor alternativa probablemente sea usar una función de shell similar a la siguiente:
whois() { command whois -h whois.example.com "$@" ; }