Configuring dynamic DNS on your local network

Right now you get your IP address configured automatically via DHCP and you're able to resolve DNS records from the internet via your DNS server. With the use of Dynamic DNS, you can also leverage your DNS server to address your local systems by name as well.

How to do it…

Let's configure dynamic DNS on your local network:

  1. First, we need to configure your bind instance to host DNS for your internal domain, as well as reverse DNS for your IP range. For our example, we'll use a domain of example.org:
    zone "example.org" {         
      type master;
      notify no; 
      file "/var/lib/bind/example.org.db";
    }
    zone "0.168.192.in-addr.arpa" {      
      type master;
      notify no; 
      file "/var/lib/bind/rev.1.168.192.in-addr.arpa"; 
    };
  2. Next we populate ...

Get Linux Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.