diff -r 7c94598b7649 -r c47953192c5c bin/update-serial --- a/bin/update-serial Sun Jan 16 17:28:48 2011 +0100 +++ b/bin/update-serial Sun Jan 16 17:29:01 2011 +0100 @@ -4,7 +4,6 @@ use strict; use warnings; -use FindBin; use File::Basename; use Pod::Usage; use Getopt::Long; @@ -51,7 +50,8 @@ ) or pod2usage; # merge the config and the defined options from commandline - %config = get_config("$FindBin::Bin/dnstools.conf", "/etc/dnstools.conf", \%opt); + %config = get_config("$ENV{DNSTOOLS_CONF}", "dnstools.conf", + "$ENV{HOME}/.dnstools.conf", "/etc/dnstools.conf", \%opt); our $bind_dir = $config{bind_dir}; our $conf_dir = $config{zone_conf_dir};