I have been having problems getting a linux server (running Fedora 14)
to function as a DNS/DHCP server. Because there is a NFS server
running, I need to have the DNS assign specific addresses to specific
machines.
If I configure makedo.mumbles.com for DHCP client, it winds up with
address 10.10.0.120, I would like it to have address 10.10.0.164.
Below are the configuration files. Can anyone spot where I went wrong?
TIA
Neal
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8)
DNS
// server as a caching only nameserver (as a localhost DNS resolver
only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration
files.
//
options {
listen-on port 53 { 127.0.0.1; 10.10.0.101; };
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 { 127.0.0.1; 10.10.0.101; };
query-source address * port 53;
forward first;
forwarders { 209.240.224.1; 209.240.254.1; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
channel update_debug {
file "data/update-debug.log";
severity debug 3;
print-category yes;
print-severity yes;
print-time yes;
};
channel security_info {
file "data/named-auth.log";
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category update { update_debug; };
category security { security_info; };
};
zone "." IN {
type hint;
file "named.ca";
};
key "DYNAMIC_DNS_KEY" {
algorithm hmac-md5;
secret "somerandomcharacters";
};
zone "mumbles.com" IN {
type master;
notify no;
allow-update { key DYNAMIC_DNS_KEY; };
file "data/leeshore.zone";
};
zone "96.168.172.in-addr.arpa" IN {
type master;
notify no;
allow-update { key DYNAMIC_DNS_KEY; };
file "data/reverse-172-168-96-100.zone";
};
# Use with the following in named.conf, adjusting the allow list as
needed:
key "rndc-key" {
algorithm hmac-md5;
secret "moresomerandomcharacters";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
# End of named.conf
################################# FORWARD ZONE FILE
############################
# include "/etc/rndc.key";
include "/etc/named.rfc1912.zones";
;
; Zone File for "mumbles.com" - Internal Use ONLY
;
$TTL 1D
@ IN SOA galaxy.mumbles.com.
sysadmin.mumbles.com. (
10 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
;
IN NS galaxy ; Name Server for the domain
;
mumbles.com IN A 10.10.0.101
galaxy IN A 10.10.0.101
www IN CNAME galaxy ; 'galaxy' is also known as www
ftp IN CNAME galaxy ; 'galaxy' is also known as ftp
;
den2 IN A 10.10.0.151
makedo IN A 10.10.0.164
rently IN A 10.10.0.172
oldguy IN A 10.10.0.188
dently IN A 10.10.0.195
vdently01 IN A 10.10.0.101
mack IN A 10.10.0.203
wanderer IN A 10.10.0.217
fenton IN A 10.10.0.223
testbed01 IN A 10.10.0.224
testbed02 IN A 10.10.0.225
testbed03 IN A 10.10.0.226
################################# REVERSE ZONE FILE
############################
;
; Reverse File for network 10.10.0.101 - Internal Use ONLY
;
$TTL 1D
@ IN SOA galaxy.mumbles.com.
sysadmin.mumbles.com. (
10 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
;
IN NS galaxy.mumbles.com.
101 IN PTR galaxy.mumbles.com.
;
151 IN PTR den2.mumbles.com.
164 IN PTR makedo.mumbles.com.
172 IN PTR rently.mumbles.com.
188 IN PTR oldguy.mumbles.com.
195 IN PTR dently.mumbles.com.
196 IN PTR vdently01.mumbles.com.
203 IN PTR mack.mumbles.com.
217 IN PTR wanderer.mumbles.com.
223 IN PTR fenton.mumbles.com.
224 IN PTR testbed01.mumbles.com.
225 IN PTR testbed02.mumbles.com.
226 IN PTR testbed03.mumbles.com.
################################# DHCPD.CONF FILE
############################
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# Use this to enble / disable dynamic dns updates globally.
ddns-update-style interim;
allow client-updates;
lease-file-name "/var/lib/dhcpd/dhcpd.leases";
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# option definitions common to all supported networks...
default-lease-time 86400; # 24 hours
max-lease-time 172800; # 48 hours
# A slightly different configuration for an internal subnet.
subnet 10.10.0.0 netmask 255.255.255.0 {
range 10.10.0.120 10.10.0.255;
option routers 10.10.0.113;
option subnet-mask 255.255.255.0;
option broadcast-address 10.10.0.255;
option domain-name-servers 10.10.0.101;
# option ntp-servers 10.10.0.101;
option domain-name "mumbles.com";
}
key "DYNAMIC_DNS_KEY" {
algorithm hmac-md5;
secret "somerandomcharacters";
}
zone mumbles.com. {
primary 127.0.0.1;
key DYNAMIC_DNS_KEY;
}
zone 101.96.168.172.in-addr.arpa. {
primary 127.0.0.1;
key DYNAMIC_DNS_KEY;
}
################################# RNDC.CONF FILE
############################
key "rndc-key" {
algorithm hmac-md5;
secret "moresomerandomcharacters";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf
################################# HOST.CONF FILE
############################
multi on
order hosts,bind