Changi NNTP Server 1.0

[ Bottom of Page | Previous Page | Next Page | Table of Contents ]

Changi Environment
Specifying Hostnames

The following environment variables may be set to specify hostnames:

CHANGIHOSTNAME
CHANGILOCALHOST
CHANGINODENAME
CHANGIPATHHOST
HOSTNAME
NNTPNEIGHBOR
NNTPSERVER

CHANGIHOSTNAME

This variable is used to determine the local hostname and, if specified, will override HOSTNAME.

During TCP/IP configuration, the HOSTNAME definition is added to CONFIG.SYS, but usually doesn't include the domain. Because Changi needs to know the fully qualified domain name of the local host, you must either change the HOSTNAME setting or define CHANGIHOSTNAME.

Example:

SET HOSTNAME=os2point
SET CHANGIHOSTNAME=os2point.ping.de

CHANGILOCALHOST

By default, Rnews transfers articles to the local host using the local interface configured with ip 127.0.0.1. Chanx uses the same channel to query the local host for exisiting message-ids, while Chanco and Expire control the server through this interface. If you can't or don't want to set up a local interface, you can change this by setting CHANGILOCALHOST to a different hostname or ip address.

SET CHANGILOCALHOST=192.168.222.1

CHANGINODENAME

By default Changi finds the local hostname by taking the front part of the environment variable HOSTNAME upto the first dot.

The environment variable CHANGINODENAME allows you to override this behaviour.

SET CHANGINODENAME=os2point

CHANGIPATHHOST

This item is described under Specifying Article Header Modifications.


HOSTNAME

The HOSTNAME environment variable should specify the full domain name of your local host. However, during TCP/IP configuration this variable will be set to the name of the local host without domain part. To avoid conflicts with other TCP/IP applications when changing HOSTNAME, you may set CHANGIHOSTNAME.

Example:

SET HOSTNAME=os2point.ping.de

NNTPNEIGHBOR

NNTPNEIGHBOR will override NNTPSERVER and is used to determine the hostname, to which Changi will send local postings. Note, that this variable is ignored, if a file named newsfeeds exists.

Example:

SET NNTPNEIGHBOR=lilly.ping.de

NNTPSERVER

Unless a newsfeeds file exists, Changi will use the specified host to inject local postings to the net.

Unfortunately the same environment variable is used by other news processing software. In case of conflicts you should set NNTPNEIGHBOR.

Example:

SET NNTPSERVER=news.ibm.net

[ Top of Page | Previous Page | Next Page | Table of Contents ]


URL: changi/manual/envihost.html
Created: 3 August 1996
Revised: 21 November 1996
Author: harald@os2point.ping.de