Adicionar em servidores 'whois'

1

Alguém sabe como configurar o comando whois para adicionar servidores whois para o comando whois ?

FYI: não é whois , o que está no OSX. Teria postado na versão da Apple, mas achei que conseguiria mais sucesso aqui ...

    
por Peter 20.03.2012 / 18:31

2 respostas

1

O binário do Mac OS X whois tem muitas opções incorporadas, incluindo a opção -h , que permite especificar qualquer host que você queira como um 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.

Tudo o que você precisa saber é qual opção corresponde ao servidor whois que você deseja pesquisar.

Se você quiser realmente adicionar uma opção de pesquisa a whois que aponte para um novo servidor, você precisará do código-fonte para poder recompilá-lo. Se você executar strings /usr/bin/whois , notará que os servidores relacionados às opções listadas acima são realmente codificados no binário.

    
por 20.03.2012 / 18:38
1

whois , como fornecido com o OSX, tem a opção -h (conforme mostrado por Tim), que especifica o host a ser usado. Tanto quanto sei, não há nenhum arquivo de configuração em que você possa definir isso permanentemente - a melhor alternativa é provavelmente usar uma função de shell semelhante à seguinte:

whois() { command whois -h whois.example.com "$@" ; }
    
por 20.03.2012 / 22:43