关于一个局域网内有两个DHCP,两个DNS 服务器 的问题!
我司现在DNS 服务器 domain.com IP:192.168.0.4 ,DHCP 服务器是路由器自带的 192.168.0.1.
现我在虚拟机red hat enterprise 5.4 上做了一个DNS服务器 holly.com IP:192.168.0.254 ,DHCP 服务器:192.168.0.1
ping www.holly.com ,nslookup 192.168.0.254 都通过,说明DNS 服务器,没有任何问题.
DHCP 服务器,也可以正常启动!
现在,两个DSN,两个DHCP,都以开启,为什么网内的95% 的电脑,自动获取IP,DNS时
只能认到 DNS:192.168.0.1 getaway:192.168.0.1 :second DNS 也是 192.168.0.1
[b]这是为什么??、 有没有办法让所有的的电脑,自动获取DNS 时,都为 192.168.0.254[/b]
cat /etc/dhcpd.conf
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
#option nis-domain "domain.org";
option nis-domain "holly.com";
#option domain-name "domain.org";
option domain-name "holly.com";
option domain-name-servers 192.168.0.254;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.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.30 192.168.0.230;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}