Article View: news.software.nn
Article #10636Re: [solved?] Problem with NN and /etc/nntpserver
From: Arctic Fidelity
Date: Sun, 06 Mar 2005 19:58
Date: Sun, 06 Mar 2005 19:58
47 lines
3620 bytes
3620 bytes
flaps@dgp.toronto.edu (Alan J Rosenthal) writes: >Arctic Fidelity <af@sacrificumdeo.net> writes: >>In other words, how can I make nn discover the FQDN, >You don't want the FQDN either. e.g. my From: address should say >"flaps@dgp.toronto.edu" rather than "flaps@somestupidhost.dgp.toronto.edu". This isn't a problem, because of the #HIDDENNET option that you can use. If you choose to activate this option, from everything I can see, nn will strip the leading machine name from the host_name to come up with, in your case, dgp.toronto.edu from "somestupidhost.dgp.toronto.edu". >My debian install seems to have "dgp.toronto.edu" in /etc/mailname, and seems >to have a FQDN in /etc/mailname on a more generically-installed machine near >me. This might be the file you want, for debian, although I'm not sure >because it doesn't have a man page and dpkg doesn't tell me which package >owns it. I noticed the option to define a "HOSTNAME_FILE" in hostname.c. However, I didn't see it listed as an option in the config.h file, which makes me think that there is something I don't understand about it there. Another problem is that nn will/does/maybe read for the gethostname() function before actually trying to access a HOSTNAME_FILE. I'm actually using Slackware here. >From what I see, discovering the hostname from a "gethostname" type function first, before reading a file does seem to be the correct behaviour, but then...the function nn_gethostname() should provide an FQDN if it's available, and not just a machine name, because that's essentially useless on nn's side. As it is currently coded, Slackware must be redefined in order to allow for dynamic hostname discovery, which is an undesirable behaviour. If gethostname() could be substituted for some incantation of gethostbyname(), I imagine that might be something to look into. Of course, any other equally fast and valid method of reliably and thouroughly discovering the hostname would be acceptable to me. I would prefer not to have to write and patch a whole bunch of code here. :-) - Arctic Fidelity -- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth
Technical Details
Message-ID:
<hu6dnbect4x5_bbfRVn-oA@gvtc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!local01.nntp.dca.giganews.com!nntp.gvtc.com!news.gvtc.com.POSTED!not-for-mailReferences:
<c8qdnSJxb57cXb3fRVn-qw@gvtc.com> <2005Feb27.232614.20624@jarvis.cs.toronto.edu> <u8OdnbulQNZ8Lr_fRVn-iQ@gvtc.com> <KrGdnVOTduSTbL7fRVn-tQ@gvtc.com> <112h18kiq7dt887@corp.supernews.com> <lomdndsk2YjI2rTfRVn-iQ@gvtc.com> <422957e6$1@aspen> <vrednTbX36pdLLffRVn-vg@gvtc.com> <2005Mar6.084721.23795@jarvis.cs.toronto.edu>Show Full Headers
Complete Article Headers
Message-ID: <hu6dnbect4x5_bbfRVn-oA@gvtc.com> Subject: Re: [solved?] Problem with NN and /etc/nntpserver Date: Sun, 06 Mar 2005 13:58:28 -0600 From: Arctic Fidelity <af@sacrificumdeo.net> References: <c8qdnSJxb57cXb3fRVn-qw@gvtc.com> <2005Feb27.232614.20624@jarvis.cs.toronto.edu> <u8OdnbulQNZ8Lr_fRVn-iQ@gvtc.com> <KrGdnVOTduSTbL7fRVn-tQ@gvtc.com> <112h18kiq7dt887@corp.supernews.com> <lomdndsk2YjI2rTfRVn-iQ@gvtc.com> <422957e6$1@aspen> <vrednTbX36pdLLffRVn-vg@gvtc.com> <2005Mar6.084721.23795@jarvis.cs.toronto.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.20140326.mbox.gz!number1.nntp.dca.giganews.com!local01.nntp.dca.giganews.com!nntp.gvtc.com!news.gvtc.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 06 Mar 2005 13:58:28 -0600 Newsgroups: news.software.nn User-Agent: nn/6.6.5 Lines: 47 X-Trace: sv3-iCMPL1VTHnzc/J2SgIVOOeWQwNtXztscRe5f3PalThYwSIMKG4//3LG7/sbsAtcOtkzoCAMsUlocGNV!mU+NI0/zq28o5Y6DD+5pXybdDED9Sxmf/UAKKrXBfB+iky81R02knDH9JDlyBKvY00Np X-Complaints-To: abuse@gvtc.com X-DMCA-Complaints-To: abuse@gvtc.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32