80 Commits

Author SHA1 Message Date
Marco d'Itri
b522889803 Ignore empty referral strings
Some registrars return an empty field for the referral server.
2015-01-25 03:42:37 +01:00
Marco d'Itri
dc3eeb8170 Fix referrals handling for some verisign-grs.com servers
Verisign has changed for no apparent reason the label for the whois
server field of the cc, tv and jobs TLDs whois servers.
2015-01-25 03:42:37 +01:00
Marco d'Itri
e054c58eb2 Fix the code that removes trailing dots
And make it easier to understand as well.
2014-11-06 03:47:26 +01:00
Marco d'Itri
db5dc4db7a Rename domcmp() in endstrcaseeq() and rewrite it
Rewrite it to use the same code of in_domain().
2014-10-16 01:52:04 +02:00
Marco d'Itri
8ccab2cb13 Ask whois.iana.org about TLDs
Recognize as a TLD any string without dots present in tld_serv_list
and new_gtlds_list.
2014-10-16 01:52:04 +02:00
Marco d'Itri
d961608451 Convert tld_serv_list to in_domain() 2014-10-16 01:52:04 +02:00
Marco d'Itri
29b1a3a9c3 Split nic_handles_list off tld_serv_list
To be able to use in_domain() for tld_serv_list
2014-10-16 01:52:03 +02:00
Marco d'Itri
842e142f1a Convert queryformat() to in_domain() 2014-10-15 15:19:12 +02:00
Marco d'Itri
45bdfcc27c Convert convert_inaddr() to in_domain() 2014-10-15 15:19:12 +02:00
Marco d'Itri
3ad4f43735 Convert is_new_gtld() to in_domain() 2014-10-15 15:19:12 +02:00
Marco d'Itri
3aa160e6a1 Add in_domain() to check if the argument is a subdomain 2014-10-15 14:30:35 +02:00
Marco d'Itri
257abceab3 Fix 1 and 2 octects in-addr.arpa queries
Queries like 85.in-addr.arpa and 94.85.in-addr.arpa were directed
to the wrong server.
2014-10-15 02:15:53 +02:00
Marco d'Itri
33f174e956 Default to whois.ripe.net when using long flags 2014-09-13 05:27:53 +02:00
Marco d'Itri
833af3d94a Implement support for the long RIPE flags 2014-09-13 05:27:53 +02:00
Marco d'Itri
1ae06d1a5a Move longopts into main() 2014-09-13 05:27:51 +02:00
Marco d'Itri
fa011e0665 Use the first referral of Afilias GRS results
Defensive programming: this is never supposed to happen, but if more
than one attribute were returned by the registry then the memory
allocated to referral_server would be leaked.
2014-09-13 05:12:17 +02:00
Marco d'Itri
c7769cbfdf make is_new_gtld() return the TLD 2014-09-13 02:42:29 +02:00
Marco d'Itri
1e1cb543c2 Support hiding disclaimers until the end of the output 2014-05-26 04:28:36 +02:00
Marco d'Itri
171705cbde Use whois.nic.$TLD for the "new" gTLDs
The "new" gTLDs are contractually required by ICANN to provide port 43
whois service on this standard domain.
2014-05-02 04:26:50 +02:00
Marco d'Itri
d2ee7af1d7 Extract the version number from the changelog 2014-02-07 06:33:08 +01:00
Petr Písař
a626373f45 Free memory in handle_query()
Make the server variable always hold a dynamically allocated string and
clean up the related const statements.

Signed-off-by: Petr Písař <ppisar@redhat.com>
2013-12-26 07:48:10 +01:00
Petr Písař
298f2080fe strtol() returns signed long int
Assiging strol() return value to unsigned int makes subsequent
comparison to < 0 pointless.

Signed-off-by: Petr Písař <ppisar@redhat.com>
2013-12-26 07:48:10 +01:00
Petr Písař
2d12f4da54 Do not hide legal disclaimer with whois -V
There was missing break in the 'V' option case.

Signed-off-by: Petr Písař <ppisar@redhat.com>
2013-12-26 07:43:15 +01:00
Marco d'Itri
4deb57d9ba Undocument the -F RIPE option
It is deprecated, does not always work correctly and nobody should ever
use it anymore.
2013-04-10 17:25:05 +02:00
Petr Písař
361164fea5 Handle --help as success
whois --help output should go to standard output, and exit code should
be zero.
2013-04-10 17:25:05 +02:00
Petr Písař
c5fb072b2b Remove -S option
RIPE-like `-S' option is not documented nor supported by RIPE.
2013-04-10 17:25:05 +02:00
Petr Písař
8ec60c27f0 Update documentation
whois(1) options listing has been updated in whois --help output as
well as in manual page.

Rerefence to RIPE WHOIS database query syntax has been updated.
2013-04-10 17:25:05 +02:00
Marco d'Itri
7d4b9714c4 Remove a unused variable 2013-03-31 08:10:29 +02:00
Marco d'Itri
9b1706c1e1 Fix parsing of 6to4 addresses
The last two bytes of the IPv4 address in 6to4 addresses were not
parsed correctly since version 5.0.19. (Fixes #699928.)
2013-03-31 08:10:02 +02:00
Marco d'Itri
a21a1d7756 Imported Debian version 5.0.19 2013-03-30 02:31:42 +01:00
Marco d'Itri
2d381497c0 Imported Debian version 5.0.17 2013-03-30 02:31:42 +01:00
Marco d'Itri
51d8f998dd Imported Debian version 5.0.15 2013-03-30 02:31:41 +01:00
Marco d'Itri
6c3ca39f25 Imported Debian version 5.0.12 2013-03-30 02:31:41 +01:00
Marco d'Itri
49aa4a0f24 Imported Debian version 5.0.6 2013-03-30 02:31:40 +01:00
Marco d'Itri
cdfdc7d88b Imported Debian version 5.0.5 2013-03-30 02:31:39 +01:00
Marco d'Itri
c4ba9f91d1 Imported Debian version 5.0.4 2013-03-30 02:31:39 +01:00
Marco d'Itri
00a8697ca9 Imported Debian version 5.0.2 2013-03-30 02:31:39 +01:00
Marco d'Itri
15c8d523f7 Imported Debian version 5.0.0 2013-03-30 02:31:38 +01:00
Marco d'Itri
e8806bc509 Imported Debian version 4.7.37 2013-03-30 02:31:38 +01:00
Marco d'Itri
6b108b4fd4 Imported Debian version 4.7.35 2013-03-30 02:31:38 +01:00
Marco d'Itri
95229c98ad Imported Debian version 4.7.31 2013-03-30 02:31:37 +01:00
Marco d'Itri
bd837394e6 Imported Debian version 4.7.29 2013-03-30 02:31:36 +01:00
Marco d'Itri
ce5e346d70 Imported Debian version 4.7.27 2013-03-30 02:31:36 +01:00
Marco d'Itri
e90424d179 Imported Debian version 4.7.26 2013-03-30 02:31:36 +01:00
Marco d'Itri
d0c35c4219 Imported Debian version 4.7.25 2013-03-30 02:31:36 +01:00
Marco d'Itri
c3c46b20b8 Imported Debian version 4.7.23 2013-03-30 02:31:35 +01:00
Marco d'Itri
b62995f670 Imported Debian version 4.7.22 2013-03-30 02:31:35 +01:00
Marco d'Itri
1e6c14f7fa Imported Debian version 4.7.21 2013-03-30 02:31:35 +01:00
Marco d'Itri
1ea7943996 Imported Debian version 4.7.18 2013-03-30 02:31:34 +01:00
Marco d'Itri
3a305f1926 Imported Debian version 4.7.17 2013-03-30 02:31:34 +01:00