Dynamic DNS on FreeBSD and NoIP.com

no-ip is the only free dynamic IP address provider that provides a client for FreeBSD (or to give credit where it is due, that some kind volunteer ported to FreeBSD).

Regardless, the service works and I have no complaints, other than forgetting how to set it up when I build a new server. So here, for my reference, is how to set up the client on FreeBSD.

  • Create an account on no-ip, then create a domain (either pay to register a domain, or use one of the free ones available).
  • Update your ports tree, then build and install the client. I found you can install the binary using pkg, but the only way to create the binary configuration file seems to with the port. 
    % cd /usr/ports/dns/noip/
    % sudo make install
  • Create the client configuration file.
    % sudo make conf
  • You will be prompted for your no-ip username and password, network interface and hostname (say No when asked if you want to update all your hosts, you’ll then be prompted for each of the hostnames you have registered (fwiw, the configu file is /usr/local/etc/no-ip2.conf).
  • Edit /etc/rc.conf to start noip at boot.
    noip_enable=”YES”
  • Start the noip service.
    % sudo service start noip service status noip

2 Replies to “Dynamic DNS on FreeBSD and NoIP.com”

  1. I had to update “/usr/local/bin/noip” with the following:

    #!/bin/sh

    . /etc/rc.subr

    name=”noip”
    rcvar=noip_enable

    command=”/usr/local/bin/noip2″
    : ${noip_enable=”NO”}
    : ${noip_config=”/usr/local/etc/no-ip2.conf”}
    : ${noip_user=”noip”}
    : ${noip_group=”noip”}

    # Added
    start_cmd=”noip_start”
    stop_cmd=”noip_stop”

    load_rc_config $name

    noip_start()
    {
    eval “${command} -c ${noip_config}”
    }

    noip_stop()
    {
    eval “killall -TERM noip2”
    }

    run_rc_command “$1”

    1. Thanks Deamon for the update. I haven’t been using the DDNS service myself recently. I still happily use No-IP for DNS, but my IP provider hasn’t changed my address in years and at some point after a server upgrade I forgot to reinstall the noip client. It might help though that I’m using a residential cable service and also haven’t moved in years. Cheers.

Leave a Reply to dale Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.