This shows you the differences between two versions of the page.
| — |
jwhois.configuration.guide [2010/03/30 10:19] (current) marat created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ========= Installation and configuration of JWhois server ========= | ||
| + | - download jwhois from [[http://sourceforge.net/projects/jwhoisserver/]] | ||
| + | - Extract files from archive for example into /usr/local/jwhois | ||
| + | - Edit file: /usr/local/jwhois/etc/server.cfg | ||
| + | |||
| + | <code ini> | ||
| + | #database host | ||
| + | db.host=127.0.0.1 | ||
| + | |||
| + | #database port | ||
| + | db.port=3306 | ||
| + | |||
| + | #database name | ||
| + | db.name=eppdrs | ||
| + | |||
| + | #Database username | ||
| + | db.user=eppdrs | ||
| + | |||
| + | #Database password | ||
| + | db.pass=eppdrsdbpasswd | ||
| + | |||
| + | #Server legal | ||
| + | server.legal=Server.com Whois server. Powered by EPP-DRS/.\r\n | ||
| + | </code> | ||
| + | |||
| + | Database settings should be the same as fro EPP-DRS. So, jwhois and EPP-DRS should point to the same database. | ||
| + | |||
| + | Execute the following command to start jwhois daemon | ||
| + | |||
| + | <code bash> | ||
| + | /usr/local/jwhois/jwhoisserver /usr/local/jwhois | ||
| + | </code> | ||
| + | |||
| + | For testing type the following command: | ||
| + | |||
| + | <code bash> | ||
| + | whois -h localhost testdomain.com | ||
| + | </code> | ||
| + | |||
| + | You should see something like: | ||
| + | |||
| + | <code> | ||
| + | NO OBJECT FOUND! | ||
| + | object: testdomain.com | ||
| + | type: domain | ||
| + | </code> | ||
| + | |||
| + | If you see such text it means that everything configured properly. If you did’t see such message it means that you’ve configured jwhois incorrectly. You could enable debug logging by setting server.loglevel.* in server.cfg . after this restart jwhois and check var/log/jwhoisserver.log | ||
| + | |||
| + | After this you could add /usr/local/jwhois/jwhoisserver /usr/local/jwhois to boot scripts to let jwhois automatically start during server boot. | ||
| + | |||
| + | On [[http://jwhoisserver.sourceforge.net/]] you could find a lot of useful information. | ||