安装 DNS server
说明,此步骤只有以下条件才需要进行:
1. Power 5 系列机型
2. 检查发现是 HMC 不能正常解析主机名。
需要创建编辑生成以下 6 个文件,重起服务生效:
" /etc/named.conf DNS 服务的配置文件
" /etc/named.ca DNS 服务的缓存文件
" /etc/0.0.127.in-addr.arpa.zone 本地 ip 域文件,提供了本机的会访地址
" /etc/1.1.182.in-addr.arpa.zone ip 域文件,提供了 IP 地址到主机名的转换
" /etc/localhost.zone 本地域文件,提供了本机的会访名称
" /etc/hmc.net.zone 名称域文件,提供了主机名到 IP 地址的转换
具体步骤如下:
1. 编辑 /etc/named.conf
options {
directory "/etc";
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "hmc.net" {
type master;
file "hmc.net.zone";
};
zone "1.1.182.in-addr.arpa" {
type master;
file "1.1.182.in-addr.arpa.zone";
};
2. 编辑 /etc/named.ca
This file holds the information on root name servers needed to
initialize cache of Internet domain name servers
(e.g. reference this file in the "cache .
configuration file of BIND domain name servers).
This file is made available by InterNIC
under anonymous FTP as
file /domain/named.root
on server FTP.INTERNIC.NET
-OR- RS.INTERNIC.NET
last update: Jan 29, 2004
related version of root zone: 2004012900
formerly NS.INTERNIC.NET
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 182.1.1.1
End of File
3. 编辑 /etc/0.0.127.in-addr.arpa.zone
$TTL 86400 @ IN SOA localhost. root.localhost. (
2 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS localhost.
1 IN PTR localhost.
1 IN PTR app1.
4. 编辑 /etc/1.1.182.in-addr.arpa.zone
$TTL 86400 @ IN SOA app1.hmc.net. root.app1.hmc.net. (
4 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS app1.hmc.net.
1 IN PTR app1_182.hmc.net.
2 IN PTR app2_182.hmc.net.
3 IN PTR app3_182.hmc.net.
4 IN PTR app4_182.hmc.net.
5 IN PTR vio5_182.hmc.net.
6 IN PTR vio6_182.hmc.net.
7 IN PTR app7_182.hmc.net.
8 IN PTR app8_182.hmc.net.
9 IN PTR app9_182.hmc.net.
10 IN PTR app10_182.hmc.net.
5. 编辑 /etc/localhost.zone
$TTL 86400 @ IN SOA @ root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
IN NS localhost.
@ IN A 127.0.0.1
6. 编辑 /etc/hmc.net.zone
name server data file
(also see /etc/named.boot)
NAME TTL CLASS TYPE RDATA
setting default domain to "."
$TTL 86400 @ IN SOA app1.hmc.net. root.localhost (
3 Serial
3600 Refresh
300 Retry
3600000 Expire
86400 ) Minimum
IN NS app1.hmc.net.
hmc01 IN A 182.1.1.21
app1_182 IN A 182.1.1.1
app2_182 IN A 182.1.1.2
app3_182 IN A 182.1.1.3
app4_182 IN A 182.1.1.4
vio5_182 IN A 182.1.1.5
vio6_182 IN A 182.1.1.6
app7_182 IN A 182.1.1.7
app8_182 IN A 182.1.1.8
app9_182 IN A 182.1.1.9
app10_182 IN A 182.1.1.10
7. 重新启动 named 服务
stopsrc -s named
startsrc -s named