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:
- 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"; };
- Next we populate the zone in
example.org.db
:example.org. IN SOA router.example.org. admin.example.org. ( 2015081401 28800 3600 604800 38400 ) example.org. ...