在Debian中配置DHCP服务器的DNS,可按以下步骤进行:
sudo apt update和sudo apt install isc-dhcp-server。/etc/dhcp/dhcpd.conf文件,在子网声明块中添加option domain-name-servers行,指定DNS服务器地址,如option domain-name-servers 8.8.8.8, 8.8.4.4;,还可设置默认域名option domain-name "example.com";。/etc/default/isc-dhcp-server文件,找到INTERFACESv4行,设置为DHCP服务器要监听的网络接口,如INTERFACESv4="eth0"。sudo systemctl restart isc-dhcp-server。若需配置DNS服务器与DHCP联动,还需安装BIND9等DNS服务器软件,并进行相应配置。