mirror of
https://github.com/rfc1036/whois.git
synced 2026-02-02 06:24:08 +00:00
114 lines
2.6 KiB
C
114 lines
2.6 KiB
C
/*
|
|
* RIPE-like servers.
|
|
* All of them do not understand -V2.0Md with the exception of RA and RIPN.
|
|
* 6bone-derived servers will accept the flag with a warning (the flag must
|
|
* match /^V [a-zA-Z]{1,4}\d+[\d\.]{0,5}$/).
|
|
*/
|
|
|
|
/* servers which accept the new syntax (-V XXn.n) */
|
|
const char *ripe_servers[] = {
|
|
"whois.ripe.net",
|
|
"whois.apnic.net",
|
|
"whois.oleane.net",
|
|
"rr.arin.net", /* does not accept the old syntax */
|
|
"whois.6bone.net", /* 3.0.0b1 */
|
|
"whois.aunic.net",
|
|
"whois.connect.com.au", /* 3.0.0b1 */
|
|
"whois.nic.fr",
|
|
"whois.telstra.net",
|
|
"whois.nic.net.sg",
|
|
"whois.metu.edu.tr",
|
|
"whois.restena.lu",
|
|
"rr.level3.net", /* 3.0.0a13 */
|
|
"whois.arnes.si",
|
|
"rpsl.ripe.net",
|
|
NULL
|
|
};
|
|
|
|
/* servers which do not accept the new syntax */
|
|
const char *ripe_servers_old[] = {
|
|
"whois.ra.net",
|
|
"whois.nic.it",
|
|
"whois.ans.net",
|
|
"whois.cw.net",
|
|
"whois.ripn.net",
|
|
"whois.nic.ck",
|
|
"whois.domain.kg",
|
|
NULL
|
|
};
|
|
|
|
#if 0
|
|
const char *rwhois_servers[] = {
|
|
"whois.isi.edu", /* V-1.0B9.2 */
|
|
"rwhois.rcp.net.pe", /* V-1.5.3 */
|
|
"ns.twnic.net", /* V-1.0B9 */
|
|
"dragon.seed.net.tw", /* V-1.0B9.2 */
|
|
NULL
|
|
};
|
|
#endif
|
|
|
|
const char *gtlds[] = {
|
|
".com",
|
|
".net",
|
|
".org",
|
|
".edu",
|
|
NULL
|
|
};
|
|
|
|
const char *hide_strings[] = {
|
|
"The Data in Network", "this query",
|
|
"The data in Register", "By submitting",
|
|
"The data contained in Dotster", "to these terms of usage and",
|
|
"This whois service currently only", "top-level domains.",
|
|
"Signature Domains' Whois Service", "agree to abide by the above",
|
|
"Access to ASNIC", "by this policy.",
|
|
"* Copyright (C) 1998 by SGNIC", "* modification.",
|
|
"The Data in Gabia", "you agree to abide",
|
|
NULL, NULL
|
|
};
|
|
|
|
const char *nic_handles[] = {
|
|
"net-", "whois.arin.net",
|
|
"netblk-", "whois.arin.net",
|
|
"asn-", "whois.arin.net",
|
|
"lim-", "whois.ripe.net",
|
|
"coco-", "whois.corenic.net",
|
|
"coho-", "whois.corenic.net",
|
|
"core-", "whois.corenic.net",
|
|
/* RPSL objects */
|
|
"as-", "whois.ripe.net",
|
|
"rs-", "whois.ripe.net",
|
|
"rtrs-", "whois.ripe.net",
|
|
"fltr-", "whois.ripe.net",
|
|
"prng-", "whois.ripe.net",
|
|
NULL, NULL
|
|
};
|
|
|
|
struct ip_del {
|
|
unsigned long net;
|
|
unsigned long mask;
|
|
const char *serv;
|
|
};
|
|
|
|
struct ip_del ip_assign[] = {
|
|
#include "ip_del.h"
|
|
{ 0, 0, NULL }
|
|
};
|
|
|
|
struct as_del {
|
|
unsigned short first;
|
|
unsigned short last;
|
|
const char *serv;
|
|
};
|
|
|
|
struct as_del as_assign[] = {
|
|
#include "as_del.h"
|
|
{ 0, 0, NULL }
|
|
};
|
|
|
|
const char *tld_serv[] = {
|
|
#include "tld_serv.h"
|
|
NULL, NULL
|
|
};
|
|
|