#1  
Old 16th October 2007, 11:06
TheMystery TheMystery is offline
Junior Member
 
Join Date: Oct 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic DNS

Hello i followed the how to for dynamic dns but it won't work.
i have searched on the internet but it seems good to me.

this are my configuration files

zone files:
Code:
$TTL 86400	;1day

@       IN     SOA    linux.example.com.     root.example.com. (
                    2007101601 ; serial
                    28800      ; refresh
                    7200       ; retry 
                    1209600    ; expire
                    1440 )     ; TTL


	IN	NS	linux

linux	IN	A	192.168.1.10
Code:
$TTL 86400	;1day

@     IN     SOA    linux.example.com.     root.example.com. (
                    2007101601 ; serial
                    28800      ; refresh
                    7200       ; retry 
                    120960     ; expire
                    1440 )     ; TTL 

	IN	NS	linux

10	IN	PTR	linux.
named.conf:
Code:
controls {
        inet 127.0.0.1 allow {linux; } keys { "rndckey"; };
};

zone "." {
	type hint;
	file "/etc/db.cache";
};

zone "example.com" IN {
       type master;
       file "/var/named/zones/db.example.com";
       allow-update { key "rndckey"; };
       notify yes;
};

zone "1.168.192.in-addr.arpa" {
       type master;
       file "/var/named/zones/db.1.168.192.in-addr.arpa";
       allow-update { key "rndckey"; };
       notify yes;
};
dhcp.conf:
Code:
authoritative;
include "/etc/rndc.key";
# Server configuration:

server-identifier    linux;
ddns-domainname         "example.com.";
ddns-rev-domainname     "in-addr.arpa.";
ddns-update-style       interim;
ddns-updates            on;
ignore                  client-updates;

# This is the communication zone
zone example.com. {
    primary 127.0.0.1;
    key rndckey;
}

default-lease-time 1200;
max-lease-time 9200;

# Client configuration:
option ip-forwarding    off;
subnet 192.168.1.0 netmask 255.255.255.0 {
	range 192.168.1.20 192.168.1.100;
	option subnet-mask 255.255.255.0;
	option broadcast-address 192.168.1.255;
	option routers 192.168.1.10;
	option domain-name-servers 192.168.1.10;
	option domain-name "example.com";
        zone  1.168.192.in-addr.arpa. {
                primary 192.168.0.1;
                key rndckey;
        }
        zone localdomain. {
                primary 192.168.0.1;
                key rndckey;
        } 
}
the directory /var/named is chmod 770

is this good or not?
Reply With Quote
Sponsored Links
  #2  
Old 17th October 2007, 15:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by TheMystery
Hello i followed the how to for dynamic dns but it won't work.
Which tutorial (URL) exactly? Which distribution are you using?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th October 2007, 15:12
TheMystery TheMystery is offline
Junior Member
 
Join Date: Oct 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i followed this tutorial:
http://www.howtoforge.com/fedora_dynamic_dns

i have centos 5

So this tutorial shoud work both distributions are from red hat

but it works now except the reverse map not.

Last edited by TheMystery; 17th October 2007 at 15:14.
Reply With Quote
  #4  
Old 17th October 2007, 15:20
TheMystery TheMystery is offline
Junior Member
 
Join Date: Oct 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

this are now my configuration files

dhcpd.conf:
Code:
authoritative;
include "/etc/rndc.key";
# Server configuration:

server-identifier    linux;
ddns-domainname         "moosdijk.com.";
ddns-rev-domainname     "1.168.192.in-addr.arpa.";
ddns-update-style       interim;
ddns-updates            on;
ignore                  client-updates;

# This is the communication zone
zone moosdijk.com. {
    primary 127.0.0.1;
    key rndckey;
}

default-lease-time 1200;
max-lease-time 9200;

# Client configuration:
option ip-forwarding    off;
subnet 192.168.1.0 netmask 255.255.255.0 {
	range 192.168.1.20 192.168.1.100;
	option subnet-mask 255.255.255.0;
	option broadcast-address 192.168.1.255;
	option routers 192.168.1.10;
	option domain-name-servers 192.168.1.10;
	option domain-name "moodijk.com";
        zone  1.168.192.in-addr.arpa. {
                primary 192.168.0.1;
                key rndckey;
        }
        zone localdomain. {
                primary 192.168.0.1;
                key rndckey;
        } 
}
named.conf:
Code:
controls {
        inet 127.0.0.1 port 953 
	allow {127.0.0.1; } keys { "rndckey"; };
};

include "/etc/rndc.key";

zone "." {
	type hint;
	file "/etc/db.cache";
};

zone "moosdijk.com" {
       type master;
       file "/var/named/zones/db.moosdijk.com.zone";
       allow-update { key "rndckey"; };
       notify yes;
};

zone "1.168.192.in-addr.arpa" {
       type master;
       file "/var/named/zones/db.1.168.192.in-addr.arpa";
       allow-update { key "rndckey"; };
       notify yes;
};
zone files:
Code:
$ORIGIN .
$TTL 86400	; 1 day
moosdijk.com		IN SOA	linux.moosdijk.com. root.moosdijk.com. (
				2007101702 ; serial
				28800      ; refresh (8 hours)
				7200       ; retry (2 hours)
				1209600    ; expire (2 weeks)
				1440       ; minimum (24 minutes)
				)
			NS	linux.moosdijk.com.
$ORIGIN moosdijk.com.
linux			A	192.168.1.10
$TTL 600	; 10 minutes
winxp			A	192.168.1.97
			TXT	"31177f6d1c7a91b4c31b091e23fa6235a0"
this file is changed by dynamic dns


reverse:
Code:
$TTL 86400	; 1 day

@     IN     SOA    linux.moosdijk.com.     root.moosdijk.com. (
                    2007101701 ; serial
                    28800      ; refresh
                    7200       ; retry 
                    120960     ; expire
                    1440 )     ; TTL 

	IN	NS	linux

10	IN	PTR	linux.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Configuration Problems VMartins Installation/Configuration 10 24th July 2007 14:40
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
No SPF record. beryl Installation/Configuration 6 17th May 2007 19:52
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
Using a different DNS server with Dynamic DNS CombatGod Installation/Configuration 1 11th May 2006 17:43


All times are GMT +2. The time now is 00:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.