DNS Configuration and Management Manual (G06.25+, H06.03+)

Troubleshooting
HP DNS Configuration and Management Manual529432-001
4-2
Troubleshooting DNS 9.2.3
When named is run with the -g option using the above configuration, the following is
displayed:
Aug 30 10:26:14.0lu /etc/named.conf:5: missing ';' before 'pid-file'
Aug 30 10:26:14.0lu /etc/named.conf:13: missing ';' before '}'
Aug 30 10:26:14.0lu loading configuration: failure
Aug 30 10:26:14.0lu exiting (due to fatal error)
Example 4-1. Sample named.conf File
1 /*Sample configuration file */
2
3 options {
4 directory "/user/dns/nameddir";
5 pid-file "named.pid" /*semicolon missing*/
6 listen-on { 172.31.45.115; };
7 };
8
9 logging {
10 channel my_syslog {
11 syslog daemon;
12 severity info;
13 } /*semicolon missing*/
14
15 channel my_file {
16 file "log.msgs";
17 severity dynamic;
18 };
19
20 category statistics { my_ems; my_file; };
21 category queries { my_ems; my_file; };
22 };
23
24 zone "myzone.com" in {
25 type master;
26 file "db.myzone.com";
27 };
28 /*Sample configuration file ends*/