How can I resolve DNS problems somewhere in the middle of recursion?

How can I debug this problem and find the offending nameserver? daxd5 offered some good starting advice, but the only real answer here is that you need to know how to think like a recursive DNS server. Since there are numerous misconfigurations at the authoritative layer that can result in an inconsistent SERVFAIL, you need … Read more

How to upload a directory recursively to an FTP server by just using ftp or lftp?

lftp should be able to do this in one step, in particular with lftp mirror: The lftp command syntax is confusing, original invocation I posted doesn’t work. Try it like this: lftp -e “mirror -R {local dir} {remote dir}” -u {username},{password} {host} note the quotes around the arguments to the -e switch.

logrotating files in a directories and its subdirectories

How deep do your subdirectories go? /var/log/basedir/*.log /var/log/basedir/*/*.log { daily rotate 5 } Will rotate all .log files in basedir/ as well as all .log files in any direct child of basedir. If you also need to go 1 level deeper just add another /var/log/basedir/*/*/*.log until you have each level covered. This can be tested … Read more