Gentoo Archives: gentoo-user

From: Hiren Dave <hiren2k4@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] DDNS Problem
Date: Wed, 15 Mar 2006 14:58:07
Message-Id: a944a7520603150650u26ece802x918de6c569896224@mail.gmail.com
In Reply to: Re: [gentoo-user] DDNS Problem by jarry@gmx.net
1 Hi,
2
3 > I think you must allow dynamic updates by "allow-update" or
4 "update-policy"
5 > in bind's zone-files...
6
7 Here is my named.conf file which may help you solving my problem
8
9 ################named.conf on server1.guru.com########################
10
11 # Configured by Hiren Dave on 07th March 2006
12 options {
13 directory "/var/named";
14 dump-file "/var/named/data/cache_dump.db";
15 statistics-file "/var/named/data/named_stats.txt";
16 allow-transfer { 192.168.0.3; };
17 allow-query { 192.168.0.0/24; localhost; };
18 allow-recursion { 192.168.0.0/24; localhost; };
19 };
20
21 controls {
22 inet 127.0.0.1 allow { localhost; } keys { rndckey; };
23 };
24
25 logging {
26 category dnssec { security_log; };
27 category update { security_log; };
28 category security { security_log; };
29
30 channel security_log {
31 file "/var/named/dns-security.log" versions 5 size 20m;
32 print-time yes;
33 print-category yes;
34 print-severity yes;
35 severity info;
36 };
37 };
38
39 //Root server hints
40 zone "." IN {
41 type hint;
42 file "named.ca";
43 };
44
45 zone "localhost" IN {
46 type master;
47 file "localhost.zone";
48 };
49
50 zone "0.0.127.in-addr.arpa" IN {
51 type master;
52 file "127.0.0.zone";
53 };
54
55 acl "dhcp-server" {
56 192.168.0.2;
57 };
58
59 acl "dhcp-clients" {
60 192.168.0/24;
61 };
62
63 zone "guru.com" IN {
64 type master;
65 file "guru.com.zone";
66 allow-query { any; };
67 allow-update { dhcp-clients; };
68 };
69
70 zone "0.168.192.in-addr.arpa" IN {
71 type master;
72 file "0.168.192.zone";
73 allow-query { any; };
74 allow-update { dhcp-clients; };
75 };
76
77 #include "/etc/rndc.key";
78 ##########################END#####################################
79
80 Hiren Dave
81
82 On 3/15/06, jarry@×××.net <jarry@×××.net> wrote:
83 >
84 > "Hiren Dave" <hiren2k4@×××××.com> wrote:
85 >
86 > > I am facing problems in configuring DDNS with dhcpd. When i'm rebooting
87 > > linux machine, it is getting dynamically ip address from linux server
88 > but
89 > > no dynamic dns updates are there.
90 >
91 > I think you must allow dynamic updates by "allow-update" or
92 > "update-policy"
93 > in bind's zone-files...
94 >
95 > And one more thing: for every ip from your dyn-ip pool I would
96 > set very short ttl/expire in your zone-files. Otherwise caching-clients
97 > would get know too late, that there was a change in ip/dn assignment...
98 >
99 > Jarry
100 >
101 > --
102 > Echte DSL-Flatrate dauerhaft für 0,- Euro*!
103 > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
104 > --
105 > gentoo-user@g.o mailing list
106 >
107 >