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

The directory where WtDNS resource records are stored.

-cf

Read specified configuration file.

-ls

Log to syslog (using the daemon facility).

-lf

Log to file. If using this together with -ls, less information will be logged to syslog.

-ld

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
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.

SEE ALSO

wtdns(8), wtdns.ini(8), wtdnsinfo(8), wtdnsadd(8), wtdnssign(8), wtdns-deepen(8), wtdns-flatten(8), wtdnsd(8), wtdns-fromlog(8), wtdns-maintain(8), dig(1)