LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 09-14-2014, 07:09 AM   #1
FarhadF
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
Unhappy DHCP DDNS Update problem on CentOS 7


Hi Guys,
This is my first post on the forums so please forgive me if I'm in wrong location
I'm new to linux and enjoying configuring basic network services. :P
I'm Having some difficulty running DDNS updates using latest version on bind/DHCP available in CentOS 7.
My configuration :
SElinux set to permissive.
firewalld service stopped.
DHCP handing out ip addresses fine.
DNS resolving on the clients aswell.
The problem is dynamic dns updates arent happening.

dhcpd.conf
Code:
# dhcpd.conf

default-lease-time 600;
max-lease-time 7200;

ddns-updates on;
ddns-update-style interim ;
#ddns-domainname "globomantics.local.";
ignore client-updates;

authoritative;

log-facility local7;

subnet 192.168.19.0 netmask 255.255.255.0 {
        range 192.168.19.30 192.168.19.40;
        option broadcast-address 192.168.19.255;
        option routers 192.168.19.2;
        option domain-search "globomantics.local";
        option domain-name "globomantics.local";
        option domain-name-servers 192.168.18.254;
        ddns-ttl 86400;
}
zone globomantics.local. {
        primary 192.168.19.254;
}
named.conf
Code:
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//


options {
        listen-on port 53 {192.168.19.0/24;localhost;};
        listen-on-v6 port 53 { none; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     {any ; };
        allow-query-cache { any; };

        /*
         - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
         - If you are building a RECURSIVE (caching) DNS server, you need to enable
           recursion.
         - If your recursive DNS server has a public IP address, you MUST enable access
           control to limit queries to your legitimate users. Failing to do so will
           cause your server to become part of large scale DNS amplification
           attacks. Implementing BCP38 within your network would greatly
           reduce such attack surface
        */
        recursion no;

        dnssec-enable no;

        dnssec-validation yes;
        dnssec-lookaside auto;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";

        managed-keys-directory "/var/named/dynamic";

        pid-file "/run/named/named.pid";
        session-keyfile "/run/named/session.key";
};

logging {
        channel default_debug {
                syslog local7;
                severity dynamic;
                print-category yes;
                print-severity yes;
                print-time yes;
        };
};

zone "." IN {
        type hint;
        file "named.ca";
};
zone "globomantics.local." IN {
        type master;
        allow-update {127.0.0.1;localhost;192.168.19.254; };
        file "globomantics.local.db";

};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
zone db file:
Code:
$ORIGIN globomantics.local.
$TTL 86400
@       IN      SOA     server1.globomantics.local. root (
                20140902;serial
                21600           ;refesh after 6 hours
                3600            ;retry after 1 hour
                604800          ;expire after 1 week
                86400 )         ;minimum ttl of 1 day
        IN      NS      server1.globomantics.local.
server1 IN      A       192.168.19.254
wtf     IN      A       192.168.19.253
Thanks in advance
Farhad
 
Old 09-21-2014, 05:30 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
The only thing that stuck out was your recursion is set to no, in named.

It's a shot in the dark if you havn't tried that already.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DDNS DHCP problem morpheus78 Linux - Networking 4 09-05-2012 12:30 PM
DHCP/BIND and ddns to update two subnets gudlyf Linux - Software 3 05-25-2012 02:33 PM
CentOS 5.7: How can DHCP automatically update /etc/hosts? needsleep Linux - Newbie 1 10-30-2011 11:38 PM
How to update Windows DDNS server by Linux DHCP server Zebrastreifen Linux - Networking 1 08-02-2006 05:19 PM
DHCP and DDNS garullon245136 Linux - Networking 1 06-20-2005 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:44 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