A criticalissue appears on the Site, and the Intranet DNS is down. I haven't configured it on RHEL6 yet. I tested it today and found that it is slightly different from the configuration on RHEL5. I. configure a single-node DNS1) install the bind package yum-yinstallbind-* In RHEL6 without the caching-namedserver package. The configuration file complies with the default system specification and is placed in/etc. 2) etccp-pnamed.conf/cd
A critical issue appears on the Site, and the Intranet DNS is down. I haven't configured it on RHEL6 yet. I tested it today and found that it is slightly different from the configuration on RHEL5.
1. configure a single-node DNS
1) install the bind Software Package
Yum-y install bind -*
There is no caching-namedserver package in RHEL6. The configuration file complies with the default system specification and is stored in/etc.
2) cd/etc
Cp-p named. conf named. conf. 'date + % Y % m % d'
3) configure the DNS master configuration file, named. conf
Cat named. conf
Options {
Listen-on port 53 {192.168.0.254 ;};
Directory "/var/named ";
Dump-file "/var/named/data/cache_dump.db ";
Statistics-file "/var/named/data/named_stats.txt ";
Memstatistics-file "/var/named/data/named_mem_stats.txt ";
Allow-query {192.168.0.0/24 ;};
};
Zone "." IN {
Type hint;
File "named. ca ";
};
Zone "sys.com" IN {
Type master;
File "sys.com. zone ";
};
Zone "0.168.192.in-addr. arpa" IN {
Type master;
File "0.168.192.in-addr. arpa. zone ";
};
4) configure the forward resolution domain zone File
Cd/var/named/
Cp-p localhost. zone sys.com. zonevim sys.com. zone
$ TTL 86400
@ In soa sys.com root.sys.com (
2009040500; serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum
@ In ns sys.com.
In a 192.168.0.254
Ldap in a 192.168.0.254
Server in a 192.168.0.254
Stu1 in a 192.168.0.2
5) Configure reverse resolution zone File
Add A record When configuring reverse resolution. www.linuxidc.com is not required when configuring DNS in RHEL5.
Cd/var/named/
Cp-p sys.com. zone 0.168.192.in-addr. arpa. zone
Vi 0.168.192.in-addr. arpa. zone
$ TTL 86400
@ In soa sys.com. root.sys.com (
2009040500; serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum
@ In ns sys.com.
In a 127.0.0.1
254 in ptr ldap.sys.com.
254 in ptr server.sys.com.
2 in ptr stu1.sys.com.
6) Check the configuration file
Named-checkconf/etc/named. conf
[Root @ server named] # named-checkzone sys.com 0.168.192.in-addr. arpa. zone
Zone sys.com/IN: loaded serial 2009040500
OK
[Root @ server named] # named-checkzone sys.com. zone
Zone sys.com/IN: loaded serial 2009040500
OK
7) restart the service.
/Etc/init. d/named restart
/Etc/init. d/named reload only reads the zone file again. If named. conf is modified, restart is required.