[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bin/72674: manage /usr/bin/whois to use SK-NIC's whois server for .sk TLD lookups



>Number:         72674
>Category:       bin
>Synopsis:       manage /usr/bin/whois to use SK-NIC's whois server for .sk TLD lookups
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 14 08:20:24 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Juraj Lutter
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Wilbury Consulting
>Environment:
System: FreeBSD remedy.wilbury.sk 4.8-STABLE FreeBSD 4.8-STABLE #0: Wed Jul 9 18:43:49 CEST 2003 root_(_at_)_remedy_(_dot_)_wilbury_(_dot_)_sk:/data/sysop/FreeBSD/obj/data/sysop/FreeBSD/src/sys/remedy i386


	
>Description:
	Use whois.sk-nic.sk as whois lookup server for domain lookups when
	invoked with -s option.

>How-To-Repeat:
	
>Fix:

	See this patch:

--- usr.bin/whois/whois.c.orig  Thu Oct 14 10:06:22 2004
+++ usr.bin/whois/whois.c       Thu Oct 14 10:05:18 2004
@@ -76,6 +76,7 @@
 #define NORIDHOST      "whois.norid.no"
 #define        IANAHOST        "whois.iana.org"
 #define GERMNICHOST    "de.whois-servers.net"
+#define SKNICHOST      "whois.sk-nic.sk"
 #define        DEFAULT_PORT    "whois"
 #define        WHOIS_SERVER_ID "Whois Server: "
 #define        WHOIS_ORG_SERVER_ID     "Registrant Street1:Whois Server:"
@@ -107,7 +108,7 @@
 
        country = host = qnichost = NULL;
        flags = use_qnichost = 0;
-       while ((ch = getopt(argc, argv, "aAbc:dgh:iIlmp:QrR6")) != -1) {
+       while ((ch = getopt(argc, argv, "aAbc:dgh:iIlmp:QrsR6")) != -1) {
                switch (ch) {
                case 'a':
                        host = ANICHOST;
@@ -150,6 +151,9 @@
                        break;
                case 'r':
                        host = RNICHOST;
+                       break;
+               case 's':
+                       host = SKNICHOST;
                        break;
                case 'R':
                        warnx("-R is deprecated; use '-c ru' instead");



>Release-Note:
>Audit-Trail:
>Unformatted: