8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello, do you know any clever way to get information whether certain domain name become avaialble for registration from bash script?
Would be good to check for the availability like every 100miliseconds, i want to catch domain. (1 Reply)
Discussion started by: postcd
1 Replies
2. UNIX for Dummies Questions & Answers
Hello, I was wondering how I can do a whois from a file with lots of ip's in this format
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
And so on, then print the whois data from all the ip's to one single file sort of like this "whois -r 'ipfile' > 'whoisfile'"
Thanks in advance!
... (3 Replies)
Discussion started by: uxfuser
3 Replies
3. Shell Programming and Scripting
Hello folks,
I have list of ips like
1.1.1.1
2.2.2.2
3.3.3.3
4.4.4.4
whois 1.1.1.1 |grep -E 'country|Country'
it show country=US or whatever.
so i have number of ips in text file, how i can use above script to automate output like
1.1.1.1 US
2.2.2.2 CA
3.3.3.3 FR (3 Replies)
Discussion started by: learnbash
3 Replies
4. Shell Programming and Scripting
Hi guys,
I need a script that given an IP address, say IPA, do the following:
- queries "whois IPA"
- extracts, from the whois answer, the IP network string indicated after the string "route:",
- searches the IP network string in a given text file, say CIDR2ASN.txt, which has several lines,... (1 Reply)
Discussion started by: stesecci
1 Replies
5. UNIX for Advanced & Expert Users
Write a quick shell snippet to find all of the IPV4 IP addresses
in any and all of the files under /var/lib/output/*, ignoring
whatever else may be in those files. Perform a reverse lookup on
each, and format the output neatly, like "IP=192.168.0.1,
... (0 Replies)
Discussion started by: choco4202002
0 Replies
6. Shell Programming and Scripting
I have a script that does a whois lookup that worked fine on a previous server. It used whois with the t option to timeout in 5 seconds. A while back I upgraded to a new server and the script had problems. I found out the new server didn't even have whois. The whois command was symlinked to jwhois... (4 Replies)
Discussion started by: PWSwebmaster
4 Replies
7. Shell Programming and Scripting
Hello,
I wrote a basic script to query a whois server using the whois system command to retrieve information about IP's. I have file containing the ip addresses which I feed to the whois command via a while loop. This seems to work sometimes. Most of the time, the whois command seems not to... (0 Replies)
Discussion started by: aliberson
0 Replies
8. IP Networking
Hey folks, I've been charged with the job of finding out who's been screwing around with the download counts on our site. So now I have this huge list of IP's that I supposed to match to such and such developer.
I was told by one guy that I should just do a traceroute and that'd tell me where... (2 Replies)
Discussion started by: DumDum
2 Replies
WHOIS(1) Debian GNU/Linux WHOIS(1)
NAME
whois - client for the whois directory service
SYNOPSIS
whois [ -h HOST ] [ -p PORT ] [ -aCFHlLMmrRSVx ] [ -g SOURCE:FIRST-LAST ] [ -i ATTR ] [ -S SOURCE ] [ -T TYPE ] object
whois [ -t ] [ -v ] template whois [ -q ] keyword
DESCRIPTION
whois searches for an object in a RFC 3912 database.
This version of the whois client tries to guess the right server to ask for the specified object. If no guess can be made it will connect
to whois.networksolutions.com for NIC handles or whois.arin.net for IPv4 addresses and network names.
OPTIONS
-h HOST Connect to HOST.
-H Do not display the legal disclaimers some registries like to show you.
-p PORT Connect to PORT.
--verbose
Be verbose.
--help Display online help.
Other options are flags understood by RIPE-like servers.
NOTES
Please remember that whois.networksolutions.com by default will only search in the domains database. If you want to search for NIC handles
you have to prepend a ! character. When you do this, the default server becomes whois.networksolutions.com.
When querying whois.arin.net for IPv4 or IPv6 networks, the CIDR netmask length will be automatically removed from the query string.
When querying whois.nic.ad.jp for AS numbers, the program will automatically convert the request in the appropriate format, inserting a
space after the string AS.
When querying whois.denic.de for domain names and no other flags have been specified, the program will automatically add the flag -T dn.
When querying whois.dk-hostmaster.dk for domain names and no other flags have been specified, the program will automatically add the flag
--show-handles.
RIPE-specific command line options are ignored when querying non-RIPE servers. This may or may not be the behaviour intended by the user.
When querying a non-standard server, command line options which are not to be interpreted by the client should always follow the -- separa-
tor (which marks the beginning of the query string).
If the /etc/whois.conf config file exists, it will be consulted to find a server before applying the normal rules. Each line of the file
should contain a regular expression to be matched against the query text and the whois server to use, separated by white space.
The whois protocol does not specify an encoding for characters which cannot be represented by ASCII and implementations vary wildly. If
the program knows that a specific server uses a certain encoding, if needed it will transcode the server output to the encoding specified
by the current system locale.
Command line arguments will always be interpreted accordingly to the current system locale and converted to the IDN ASCII Compatible Encod-
ing.
Files
/etc/whois.conf
ENVIRONMENT
LANG When querying whois.nic.ad.jp and whois.jprs.jp english text is requested unless the LANG or LC_MESSAGES environment variables spec-
ify a Japanese locale.
WHOIS_OPTIONS
A list of options which will be evalued before the ones specified on the command line.
WHOIS_SERVER
This server will be queried if the program cannot guess where some kind of objects are located. If the variable does not exist then
whois.arin.net will be queried.
SEE ALSO
RFC 3912: WHOIS Protocol Specification
RIPE-223: RIPE NCC Database Documentation
Detailed help on available flags can be found in RIPE-223 or in the help file which can be obtained with the command:
whois -h whois.ripe.net HELP
BUGS
The program may have buffer overflows in the command line parser: be sure to not pass untrusted data to it. It should be rewritten to use
a dynamics strings library.
HISTORY
This program closely tracks the user interface of the whois client developed at RIPE by Ambrose Magee and others on the base of the origi-
nal BSD client. I also added support for the protocol extensions developed by David Kessens of QWest for the 6bone server.
AUTHOR
Whois and this man page were written by Marco d'Itri <md@linux.it> and are licensed under the terms of the GNU General Public License, ver-
sion 2 or higher.
Marco d'Itri 20 December 2009 WHOIS(1)