LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-05-2010, 01:57 PM   #1
Gran_Maestre
Member
 
Registered: Feb 2007
Posts: 38

Rep: Reputation: 15
How can configure dns cache name server with slave domain??


I don't know how configure or how explain what i want to do .... i have one server with dhcpd and dns name cache (also squid as a transparent proxy and iptables), this works fine but logs show this
Code:
Jul  5 14:45:23 proxy dhcpd: Unable to add forward map from tecnicos.xxxxxxxxx.cl to 192.168.3.60: timed out
Jul  5 14:45:23 proxy dhcpd: DHCPREQUEST for 192.168.3.60 from 00:60:6e:00:02:f4 (tecnicos) via eth0
Jul  5 14:45:23 proxy dhcpd: DHCPACK on 192.168.3.60 to 00:60:6e:00:02:f4 (tecnicos) via eth0
the server is only dns cache server, domain and web is on hosting, how can configure dhcpd and named to update correctly DNS for all the host whos connect with dhcpd??

named.conf
Code:
options {
        listen-on port 53 { 127.0.0.1; 192.168.3.1; };
        //listen-on-v6 port 53 { ::1; };
        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     { 192.168.3.0/24; 127.0.0.1; };
        recursion yes;
        dnssec-enable yes;
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

include "/etc/named.rfc1912.zones";
dhcpd.conf
Code:
log-facility local0;
authoritative;
ddns-updates on;
ddns-update-style interim;
allow client-updates;
option routers                  192.168.3.1;
option subnet-mask              255.255.255.0;
option nis-domain               "xxxxxxxx.cl";
option domain-name              "xxxxxxxx.cl";
option domain-name-servers      192.168.3.1, 200.54.144.227;
option time-offset              -18000; # Eastern Standard Time
one-lease-per-client            on;
ddns-rev-domainname             "in-addr.arpa";

shared-network LAN {
        authoritative;
        ddns-updates on;
        max-lease-time 180;
        default-lease-time 60;
        subnet 192.168.3.0 netmask 255.255.255.0 {
                authoritative;
                max-lease-time 180;
                default-lease-time 60;
                ddns-updates on;
                range 192.168.3.50 192.168.3.60;
                }
        host tecnicos {
                max-lease-time 1800;
                default-lease-time 600;
                allow client-updates;
                ddns-updates on;
                hardware ethernet 00:xx:xx:xx:xx:xx;
                fixed-address 192.168.3.19;
                option routers 192.168.3.1;
                }
        }
Si alguien me puede ayudar en español se lo agradeceré ya que mi ingles no es muy bueno.
 
Old 07-06-2010, 06:18 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
If I understand your question correctly, in your DNS configuration, you need to add a block for allowing updates between the DHCP and DNS. To do this add a block like this:
Code:
key DHCP_UPDATER {
    algorithm HMAC-MD5.SIG-ALG.REG.INT;

    # Important: Replace this key with your generated key.
    # Also note that the key should be surrounded by quotes.
     secret "your-key-goes-here";
};
This same block with go in your dhcp configuration too. You will need to generate a key for your DHCP and DNS. You can do this with the following command:
Code:
dnssec-keygen -r /dev/urandom -a HMAC-MD5 -b 128 -n USER DHCP_UPDATER
Then get the key with this:
Code:
cat Kdhcp_updater.*.private|grep Key
Then in the zones add allow-update { key DHCP_UPDATER; };
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Managed DNS server lists and dnsmasq DNS cache nitrousoxide82 Linux - Networking 1 02-21-2014 10:34 PM
how to configure master dns in windows2003 server and its slave dns in rhel5 suneellinux Linux - Newbie 1 04-11-2008 05:13 PM
setting up DNS slave server sumit dash Linux - Server 1 07-15-2007 12:51 AM
DNS Server: Master/Slave Swakoo Linux - Networking 3 06-30-2006 04:58 AM
Slave DNS server guntanis Linux - Networking 4 12-10-2003 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:20 PM.

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