Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-13-2005, 05:59 AM
|
#1
|
LQ Newbie
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11
Rep:
|
Dns configuration error
Hi Every one,
I configured DNS server according to the following:
/etc/named.conf:
zone "Alocardweb.com" IN {
type master;
file "Alocardweb.com";
;Alocardweb.com the name of host that I am going to resolve it.
*************************************
/var/named/Alocardweb.com:
$TTL 1D
@ IN SOA Alocardweb.com. root.Aloweb.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS Alocardweb.com.
@ IN A 172.16.1.253
Alocardweb.com. IN A 172.16.1.253
www IN A 172.16.1.253
*****************************************
/etc/resolv.conf
search Alocardweb.com.
nameserver 172.16.1.253
*****************************************
But when I restart /etc/init.d/named restart ,I envisage the following Error:
Stopping named: [FAILED]
Starting named:
Error in named configuration:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone Alocardweb.com/IN: loading master file Alocardweb.com: file not found
_default/Alocardweb.com/IN: file not found
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42 [FAILED]
*******************************
I do not know what's the reason error???????
Thanks alot
|
|
|
08-13-2005, 06:54 AM
|
#2
|
Member
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620
Rep:
|
It would help if you stated what linux distro you are using. By default, some distro's start named in a chroot'd jail. If thats the case, try moving your zone file to /var/named/chroot/var/named. Then try starting named again.
As for named not stopping... have you properly configured rndc? See: man rndc-confgen
|
|
|
08-13-2005, 07:27 AM
|
#3
|
LQ Newbie
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11
Original Poster
Rep:
|
thanks for your Help,
I replace the zone file from /var/named/Alocardweb.com to /var/named/chroot/var/named/Alocardweb.com,but the problems still remain.
|
|
|
08-13-2005, 11:54 PM
|
#4
|
Member
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208
Rep:
|
Can you post what distro you are using and post your original configuration . i mean named.conf and the zone database files as well.
|
|
|
08-15-2005, 12:07 AM
|
#5
|
LQ Newbie
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11
Original Poster
Rep:
|
Hi Dear,
I use Fedora core 4 and the change in named.conf are the following:
/etc/named.conf:
zone "Alocardweb.com" IN {
type master;
file "Alocardweb.com";
thanks alot.
|
|
|
08-15-2005, 03:36 AM
|
#6
|
LQ Newbie
Registered: May 2005
Posts: 18
Rep:
|
I had similar problems. I dont know what exactly is the problem but
I managed to solve that by removing parts from resolv.conf. Just keep
options section and zone( ".", forward zone, reverse zone and the zone
that pointed named.local). You can erase the rest. I forgot the name of files
but you basically need 4 files(named.local ,forward.zone, reverse.zone and
named.ca(cache file)).
|
|
|
08-17-2005, 01:06 AM
|
#7
|
LQ Newbie
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11
Original Poster
Rep:
|
i do not know what should I do exactly in 4 files:named.local ,forward.zone, reverse.zone
there are configuration of dns a top of this page,is there any change except above?
|
|
|
08-17-2005, 02:43 AM
|
#8
|
Member
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208
Rep:
|
as i see your named.conf
your curly bracket is not closed. May be you have closed it but not posted!!
for systax checking of named.conf
#named-checkconf
|
|
|
All times are GMT -5. The time now is 09:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|