Bind rndc error in Debian and Ubuntu

If you should come across the following error messages while setting up Bind on Debian or Ubuntu chances are there was a bind update somewhere is the past and it has broken your setup.
WARNING: key file (/etc/bind/rndc.key) exists, but using default configuration file (/etc/bind/rndc.conf)
rndc: no server specified and no default
WARNING: key file (/etc/bind/rndc.key) exists, but using default configuration file (/etc/bind/rndc.conf)rndc: no server specified and no default

The cause of the error is the/etc/bind9/rndc.conf file.   rndc.conf is left behind when Bind is/was updated from a previous version.  While this may keep old configurations from breaking it seems to break new ones.    According to README.Debian  (/usr/share/doc/bind9/README.Debian), Bind’s configuration file layout changed and this file is no-longer needed.

The fix is simple:

  1. In /etc/bind remove rndc.conf.
  2. Add the following to /etc/bind/named.conf:
    include "/etc/bind/rndc.key";
    controls {
    inet 127.0.0.1 port 953
    allow { 127.0.0.1; } keys { "rndc-key"; };
    };
  3. Restart bind.

Getlibs – 32-bit libraries on your 64-bit Ubuntu

In Linux, installing a 32-bit application on a 64-bit install is not usually a problem, if you’re using RedHat/CentOS, Fedora or a version of SuSE Linux. This is because their 64-bit distributions include both the 64-bit and 32-bit versions of the libraries and applications.   I recently discovered this is not the same for Ubuntu Server 10.04LTS x64*.   While attempting to install Sybase, I discovered that Sybase ASE uses a 32-bit installation program to install their 64-bit server.  So, because the 32-bit libraries were not there, the installer would crash at start-up.  Fortunately someone had the same experience and created a tarball with the required 32-bit libraries from a 32-bit Ubuntu install.

During my search for a solution, a coworker came across the following thread in the Ubuntu forums.    It describes a program named getlibs that will pull in the required 32-bit libraries for what ever you are trying to install. I’ve yet to try it, but when I do I’ll post the results.

Links:

Ubuntu forums thread: http://ubuntuforums.org/showthread.php?t=474790

getlibs download page: http://frozenfox.freehostia.com/cappy/

  • I know Ubuntu does ship with some 32-libs with their x64, but from my experience, most of the time it’s not enough to get what you up and running.

Dynamic Terminal Titles in Ubuntu

For some reason, Ubuntu as the dynamic terminal titles disabled.  To enable them follow the following steps:

Open /etc/bash.bashrc for editing.
Around line 23 is the code you want:

23 #case "$TERM" in
24 #xterm*|rxvt*)
25 #    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
26 #    ;;
27 #*)
28 #    ;;
29 #esac

Uncomment it and save the file.
That’s it.

(Answer was found at http://ubuntuforums.org/archive/index.php/t-78459.html)