[gentoo-user] DDNS Problem

2006-03-15 Thread Hiren Dave
Hi All,
I am facing problems in configuring DDNS with dhcpd. When i'm rebooting linux machine, it is getting dynamically ip address from linux server but no dynamic dns updates are there. Also when i renew ip address of windows 2000 prof, it not getting ip address from linux dhcp server. Following is the configuration that might help you solving my problem. Both Master DNS and dhcp server are on the same server 
server1.guru.com
#guru.com.zone#$TTL 86400$ORIGIN guru.com.@1D IN SOA@ root.guru.com. (00;Serial10;Refresh
1M;Retry1W;Expiry1M );Minimum TTL
1D IN NS@
server1 1D IN A192.168.0.2server2 1D IN A192.168.0.3win2k2D IN A192.168.0.1
www1INCNAMEserver1.guru.com.www2INCNAMEserver2.guru.com.www3INCNAMEwin2k.guru.com.#END
##0.168.192.zone$TTL 86400@INSOAguru.com.root.guru.com.(00;Serial10;Refresh1M;Retry
1W;Expiry1M );Minimum TTL
INNSguru.com.
2INPTRserver1.guru.com.1INPTRwin2k.guru.com.3INPTRserver2.guru.com.#END
###dhcpd.conf###ddns-updates on;ddns-update-style interim;#ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gatewayoption routers192.168.0.2;option subnet-mask255.255.255.0;
#option nis-domaindomain.org;option domain-nameguru.org;option domain-name-servers192.168.0.2
;
option time-offset-18000;# Eastern Standard Time#option ntp-servers192.168.0.1;#option netbios-name-servers192.168.0.1;# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well#option netbios-node-type 2;
range dynamic-bootp 192.168.0.128 192.168.0.254;default-lease-time 43200;max-lease-time 43200;
# we want the nameserver to appear at a fixed address#host ns {#next-server server1.redhat.com;#hardware ethernet 12:34:56:78:AB:CD;#fixed-address 
207.175.42.254;#}}#END##/var/log/messages#server1.guru.com log file##Mar 15 15:29:36 server1 dhcpd: Listening on LPF/eth0/00:0c:29:9f:6e:55/192.168.0.0/24
Mar 15 15:29:36 server1 dhcpd: Listening on LPF/eth0/00:0c:29:9f:6e:55/192.168.0.0/24Mar 15 15:29:36 server1 dhcpd: Sending on LPF/eth0/00:0c:29:9f:6e:55/192.168.0.0/24Mar 15 15:29:36 server1 dhcpd: Sending on Socket/fallback/fallback-net
Mar 15 15:29:36 server1 dhcpd: Mar 15 15:29:36 server1 dhcpd: Sending on LPF/eth0/00:0c:29:9f:6e:55/192.168.0.0/24Mar 15 15:29:36 server1 dhcpd: Sending on Socket/fallback/fallback-netMar 15 15:29:36 server1 dhcpd: dhcpd startup succeeded
Mar 15 15:37:57 server1 dhcpd: dhcpd shutdown succeededMar 15 15:37:57 server1 dhcpd: Internet Software Consortium DHCP Server V3.0pl2Mar 15 15:37:57 server1 dhcpd: Copyright 1995-2003 Internet Software Consortium.
Mar 15 15:37:57 server1 dhcpd: All rights reserved.Mar 15 15:37:57 server1 dhcpd: For info, please visit http://www.isc.org/products/DHCPMar 15 15:37:57 server1 dhcpd: Wrote 1 leases to leases file.
Mar 15 15:37:57 server1 dhcpd: Internet Software Consortium DHCP Server V3.0pl2Mar 15 15:37:57 server1 dhcpd: Copyright 1995-2003 Internet Software Consortium.Mar 15 15:37:57 server1 dhcpd: All rights reserved.
Mar 15 15:37:57 server1 dhcpd: For info, please visit http://www.isc.org/products/DHCPMar 15 15:37:57 server1 dhcpd: Wrote 1 leases to leases file.Mar 15 15:37:57 server1 dhcpd: Listening on LPF/eth0/00:0c:29:9f:6e:55/192.168.0.0/24
Mar 15 15:37:57 server1 dhcpd: Listening on LPF/eth0/00:0c:29:9f:6e:55/192.168.0.0/24Mar 15 15:37:57 server1 dhcpd: Sending on LPF/eth0/00:0c:29:9f:6e:55/192.168.0.0/24Mar 15 15:37:57 server1 dhcpd: Sending on Socket/fallback/fallback-net
Mar 15 15:37:57 server1 dhcpd: Mar 15 15:37:57 server1 dhcpd: Sending on LPF/eth0/00:0c:29:9f:6e:55/192.168.0.0/24Mar 15 15:37:57 server1 dhcpd: Sending on Socket/fallback/fallback-netMar 15 15:37:57 server1 dhcpd: dhcpd startup succeeded
Mar 15 15:45:12 server1 named[31429]: query logging is now onMar 15 15:47:10 server1 dhcpd: DHCPREQUEST for 192.168.0.254 from 00:0c:29:db:9c:0d via eth0Mar 15 15:47:10 server1 dhcpd: DHCPACK on 
192.168.0.254 to 00:0c:29:db:9c:0d via eth0#END#

Thanks  Regards,
Hiren Dave


Re: [gentoo-user] DDNS Problem

2006-03-15 Thread Alexander Kirillov
I am facing problems in configuring DDNS with dhcpd. When i'm rebooting 
linux machine, it is getting dynamically ip address from linux server 
but no dynamic dns updates are there. Also when i renew ip address of 
windows 2000 prof, it not getting ip address from linux dhcp server. 


You should explicitly allow updates in named.conf and
make some directories and zone files writable by bind.
Read relevant parts of BIND Administrator Reference Manual.
You may also want to add more logging options to named.conf
and there should be enough info in syslogs to troubleshoot
the problem you're having.

HTH

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DDNS Problem

2006-03-15 Thread jarry
Hiren Dave [EMAIL PROTECTED] wrote:

 I am facing problems in configuring DDNS with dhcpd. When i'm rebooting
 linux machine, it is getting dynamically ip address from linux server but
 no dynamic dns updates are there.

I think you must allow dynamic updates by allow-update or update-policy
in bind's zone-files...

And one more thing: for every ip from your dyn-ip pool I would
set very short ttl/expire in your zone-files. Otherwise caching-clients
would get know too late, that there was a change in ip/dn assignment...

Jarry

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
Feel free mit GMX DSL! http://www.gmx.net/de/go/dsl
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DDNS Problem

2006-03-15 Thread Hiren Dave
Hi,

 I think you must allow dynamic updates by allow-update or update-policy in bind's zone-files...
Here is my named.conf file which may help you solving my problem

named.conf on server1.guru.com

# Configured by Hiren Dave on 07th March 2006options {directory /var/named;dump-file /var/named/data/cache_dump.db;statistics-file /var/named/data/named_stats.txt;
allow-transfer { 192.168.0.3; };allow-query { 192.168.0.0/24; localhost; };allow-recursion { 192.168.0.0/24
; localhost; };};
controls {inet 127.0.0.1 allow { localhost; } keys { rndckey; };};
logging {category dnssec{ security_log; };category update{ security_log; };category security{ security_log; };
channel security_log {file /var/named/dns-security.log versions 5 size 20m;print-time yes;print-category yes;print-severity yes;severity info;};};
//Root server hintszone . IN { type hint;file named.ca;};
zone localhost IN {type master;file localhost.zone;};
zone 0.0.127.in-addr.arpa IN {type master;file 127.0.0.zone;};
acl dhcp-server {192.168.0.2;};
acl dhcp-clients {192.168.0/24;};
zone guru.com IN {type master;file guru.com.zone;allow-query { any; };allow-update { dhcp-clients; };};
zone 0.168.192.in-addr.arpa IN {type master;file 0.168.192.zone;allow-query { any; };allow-update { dhcp-clients; };};
#include /etc/rndc.key;
##END#

Hiren Dave
On 3/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hiren Dave [EMAIL PROTECTED] wrote: I am facing problems in configuring DDNS with dhcpd. When i'm rebooting
 linux machine, it is getting dynamically ip address from linux server but no dynamic dns updates are there.I think you must allow dynamic updates by allow-update or update-policy
in bind's zone-files...And one more thing: for every ip from your dyn-ip pool I wouldset very short ttl/expire in your zone-files. Otherwise caching-clientswould get know too late, that there was a change in ip/dn assignment...
Jarry--Echte DSL-Flatrate dauerhaft für 0,- Euro*!Feel free mit GMX DSL! http://www.gmx.net/de/go/dsl--
gentoo-user@gentoo.org mailing list