LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-30-2005, 09:23 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
Please help!! DDNS & DHCP


hi there,

i'm trying to get bind9 running DDNS and dhcp working on my fedora core 3 server, but i'm having increasly less luck everytime i try. here are my conf files below and my network setup, dhcp server seams to start alright, but my named server wont start or put out any error messages, can someone please tell me whats going on?

server name: mc1.fedora.directory.server
server ip: 192.168.0.114
domain name: fedora.directory.server

/etc/dhcp.conf

# File with key we shall use to securely update zone files
###########################################################
include "/etc/named.keys";

# Our server is authority
#########################################################
server-identifier fedora.directory.server;
authoritative;

# Zone specification
zone fedora.directory.server.forward. {
primary 192.168.0.114;
key DHCP_UPDATER;
}
zone fedora.directory.server.reverse. {
primary 192.168.0.114;
key DHCP_UPDATER;
}

# Various options
########################################
default-lease-time 86400;
max-lease-time 172800;

option domain-name "fedora.directory.server";
option domain-name-servers 192.168.0.114;

ignore client-updates;
ddns-domainname "fedora.directory.server";
ddns-updates on;
ddns-update-style interim;

# Declaration of network properties ( range ... )
# ################################################
subnet 192.168.0.0 netmask 255.255.255.0 {
next-server mc1.fedora.directory.server;
authoritative;
allow client-updates;
allow unknown-clients;
ddns-updates on;
ddns-rev-domainname "fedora.directory.server";
ddns-domainname "fedora.directory.server";
server-name "mc1.fedora.directory.server";
range dynamic-bootp 192.168.0.10 192.168.0.254;
zone fedora.directory.server {
primary 127.0.0.1;
key DHCP_UPDATER;
}
zone 0.168.192.in-addr.arpa. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
option subnet-mask 255.255.255.0;
option routers 192.168.0.1;
one-lease-per-client on;
}

/etc/named.conf

# Include file with key
#################################################
include "/etc/named.keys";

# Access Control Lists
#################################################
acl mynet {
192.168.0.0/24;
127.0.0.1;
};

# Various Options
#################################################
options {
directory "/var/named";
allow-query { mynet; };
};

# Misc zone declarations
#################################################
zone "localhost" in {
type master;
file "localhost.zone";
};

zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};

zone "." in {
type hint;
file "root.hint";
};

# Forward foobar.tld zone declaration
#################################################
zone "fedora.directory.server" {
type master;
file "fedora.directory.server.hosts";
allow-update { key DHCP_UPDATER; };
allow-query { mynet; };
allow-transfer { mynet; };
};

# Reverse foobar.tld zone declaration
#################################################
zone "0.168.192.in-addr.arpa" {
type master;
file "0.168.192.rev";
allow-update { key DHCP_UPDATER; };
allow-query { mynet; };
allow-transfer { mynet; };
};

/var/named/chroot/var/named/fedora.directory.server.hosts

$ttl 38400
fedora.directory.server. IN SOA fedora.directory.server. paul.localhost. (
1135926767
10800
3600
604800
38400 )
fedora.directory.server. IN NS fedora.directory.server.

/var/named/chroot/var/named/192.168.0.0.rev

$ttl 38400
0.168.192.in-addr.arpa. IN SOA fedora.directory.server. paul.localhost. (
1135926872
10800
3600
604800
38400 )
0.168.192.in-addr.arpa. IN NS fedora.directory.server.

Last edited by paul_mat; 12-30-2005 at 09:26 PM.
 
Old 01-01-2006, 06:37 AM   #2
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
EXAMPLE FILES:

named.conf: - http://www.geocities.com/evilperson8...named.conf.txt

dhcpd.conf: - http://www.geocities.com/evilperson8...dhcpd.conf.txt

0.168.192.rev: - http://www.geocities.com/evilperson8...68.192.rev.txt

fedora.directory.server.hosts: - http://www.geocities.com/evilperson8...rver.hosts.txt

NETWORK SETTINGS:

DNS DHCP IP: 192.168.0.114

DNS DHCP NetboisName: mc1.fedora.directory.server

Router: 192.168.0.1

DNS domain: fedora.directory.server

1. download the genDDNSkey.sh file from

'http://www.geocities.com/evilperson8...genddnskey.txt'

2. run the genddnskey.sh file

'/home/script/genddnskey.sh'

3. copy & edit the example named.conf file to

'/etc/named.conf'

4. copy & edit the example dhcpd.conf file to

'/etc/dhcpd.conf'

5. copy & edit the example fedora.directory.server.hosts file to

'/var/named/chroot/var/named/fedora.directory.server.hosts'

6. copy & edit the example 0.168.192.rev file to

'/var/named/chroot/var/named/0.168.192.rev'

7. change the ownership of all the files in the named chroot

'chown -R named:named /var/named/chroot/'

8. change the read/write/execute permissions of all the files in the named chroot

'chmod -R a+rwx /var/named/chroot/'

Last edited by paul_mat; 01-01-2006 at 07:10 AM.
 
  


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
NSlookup fails, DDNS & DHCP HellSpawn Linux - Networking 7 04-06-2007 08:50 AM
DDNS Bind 9.0 / DHCP - mule Linux - Networking 2 01-06-2006 11:55 PM
DHCP and DDNS - not working ccigmaian Linux - Networking 3 12-05-2005 11:19 PM
DHCP and DDNS garullon245136 Linux - Networking 1 06-20-2005 08:29 PM
DHCP/DDNS Troubleshooting dguy Linux - Networking 5 06-09-2002 03:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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