home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sgiblab!munnari.oz.au!manuel.anu.edu.au!coombs!avalon
- From: avalon@coombs.anu.edu.au (Darren Reed)
- Newsgroups: alt.irc
- Subject: Re: patriot.mit.edu (vanity server alert)
- Date: 21 Dec 92 08:03:41 GMT
- Organization: Australian National University
- Lines: 43
- Message-ID: <avalon.724925021@coombs>
- References: <9212172023.AA08764@hrt213.brooks.af.mil> <1992Dec18.082654.17711@aston.ac.uk>
- NNTP-Posting-Host: 150.203.76.2
-
- evansmp@uhura.aston.ac.uk (Mark Evans) writes:
-
- >But one which can be gotten round by hacking the server slightly :-)
-
- >assume my_name contains the FQDN if the host the server is running on.
-
- >add as a global variable
-
- > char *my_domain;
-
- >just after ircd.conf is read (cos that's probably where you have got the
- >FQDN of the server from)
-
- > my_domain=index(my_name,'.');
-
- >if the routine to get the host name of the remote connection (read 'rhost'
- >as whatever variable the code actually uses)
-
- >(if there is something like rhost=hp->host do rhost=strcpy(temp,rhost);
- >where temp is a string of size 65, or more)
-
- > if (strcmp(rhost,"localhost")) strcpy(rhost,my_name);
- > if (!index(rhost,'.')) strcat(rhost,my_domain);
-
- >and thats it!
-
- The server already has all this code in it.
-
- Look in s_bsd.c for add_local_domain().
-
- Just depends on whether patriot has working resolv library (or a
- /etc/resolv.conf file setup properly).
-
- The problems had seem to suggest that one of these two is at fault
- and really should be corrected.
-
- /etc/resolv.conf should have a line "domainname mit.edu" in it (seems
- to me to be missing if everything else works) and the #defines in
- config.h set correctly.
-
- avalon
-
- say no to lame servers with lame admins
-