summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2014-07-02 11:49:15 +0000
committerume <ume@FreeBSD.org>2014-07-02 11:49:15 +0000
commit7c0a428b0db8e6f9a5cef2ed889c3eff3c65b649 (patch)
tree79e0dfaea522351a1fe3572c50d66ae1b7f6b665 /usr.bin
parent712f53c0c4f95ee56a4303845145e8b0e41d5866 (diff)
downloadFreeBSD-src-7c0a428b0db8e6f9a5cef2ed889c3eff3c65b649.zip
FreeBSD-src-7c0a428b0db8e6f9a5cef2ed889c3eff3c65b649.tar.gz
MFC r267871: Introduce $RA_SERVER to set default whois server.
Requested by: nork Reviewed by: nork
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/whois/whois.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c
index d76d05a..112e089 100644
--- a/usr.bin/whois/whois.c
+++ b/usr.bin/whois/whois.c
@@ -179,10 +179,12 @@ main(int argc, char *argv[])
* back to NICHOST.
*/
if (host == NULL && country == NULL) {
- use_qnichost = 1;
- host = NICHOST;
- if (!(flags & WHOIS_QUICK))
- flags |= WHOIS_RECURSE;
+ if ((host = getenv("RA_SERVER")) == NULL) {
+ use_qnichost = 1;
+ host = NICHOST;
+ if (!(flags & WHOIS_QUICK))
+ flags |= WHOIS_RECURSE;
+ }
}
while (argc-- > 0) {
if (country != NULL) {
OpenPOWER on IntegriCloud