LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-30-2016, 09:52 PM   #1
norwegiandemon
LQ Newbie
 
Registered: Jan 2016
Posts: 1

Rep: Reputation: Disabled
Question How to get clients to register and dynamically update BIND DNS server?


So I have a pretty standard setup: Home router (192.168.0.1) acting as a NAT, and DHCP server for all clients on my 192.168.0.0/24 network. I created a Debian server (192.168.0.2) with a static IP, and installed BIND using this guide.

Clients are using the server for lookups, forwarding is happening like a champ, caching looks like its working and my manually created A records resolve as well. I just can't get the clients to register dynamically...

In my named.conf.local I have my zone db files listed, they pass all checks, and /var/log/syslog shows they load just fine and I use the following in an attempt to get clients to register themselves: allow-update { 192.168.0.0/24;};
I've also given write permissions to the bind user/service itself to the db.* files...

I really don't want to setup a separate DHCP server instance (even if it's on the same host) because my router does a fine enough job and I'm not trying to over complicate things. I'm at a loss so any help would be appreciated.
 
Old 01-31-2016, 02:25 AM   #2
paziulek
Member
 
Registered: Mar 2009
Location: N.C.
Distribution: "gentoo|debian|arch"
Posts: 106

Rep: Reputation: 11
in the beginning of dhcpd.conf you will need something like:

Code:
ddns-update-style interim;
ddns-updates on;
ddns-domainname "home.local";
update-static-leases on;
key rndc-key { algorithm hmac-md5; secret "FxU11YBMFyXP8evP1Ei0zw==";}
and named.conf:
Code:
key "rndc-key" {
  algorithm hmac-md5;
  secret "FxU11YBMFyXP8evP1Ei0zw==";
};
with a couple of tweaks this should be it...
on the other hand, there is several good guides for DHCP/DNS integration. For more details/ or explanation check here at LQ or use your favorite search engine.

edit: you might not need to declare the 'key's ' - it is used for xfer's in HA setups for DHCPd pairs and BIND instances.

Last edited by paziulek; 01-31-2016 at 02:34 AM.
 
Old 01-31-2016, 04:50 AM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by norwegiandemon View Post
I'm not trying to over complicate things
Simple = turn off dhcp on your router and install dnsmasq on your server to do both dhcp & dns.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to monitor query request from clients on bind DNS server ?? dr.x Linux - Server 3 10-23-2013 03:39 AM
How to get Windows Clients to be served DNS from a Linux BIND-DNS Server texmansru47 Linux - Networking 12 07-10-2008 07:06 PM
Problem in update The DNS Server Record Dynamically javabb Linux - Newbie 1 01-05-2005 02:58 PM
dynamically register ip address to windows 2000 dns PantherSE Linux - Networking 0 06-23-2004 12:38 PM
How do I dynamically register RH9 in W2K DNS narshadda Linux - Networking 2 10-31-2003 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration