1833772 Members
2078 Online
110063 Solutions
New Discussion

DNS server cannot start

 
Kenneth_61
Frequent Advisor

DNS server cannot start

Hi All,
I had installed BIND 9.2. I am a newbie. I do not know how to add A record and MX record as follow.

A dns1.mydomain.com 202.202.202.202
MX 10 server.mydomain.com 202.202.202.202

syslog.log have the error and DNS cannot start. I wonder that named.conf need to be created manually. :-(

Is there any simple to create this file ? I had read many document, but I cannot find a direct clear description on how to setup. Can anyone tell me how to set this A record and MX record ? DNS server cannot start due to this error.

Dec 2 22:51:29 server named[1191]: starting BIND 9.2.0
Dec 2 22:51:29 server named[1191]: using 1 CPU
Dec 2 22:51:29 server named[1191]: loading configuration from '/etc/named.conf'
Dec 2 22:51:29 server named[1191]: none:0: open: /etc/named.conf: file not found
Dec 2 22:51:29 server named[1191]: loading configuration: file not found
Dec 2 22:51:29 server named[1191]: exiting (due to fatal error)
ref:------------------------------------------
# Bundle(s):
#

BIND-920 B.11.00.01.003 BIND 9.2.0
HPUXEng32RT B.11.00.01 English HP-UX 32-bit Runtime Environment
Sendmail-811 B.11.00.01.005 Sendmail-8.11.1 special release upgrade
UXCoreMedia B.11.00.01 HP-UX Media Kit (Reference Only. See Description)
XSWGR1100 B.11.00.47.08 General Release Patches, November 1999 (ACE)
hpuxwsApache A.2.0.52.00 HP-UX Apache-based Web Server
hpuxwsTomcat A.4.1.29.04 HP-UX Tomcat-based Servlet Engine
hpuxwsWebmin A.1.070.02 HP-UX Webmin-based Admin
7 REPLIES 7
Fred Ruffet
Honored Contributor

Re: DNS server cannot start

You could be using sam to configure your DNS. Go in "Networking an Communications" then "DNS" then "DNS Local Name Server". Add what server you need, then start service.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Ivajlo Yanakiev
Respected Contributor

Re: DNS server cannot start

Kenneth_61
Frequent Advisor

Re: DNS server cannot start

Fred Ruffet, It should not be done by sam with DNS function. I had tried already. I am reading for the URL given. Thanks. ;-)
Geoff Wild
Honored Contributor

Re: DNS server cannot start

You need to configure bind...

"/etc/named.conf: file not found"

You have to create zones, etc...

See:

http://www.isc.org/index.pl?/sw/bind/

and the Admin Manual:

http://www.nominum.com/content/documents/bind9arm.pdf

Here's a fairly generic named.conf:

options {
directory "/etc/namedb";
forwarders {
X.X.X.1; X.X.X.2; // are internet DNS servers
};
forward only; // while in transition
};

logging {

channel all_channel {
file "/var/log/named/named.log" versions 5 size 5M; // keep 5 versions max 5 MB in size
print-category yes;
print-severity yes;
print-time yes;
};
channel update_channel {
file "/var/log/named/update.log" versions 5 size 5M; // keep 5 versions max 5 MB in size
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
channel security_channel {
file "/var/log/named/security.log" versions 5 size 5M; // keep 5 versions max 5 MB in size
severity info; // setting this to warning stops logging all the "unapproved update from" messages
print-category yes;
print-severity yes;
print-time yes;
};
category queries { null; };
category update { update_channel; };
category security { security_channel; };
category default { all_channel; };

};

zone "." in {
type hint;
file "named.cache";
};

// here are our primary zones

zone "yourdomain.com" in {
type master;
file "yourdomain.com.zone";
};
notify yes;
};


// here are our reverse zones

zone "199.168.192.in-addr.arpa" in {
type master;
file "192.168.199.zone";
allow-update {
127.0.0.1; // localhost
X.X.X.X; // DNS master server
X.X.X.X; // DNS UNIX slave server
X.X.X.X; // DNS UNIX slave server
};
allow-transfer {
X.X/16;
127.0.0.1;
};
notify yes;
};

zone "0.0.127.in-addr.arpa" in {
type master;
file "named.local";
allow-transfer {
X.X/16;
127.0.0.1;
};
};



Add your ip's for the X.X.X etc...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Kenneth_61
Frequent Advisor

Re: DNS server cannot start

Hi All, I found that there is already /etc/named.data path and it contains as follow. Should I need to create another path /etc/namedb by myself and assign as default BIND working directory ? Feel strange.

# ls -l
total 14
-rw-rw-rw- 1 root sys 153 Nov 30 21:31 boot.cacheonly
-rw-rw-rw- 1 root sys 500 Dec 2 22:21 db.127.0.0
-rw-rw-rw- 1 root sys 272 Nov 30 21:31 db.127.0.0.bak
-rw-rw-rw- 1 root sys 252 Nov 30 21:33 db.cache
-rw-rw-rw- 1 root sys 279 Dec 2 22:07 db.mydomain
# pwd
/etc/named.data
Kenneth_61
Frequent Advisor

Re: DNS server cannot start

Sorry all. Now, I know why I cannot start DNS properly. The main reason is that my server is using 192.168.1.2 and the server is on the back of broadband router, My ISP is one fix IP plan. I set the DM zone point to this server with private IP 192.168.1.2. However, I am wrongly to config the server with public IP 202.x.x.x. So, I make mistake.

Thanks for all.
Geoff Wild
Honored Contributor

Re: DNS server cannot start

Kenneth - glad you solved your problem.

Don't forget to assign points to those who have helped you.

http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA1207804&listType=unassigned&forumId=1

Thanks...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.