Penguin
Blame: RipeWhoisNotes
EditPageHistoryDiffInfoLikePages
Annotated edit history of RipeWhoisNotes version 2, including all changes. View license author blame.
Rev Author # Line
2 AristotlePagaltzis 1 Maybe you're trying to get the [RIPE] Whois Server going... It's kind of old and archaic in several respects it seems.
1 MattBrown 2
2 AristotlePagaltzis 3 Here is a list of hacks that I've had to do to get it working on [Debian] Sid so far, this is a work in progress.
1 MattBrown 4
2 AristotlePagaltzis 5 !! SegmentationFault~s
1 MattBrown 6
2 AristotlePagaltzis 7 If you get a SegmentationFault like
1 MattBrown 8
2 AristotlePagaltzis 9 <verbatim>
10 died on SQ_execute_query(con, "LOCK TABLES " "route READ, inetnum READ, inet6num READ, " "inaddr_arpa READ, domain READ, ip6int READ ", NULL) == -1 in: +258 rp_load.c
11 Segmentation fault
12 </verbatim>
13
14 or any other SegmentationFault when you try to run the whois server, chances are your DataBase permissions are incorrect. The server doesn't seem to have the concept of error messages and will happily crash if
15
16 * you lack permissions to <tt>LOCK TABLES</tt>,
17 * the DataBase server isn't running,
18 * you lack permissions to create temporary tables,
19 * you look at it wrong,
20 * and probably many more cases.
21
22 !! Setting up the database user
23
24 I used the following [MySQL] commands as the <tt>make_user</tt> script is for an archaic [MySQL] version and the user table has many more fields now...
25
26 <pre>
27 INSERT user (host, user, password, select_priv, insert_priv, update_priv, delete_priv, create_priv, drop_priv, reload_priv, shutdown_priv, process_priv, file_priv, grant_priv, references_priv, index_priv, alter_priv)
28 VALUES ('localhost', 'whois', PASSWORD('whois'), 'Y','Y','Y','Y','Y','Y','Y','N','Y','N','N','Y','Y','Y');
29
30 INSERT user (host, user, password, select_priv, insert_priv, update_priv, delete_priv, create_priv, drop_priv, reload_priv, shutdown_priv, process_priv, file_priv, grant_priv, references_priv, index_priv, alter_priv)
31 VALUES ('__''yourhostname''__', 'whois', PASSWORD('whois'), 'Y','Y','Y','Y','Y','Y','Y','N','Y','N','N','Y','Y','Y');
32
33 UPDATE user SET local_tables_priv='Y' WHERE user='whois';
34
35 UPDATE user SET Create_tmp_table_priv='Y' WHERE user='whois';
36
37 FLUSH PRIVILEGES
38 </pre>