If you have a long list of host names which you want to enter into HostName Commander program, you don't have to type them all manually, you can use the Import Host Name List command of HostName Commander to import such a list fast. To use this command, first select the IP address where you want to import the host name list, and click on the little arrow next to the Add Host Name button:

Choose the Import Host Name List command from this menu, to display the following dialog box:

Paste the list of the host names that you want to import into the Host name list box. Or, if you have the list saved in a file, click on the Load from file button to load the list into the Host name list box from that file. You can also type the host names in, one host name per line.

Note that if the first line starts with the symbol #, it is considered a "header" of the list, and HostName Commander attempts to use information it contains to automatically select the IP address to add the host names to. Specifically, if the first line starts with the character #, followed by an IP address, followed by a comment in parenthesis, HostName Commander will attempt to select the IP address with that comment in the Add these hosts to the existing IP address list for you. If the first line does not follow the format described, it is not used as the header of the list. Note also that the header is used only when you paste the list into the box or load it from a file; if you type in the list manually, the header is not used and you should select the correct target IP address yourself.

The list of host names may contain lines which start with the # character; such lines are ignored during the importing of the host names, even if the rest of the line contains a valid hostname. If you want such lines to be processed, you should remove the # characters from them. Also, each line with a host name may contain an IP address in front of the host name (such format is common for the HOSTS files). In this case, HostName Commander will skip and ignore the IP address, because you specify the IP address to add the host names to using the dialog box itself.

Finally, the list of host names may contain not only the host names themselves, but also their comments. The comments must be on the same line as the host names their belong to, and they should be separated from the host names by at least one space character.

After you have inserted the list of the host names into the Host name list box, select the IP address to which you want the host names to be added (or choose to create a new IP address for this list, if desired) and press OK. The host names from the list will be added to that IP address for you by HostName Commander.


Exporting lists of host names Backing up the host name information