Results 1 to 5 of 5

Thread: How to update DDNS for fixed-address hosts?

  1. #1
    Join Date
    Dec 2010
    Beans
    16

    Question How to update DDNS for fixed-address hosts?

    I have DDNS configured and working for dynamic addresses, but it's not quite right for static addresses yet. The DHCP server assigns the static address, but it doesn't update the DNS sever with the associated host name. Which means I have to use the IP address when accessing the host instead of the host name. How can I get the DHCP server to update the DNS with the host name associated with the fixed-address?

    Here is my current dhcpd.conf.

    Code:
    ddns-update-style       interim;
    ignore                  client-updates;
    
    include "/etc/bind/rndc.key";
    
    zone home.lan. {
            primary 127.0.0.1;
            key     "rndc-key";
    }
    
    authoritative;
    subnet 192.168.0.0 netmask 255.255.255.0 {
            range                           192.168.0.100 192.168.0.199;
            option domain-name-servers      192.168.0.2;
            option domain-name              "home.lan";
            option routers                  192.168.0.3;
            default-lease-time              600;
            max-lease-time                  7200;
    
            zone server1.home.lan. {
                    primary 192.168.0.2;
                    key "rndc-key";
            }
    
            zone 0.168.192.in-addr.arpa. {
                    primary 192.168.0.2;
                    key "rndc-key";
            }
    }
    
    # Assign static IP addresses
    host david-notebook {
      hardware ethernet 00:90:f5:3f:a2:3a;
      fixed-address 192.168.0.14;
    }

    Thanks,
    David

  2. #2
    Join Date
    Aug 2010
    Location
    hole
    Beans
    415
    Distro
    Ubuntu

    Re: How to update DDNS for fixed-address hosts?

    i dont understand yet.
    and what about your named/bind settings zone settings file?

  3. #3
    Join Date
    Dec 2010
    Beans
    16

    Re: How to update DDNS for fixed-address hosts?

    Since it is working fine for dynamic addresses, I expect the other configuration files are correct. I just need a way to get the dhcp server to tell update the dns when it doles out a fixed-address.

    I found a web page that recommended adding

    Code:
    update-static-leases    on;
    to the top of dhcpd.conf and

    Code:
    ddns-hostname "david-notebook";
    ddns-domain-name "home.lan";
    option host-name "david-notebook";
    option domain-name "home.lan";
    to the host statement of the fixed-address host. When I restarted the server, I got an error for the line

    Code:
    ddns-domain-name "home.lan";
    After commenting out that line the server restarted without error. Now my dhcpd.conf looks as follows.

    Code:
    ddns-update-style       interim;
    
    # We want fixed-address entries you want to use dynamic dns.
    update-static-leases    on;
    
    ignore                  client-updates;
    
    include "/etc/bind/rndc.key";
    
    zone home.lan. {
            primary 127.0.0.1;
            key     "rndc-key";
    }
    
    authoritative;
    subnet 192.168.0.0 netmask 255.255.255.0 {
            range                           192.168.0.100 192.168.0.199;
            option domain-name-servers      192.168.0.2;
            option domain-name              "home.lan";
            option routers                  192.168.0.3;
            default-lease-time              600;
            max-lease-time                  7200;
    
            zone server1.home.lan. {
                    primary 192.168.0.2;
                    key "rndc-key";
            }
    
            zone 0.168.192.in-addr.arpa. {
                    primary 192.168.0.2;
                    key "rndc-key";
            }
    }
    
    host david-notebook {
      hardware ethernet 00:90:f5:3f:a2:3a;
      fixed-address 192.168.0.14;
      ddns-hostname "david-notebook";
      #ddns-domain-name "home.lan";
      option host-name "david-notebook";
      option domain-name "home.lan";
    }
    This works and I can now access david-notebook by name. Before, I had to use the ip address.

    Even though it works, I'm still concerned because the website I found is dated 2008. Do I have it right for dhcp3 and bind9?

    Thanks,
    David

  4. #4
    Join Date
    Mar 2008
    Beans
    17

    Re: How to update DDNS for fixed-address hosts?

    Hi,

    I have the same issue as you, could you show me your configuration detail ? appreciated.

  5. #5
    Join Date
    Jun 2011
    Beans
    1

    Re: How to update DDNS for fixed-address hosts?

    Hello. After nearly a year I have come up with the same issue. How can I get the DHCP server to update the DNS with the host name associated with the fixed-address? Can anyone help me on this ? nsupdate works well but DHCP does not seem to update the DNS records. Also for the above post complaining about the line
    ddns-domain-name "home.lan";
    it should be
    ddns-domainname "home.lan";
    i.e. withput the dash

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •