Path: utzoo!attcan!uunet!unsvax!jimi!duke.cs.unlv.edu!greg From: greg@duke.cs.unlv.edu (Greg Wohletz) Newsgroups: comp.protocols.tcp-ip.domains Subject: questionable resolver code Message-ID: <1891@jimi.cs.unlv.edu> Date: 10 Aug 90 05:28:52 GMT Sender: news@jimi.cs.unlv.edu Reply-To: greg@duke.cs.unlv.edu (Greg Wohletz) Organization: UNLV Computer Science and Electrical Engineering Lines: 22 in the routine res_search is the following line of code: if ((n == 0 || *--cp != '.') && (_res.options & RES_DEFNAMES)) If you examine the routine you will notice that n > 0 if there were any .'s in the name passed to res_search. I believe the intent was to only append the local domain name in the case where there was no . in the name passed to res_search, but instead the behavior is to append the local domain name whenever the name does not end with a . Hence when I type ``ping jimi.cs.unlv.edu'' it causes queries like jimi.cs.unlv.edu.cs.unlv.edu to be generated. This is greatly increasing the number of queries on my network. I believe the line should read: if ((n == 0) && (_res.options & RES_DEFNAMES)) What do you think? --Greg