***************************************************************************** DNS-Lookup v1.0 - READ ME ***************************************************************************** Released 12th of April '97 by Rasmus 'Con' Ronlev ***************************************************************************** DISCLAIMER ----------- Any use of this software, the problems, the stress, the vain, the many hours without sleep, the .diff file making your life miserable, ANYTHING at all that you might want to sue me (the author) of is not legally covered. ANY use of this code is entirely your own fault, you shouldn't have trusted it to work in the first place *grin* BACKGROUND ----------- This patch has been developed on ConMUD, an CircleMUD 3.0 bpl 11 based mud. During a period of time in march '97 I noticed a lot of lag caused by looking up host-names (the call to gethostbyaddr()) in the MUD-code, and decided I had to do something to get rid of this lag. As usual I did choose the suicide solution, namely to try and make the code myself... Well, needless to say I asked the CircleMUD mailing list for some help and comments on the code. The code is really not very well tested. I just installed it a short time ago on my MUD, and it will probably not plug right into your mud because ConMUD at this time is rather different from stock CircleMUD. As of this moment the code seems to be working fine on my mud, and thus I thought I'd share it with the CircleMUD community for once. I'm considering to incorporate Samedi's DNS cache into this code, or perhaps he'll include my code in his, I don't know. I might even make my own DNS-cache system considering my urge for the suicide-code approach *grin* HOW TO INSTALL --------------- First. If you choose to use this patch or parts of the code please give credit where credit is due in the code. I don't care about credits on the mud(s) or anywhere else really as long as you don't take credit for the work of others or me.... I tried to give credit where credit is due myself. So respect the idea of (bug ?:) free software. I suggest you make a backup of your source directory by going to your root mud-directory and type: tar -cvf srcbackup.tar src Now if anything goes terribly wrong you can restore your old source with the command: tar -xvf strbackup.tar Now download the file dnsserv_v1.0.diff.gz and unpack it with gzip: gzip -d dnsserv_v1.0.diff.gz This should leave you with a file : dnsserv_v1.0.diff. Go into your source directory and patch this file... the command to do so is: patch < dnsserv_v1.0.diff that is if the diff file is in the same directory. If you have any *.rej files in the source directory you're fookered :) Then you need to patch the rest by hand or perhaps even restore your source as stated above and do the patch all by hand! You will need to go into utils/dnslookup.c and search for the expression 'f.you.net' and replace this with the name of your site. Furthermore you need to go into DNS.c and modify the define for DNS_IPADDR to suit the IP-address of your host. When you've installed everything correctly you should be able to 'make' the CircleMUD code and build the mud-executable. Furthermore you need to build a server part of the DNS-lookup system. A little program that runs like the mud. It accepts connections from the mud and does the actual lookup of host names in a way that prevents the mud from lagging. To make the dnslookup program type: 'make dnslookup' in the source directory. Now all you have to do is to run the dnslookup server and the mud, and it should all work if you're lucky.... SUPPORT ? ---------- There is NO SUPPORT. Having said that I might help out if I feel like it, but I have clearly stated by the above that in most cases I will not. I'm not being an A$$, I just don't have time to promise every CircleMUD imp. in the world support to implement this code-patch, sorry. If you don't have a good knowledge of the Unix environment and C, don't try and use this code. CONTACT -------- OK, so, you want to know how to contact me, the author...... I hope this hasn't got anything to do with a lawsuit, if it does don't bother, I already said that you were doing this on your own responsibility! Please consider the above section on support. I am not going to fix your compilation errors, that's the general rule! If you encounter any bugs, have suggestions or fixes to the code please mail me an e-mail or contact me on the mud, so that I can update the code and make some bug fixed or improved release. If you want to write documentation or test out some beta version of this code (when I add cache and stuff), please drop me a line too :) Name : Rasmus Ronlev E-mail : rr@cbs.dk MUD-aka : Con MUD-name : Realms of the Exiled MUD-addr : exiled.iceworld.com 5000 (or f.you.net 5000 :)