ddns (dhcp+dns)(花生壳)
在172.225.254.10主机中
vim /etc/sysconfig/network-scripts/ifcfg-westos
DEVICE=ens160
BOOTPROTO=dhcp
ONBOOT=yes
NAME=westos
在172.25.254.20的主机中
dnf install dhcp-server -y
cp /usr/share/doc/dhcp-server/dhcpd.conf.example /etc/dhcp/dhcpd.conf
vim /etc/dhcpd/dhcpd.conf
7 option domain-name "westos.com";
8 option domain-name-servers 172.25.254.20;
27 #subnet 10.152.187.0 netmask 255.255.255.0 {
28 #}
32 subnet 172.25.254.0 netmask 255.255.255.0 {
33 range 172.25.254