mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
Generalize the support for Afilias-style referrals
This commit is contained in:
parent
393de449d3
commit
3a5bcdcc7e
@ -15,7 +15,7 @@ while (<>) {
|
|||||||
$b =~ s/^W(?:EB)?\s+/\\x01/;
|
$b =~ s/^W(?:EB)?\s+/\\x01/;
|
||||||
$b =~ s/^VERISIGN\s+/\\x04" "/;
|
$b =~ s/^VERISIGN\s+/\\x04" "/;
|
||||||
$b = "\\x03" if $b eq 'NONE';
|
$b = "\\x03" if $b eq 'NONE';
|
||||||
$b = "\\x08" if $b eq 'AFILIAS';
|
$b = "\\x08whois.afilias-grs.info" if $b eq 'AFILIAS';
|
||||||
$b = "\\x0C" if $b eq 'ARPA';
|
$b = "\\x0C" if $b eq 'ARPA';
|
||||||
$b = "\\x0D" if $b eq 'IP6';
|
$b = "\\x0D" if $b eq 'IP6';
|
||||||
print qq| "$a",\t"$b",\n|;
|
print qq| "$a",\t"$b",\n|;
|
||||||
|
|||||||
4
whois.c
4
whois.c
@ -344,8 +344,8 @@ int handle_query(const char *hserver, const char *hport,
|
|||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
if (verb)
|
if (verb)
|
||||||
printf(_("Using server %s.\n"), "whois.afilias-grs.info");
|
printf(_("Using server %s.\n"), server + 1);
|
||||||
sockfd = openconn("whois.afilias-grs.info", NULL);
|
sockfd = openconn(server + 1, NULL);
|
||||||
free(server);
|
free(server);
|
||||||
server = query_afilias(sockfd, query);
|
server = query_afilias(sockfd, query);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user