option domain-name "station15.example.com";
但在工作站用光盘启动,开始安装REDHAT
9,用的是DHCP,安装完成之后香不到域名,域名成了:localhost
老大,在你的dhcp config中应该有这个吧
option domain-name "example.com";
是这样的,应该怎么改?
[root@gateway etc]# cat dhcpd.conf
default-lease-time 2160000;
ddns-update-style ad-hoc;
subnet 192.168.4.0 netmask 255.255.255.0
{
range 192.168.4.30 192.168.4.230;
option broadcast-address 192.168.4.255;
option routers 192.168.4.9;
option domain-name-servers 192.168.4.6,202.102.14.141,210.15.22.2,210.78.21.1;
option netbios-name-servers 192.168.4.10;
# host pxeclient
# {
# hardware ethernet 00:02:2E:F4:66:98;
# fixed-address 192.168.4.12;
# next-server 192.168.4.181;
# filename "pxelinux.0";
# next-server 192.168.4.13;
# }
# host pxeclient1
# {
# hardware ethernet 00:20:Ed:ab:47:ee;
# fixed-address 192.168.4.13;
# next-server 192.168.4.181;
# filename "pxelinux.0";
# next-server 192.168.4.181;
# }
host station15
{
hardware ethernet 00:05:5D:FE:CE:D1;
fixed-address 192.168.4.15;
option domain-name "station15.example.com";
}
}
option domain-name-servers 192.168.4.6,202.102.14.141,210.15.22.2,210.78.21.1;
option domain-name "example.com";
option netbios-name-servers 192.168.4.10;
改成了这样:
default-lease-time 2160000;
ddns-update-style ad-hoc;
subnet 192.168.4.0 netmask 255.255.255.0
{
range 192.168.4.30 192.168.4.230;
option broadcast-address 192.168.4.255;
option routers 192.168.4.9;
option domain-name "example.com";
option domain-name-servers 192.168.4.6,202.102.14.141,210.15.22.2,210.78.21.1;
option netbios-name-servers 192.168.4.10;
# host pxeclient
# {
# hardware ethernet 00:02:2E:F4:66:98;
# fixed-address 192.168.4.12;
# next-server 192.168.4.181;
# filename "pxelinux.0";
# next-server 192.168.4.13;
# }
# host pxeclient1
# {
# hardware ethernet 00:20:Ed:ab:47:ee;
# fixed-address 192.168.4.13;
# next-server 192.168.4.181;
# filename "pxelinux.0";
# next-server 192.168.4.181;
# }
host station15
{
hardware ethernet 00:05:5D:FE:CE:D1;
fixed-address 192.168.4.15;
}
}
结果还是一样。
终于找到了,原来是要用:option host-name "station15.exampe.com";