[Bug 9076] New: Whois using a non working host for queries by default
bugzilla at busybox.net
bugzilla at busybox.net
Mon Jul 4 16:23:09 UTC 2016
https://bugs.busybox.net/show_bug.cgi?id=9076
Bug ID: 9076
Summary: Whois using a non working host for queries by default
Product: Busybox
Version: 1.24.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Networking
Assignee: unassigned at busybox.net
Reporter: mulevito at gmail.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
Created attachment 6501
--> https://bugs.busybox.net/attachment.cgi?id=6501&action=edit
patch to use a working whois default server
The query hangs trying to use thi host by default: whois-servers.net
(204.74.78.75)
>> recvfrom(3, "\254g\201\200\0\1\0\1\0\0\0\0\rwhois-servers\3net\0\0"...,
>> 1024, 0, {sa_family=AF_INET, sin_port=htons(53),
>> sin_addr=inet_addr("8.8.8.8")}, [16]) = 51
>> close(3) = 0
>> socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
>> setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
>> connect(3, {sa_family=AF_INET, sin_port=htons(43),
>> sin_addr=inet_addr("204.74.78.75")}, 16
vmule at agent4:~/busybox$ git diff
diff --git a/networking/whois.c b/networking/whois.c
index bf33033..5a3dc51 100644
--- a/networking/whois.c
+++ b/networking/whois.c
@@ -48,7 +48,7 @@ int whois_main(int argc, char **argv)
MAIN_EXTERNALLY_VISIBLE;
int whois_main(int argc UNUSED_PARAM, char **argv)
{
int port = 43;
- const char *host = "whois-servers.net";
+ const char *host = "whois.nic.it.";
opt_complementary = "-1:p+";
getopt32(argv, "h:p:", &host, &port);
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list