[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

static DNS record and DHCP



Title: static DNS record and DHCP

Hi all,

Can someone give me some clue on this problem?

I got DHCP 3.0.1 and BIND 9.2.3 configured on Fedora Core 3 to work with Windows 2003 Active Directory. When I manually add some static hosts into DNS zone file, it is deleted automatically after a while. How can I keep them from being removed? I need some static IPs for servers.

my /etc/dhcpd.conf is as follows:
===============================
# Server settings
authoritative;
ddns-update-style ad-hoc;

# Global settings
option domain-name "testdomain.com";
default-lease-time 21600;
max-lease-time 43200;
ddns-updates on;
ddns-domainname "testdomain.com";
ddns-rev-domainname "in-addr.arpa";

key rndc-key {
  algorithm hmac-md5;
  secret "8mTgBumsU7SEaYkDvE2RvBVYUtwPQCdg/CHV/v2pOGM";
}

zone testdomain.com. {
  primary 192.168.22.3;
  key rndc-key;
}

# LAN1 IP Range
subnet 192.168.11.0 netmask 255.255.255.0 {
  option domain-name-servers 192.168.11.3, 192.168.11.15;
  option netbios-name-servers 192.168.11.21;
  option ntp-servers 192.168.11.3;
  option routers 192.168.11.1;
  range 192.168.11.41 192.168.11.254;
  zone 11.168.192.in-addr.arpa. {
    primary 192.168.11.3;
    key rndc-key;
  }
}

# LAN2 IP Range
subnet 192.168.22.0 netmask 255.255.255.0 {
  option domain-name-servers 192.168.22.3, 192.168.22.15;
  option netbios-name-servers 192.168.22.22;
  option ntp-servers 192.168.22.3;
  option routers 192.168.22.1;
  range 192.168.22.41 192.168.22.254;
  zone 22.168.192.in-addr.arpa. {
    primary 192.168.22.3;
    key rndc-key;
  }
}
===============================================


Thanks,

Steve Zeng



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]