% WTDNSHASH(8) - WtDNS hash directory creator
% Jonas Eckerman <jonas@truls.org>
% 2012-10-16 15:09:26 UTC (v0.007)

# NAME

wtdnshash - WtDNS hash directory creator

# SYNOPSIS

	wtdnshash [options] <domainname> [domainname] ...

# DESCRIPTION

The WtDNS hash utility creates and prints hashes for domainames, to be read by
WtDNSd, in the format 

	/var/lib/wtdns/#XX/fqdn.hostname.domain

where fqdn.hostname.domain is a lower case full domain name, or an IP address
for PTR lookups and XX is a upper case hexadecimal hash of the domain name.

For each domainname, **wtdnshash** will print a single line with the hash and
try to create the directory.

# OPTIONS

-oh
:	Omit the hash mark '#' from the hashes. This makes WtDNS use the same
	hash directories as the original SheerDNS.
	Remember to use this option with **wtdnsd** if you use it with
	**wtdnshash**.

-nh
:	Omit the hash (two character hex) part of the path.

-dd <directory>
:	The directory where WtDNS resource records are stored.

-cf <filename>
:	Read specified configuration file.

-ls
:	Log to syslog (using the daemon facility).

-lf <filename>
:	Log to file. If using this together with _-ls_, less information will
	be logged to syslog.

-ld <filename>
:	Log debug information to a separate file. If using this together with
	_-ls_ and/or _-lf_, less information will be logged to syslog and the
	other file.

-ll <level>
:	An integer value specifying how much to log. Level 2 means only
	critical errors, while levels 7 and above are for debugging. Default
	is 5.
-v
:	Increase log level by 1.

-V
:	Print WtDNSd name and version, then exit.

-h
:	Print usage information, then exit.

# CONFIGURATION

The following global options are recognized in the configuration file.

datadir = directory
:	The directory where WtDNS resource records are stored.
	Default is "/var/lib/wtdns".

hashing = yes/no
:	Wether to use the hash part in the domain name paths or not.
	For small sites turning of hashing might make things easier for the
	administrator. Default is to use hashing.

oldhash = yes/no
:	If on, WtDNS will omit the '#' i front of the hash, wich makes it
	compatible with the oriinal SheerDNS software.

# FILES

/var/lib/wtdns
:	All resource records are stored in this directory.

/etc/wtdns/wtdns.ini
:	The global configuration file.

