A chronological documentation test project, nothing serious, really!

17 Jun 2009 Using DynDNS to access a server with dynamic IP-addresses

This post describes how you can access your server using a host name instead of the dynamic IP addresses (from DHCP) it has assigned at the moment. I’m going to describe how to use DynDNS, but this also applies to other services like EasyDNS, and ZoneEdit. This tutorial has been tested on my Ubuntu 9.04 home server. You need to create an account at DynDNS if you are planning to to this.

First you have to install the ddclient package and in debian and Ubuntu you run the command

# aptitude install ddclient

To reconfigure ddclient

# dpkg-reconfigure ddclient

You should validate the config file /etc/ddclient.conf to make sure your settings are right.
This is the content of my config file

# Configuration file for ddclient generated by debconf
# /etc/ddclient.conf

use=if, if=eth2

You can see that I user network interface eth2 as my internet connection and my login and password is the information I registered at

Restart the ddclient daemon if you do any changes to the config file

# /etc/init.d/ddclient restart

You are now able to connect to your server using the hostname you defined in the server line in the config file, in my case

Tags: ,

Posted by

30 Apr 2007 Change all entries in DHCP from 0: to 00:

This command have to be performed in the vim editor:

:%s/hardware ethernet 0:/hardware ethernet 00:/

Tags: ,

Posted by

31 Jan 2007 macfind

I’ve made a simple bash script to find MAC adresses in DHCP config files.


if [[ -z $1 || $1 == "--help" ]]
        echo "usage: $0 xx:xx:xx:xx:xx:xx "

grep -i $1 /etc/dhcpdb/* -R

Usage example

macfind 00:18:8B:2C:DC:AA


/etc/dhcpdb/53-nettet/subnet.conf:hardware ethernet 00:18:8b:2c:dc:aa;
/etc/dhcpdb/macadresser/it-avd.conf:    subclass        "it-avd" 1:00:18:8b:2c:dc:aa; # Hans-Henry

Tags: , ,

Posted by