Debian Codegraph @

whois/data.h

raw
1 /*
2 Copyright (C) 2009-2026 Free Software Foundation, Inc.
3
4 This file is part of GNU Inetutils.
5
6 GNU Inetutils is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or (at
9 your option) any later version.
10
11 GNU Inetutils is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see `http://www.gnu.org/licenses/'. */
18
19 /*
20 * RIPE-like servers.
21 * All of them do not understand -V2.0Md with the exception of RA and RIPN.
22 * 6bone-derived servers will accept the flag with a warning (the flag must
23 * match /^V [a-zA-Z]{1,4}\d+[\d\.]{0,5}$/).
24 */
25
26 /* servers which accept the new syntax (-V XXn.n) */
27 const char *ripe_servers[] = {
28 "whois.ripe.net",
29 "whois.apnic.net",
30 "whois.oleane.net",
31 "rr.arin.net", /* does not accept the old syntax */
32 "whois.6bone.net", /* 3.0.0b1 */
33 "whois.aunic.net",
34 "whois.connect.com.au", /* 3.0.0b1 */
35 "whois.nic.fr",
36 "whois.telstra.net",
37 "whois.nic.net.sg",
38 "whois.metu.edu.tr",
39 "whois.restena.lu",
40 "rr.level3.net", /* 3.0.0a13 */
41 "whois.arnes.si",
42 NULL
43 };
44
45 /* servers which do not accept the new syntax */
46 const char *ripe_servers_old[] = {
47 "whois.ra.net",
48 "whois.nic.it",
49 "whois.ans.net",
50 "whois.cw.net",
51 "whois.ripn.net",
52 "whois.nic.ck",
53 "whois.domain.kg",
54 NULL
55 };
56
57 #if 0
58 const char *rwhois_servers[] = {
59 "whois.isi.edu", /* V-1.0B9.2 */
60 "rwhois.rcp.net.pe", /* V-1.5.3 */
61 "ns.twnic.net", /* V-1.0B9 */
62 "dragon.seed.net.tw", /* V-1.0B9.2 */
63 NULL
64 };
65 #endif
66
67 const char *gtlds[] = {
68 ".com",
69 ".net",
70 ".edu",
71 NULL
72 };
73
74 const char *hide_strings[] = {
75 "The Data in Network", "this query",
76 "The data in Register", "By submitting",
77 "The data contained in Dotster", "to these terms of usage and",
78 "This whois service currently only", "top-level domains.",
79 "Signature Domains' Whois Service", "agree to abide by the above",
80 "Access to ASNIC", "by this policy.",
81 "* Copyright (C) 1998 by SGNIC", "* modification.",
82 "% The RIPE Database is subject", "\n",
83 "% This query was served", "\n",
84 "% Copyright LACNIC", "% only for lawful",
85 "% Copyright (c) Nic.br", "% any similar purpose",
86 "# ARIN WHOIS data and services", "# Copyright 19",
87 NULL, NULL
88 };
89
90 const char *nic_handles[] = {
91 "net-", "whois.arin.net",
92 "netblk-", "whois.arin.net",
93 "asn-", "whois.arin.net",
94 "as-", "whois.ripe.net",
95 "lim-", "whois.ripe.net",
96 "coco-", "whois.corenic.net",
97 "coho-", "whois.corenic.net",
98 "core-", "whois.corenic.net",
99 NULL, NULL
100 };
101
102 struct ip_del
103 {
104 unsigned long net;
105 unsigned long mask;
106 const char *serv;
107 };
108
109 struct ip_del ip_assign[] = {
110 #include "ip_del.h"
111 {0, 0, NULL}
112 };
113
114 struct ip_del ip6_assign[] = {
115 #include "ip6_del.h"
116 {0, 0, NULL}
117 };
118
119 struct as_del
120 {
121 unsigned short first;
122 unsigned short last;
123 const char *serv;
124 };
125
126 struct as_del as_assign[] = {
127 #include "as_del.h"
128 {0, 0, NULL}
129 };
130
131 const char *tld_serv[] = {
132 #include "tld_serv.h"
133 NULL, NULL
134 };