LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-28-2007, 11:03 PM   #1
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Rep: Reputation: 16
DNS configuration in Fedora Core 6


Hi All,

I am a trying to configure DNS in FC 6 using chrooted-bind . It is
a experimental DNS for
learning purpose. I am finding the following difficulties.

1. There is no configuration file named named.conf in /var/named/
chroot/etc/ as in case of
earlier versions of Linux. The file that is present is
named.rfc1912.zones . I have edited
the file as follows for the domain example.com . The contents is
shown below.

zone "example.com" IN {
type master;
file "iqnet.in.zone";
allow-update { none; };

};

zone "0.168.192.in-addr.arpa" IN {
type master;
file "iqnet.in.local";
allow-update { none; };

};

The zone file are as follows

A) example.com.zone

$ORIGIN example.com.
$TTL 86400
@ IN SOA iqnetns.example.com. root.example.com. (
42 ; serial (d.
adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

@ IN NS iqnetns.example.com.
IN A 192.168.0.254

IN AAAA ::1

iqnetns.example.com. IN A
192.168.0.254

B) example.com.local
$TTL 86400
@ IN SOA iqnetns.example.com. root.example.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

IN NS iqnetns.example.com.

254 IN PTR
iqnetns.example.com.

After that I edited /etc/resolv.conf and restarted the named service.
There is no error.
But when I try to resolve
iqnetns.example.com
using dig or host command , name resolution is not taking place.

Please let me know ehere is the problem ?


With thanks

Last edited by bzlaskar; 05-23-2007 at 08:04 AM.
 
Old 03-02-2007, 02:26 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
What is in your /etc/resolv.conf?
 
Old 03-03-2007, 12:15 AM   #3
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Original Poster
Rep: Reputation: 16
In /etc/resolv.conf ,
it is the address of the nameserver which I have configured.
 
Old 03-05-2007, 08:42 AM   #4
chhvanna
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
I find this problem as well

Quote:
Originally Posted by bzlaskar
Hi All,

I am a trying to configure DNS in FC 6 using bhrooted-bind . It is
a experimental DNS for
learning purpose. I am finding the following difficulties.

1. There is no configuration file named named.conf in /var/named/
chroot/etc/ as in case of
earlier versions of Linux. The file that is present is
named.rfc1912.zones . I have edited
the file as follows for the domain example.com . The contents is
shown below.

zone "example.com" IN {
type master;
file "iqnet.in.zone";
allow-update { none; };

};

zone "0.168.192.in-addr.arpa" IN {
type master;
file "iqnet.in.local";
allow-update { none; };

};

The zone file are as follows

A) example.com.zone

$ORIGIN example.com.
$TTL 86400
@ IN SOA iqnetns.example.com. root.example.com. (
42 ; serial (d.
adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

@ IN NS iqnetns.example.com.
IN A 192.168.0.254

IN AAAA ::1

iqnetns.example.com. IN A
192.168.0.254

B) example.com.local
$TTL 86400
@ IN SOA iqnetns.example.com. root.example.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

IN NS iqnetns.example.com.

254 IN PTR
iqnetns.example.com.

After that I edited /etc/resolv.conf and restarted the named service.
There is no error.
But when I try to resolve
iqnetns.example.com
using dig or host command , name resolution is not taking place.

Please let me know ehere is the problem ?


With thanks
===========
I am trying to do serveral option but still can not
I also looking for help as well, hope we can get helped soon
 
Old 03-05-2007, 08:57 AM   #5
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Quote:
Originally Posted by bzlaskar
In /etc/resolv.conf ,
it is the address of the nameserver which I have configured.
If your server is it's own nameserver then your /etc/resolv.conf should have only the following inside it:

nameserver 127.0.0.1

Is that what you have?
 
Old 04-11-2007, 03:20 AM   #6
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Original Poster
Rep: Reputation: 16
[QUOTE=ramram29]If your server is it's own nameserver then your /etc/resolv.conf should have only the following inside it:

nameserver 127.0.0.1

Is that what you have?


Ya , I have that and the problem is solved.
The problem is with the permissions associated with configuration files. The zone file should be owned by

root.named.

This I came to know when I check the log file.
 
Old 04-11-2007, 03:22 AM   #7
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Original Poster
Rep: Reputation: 16
I am trying to do serveral option but still can not
I also looking for help as well, hope we can get helped soon

You restart the named service and see the log file. There
you will find if any error is there related to named service
and try to correct it out.
I was facing the same problem. You can look down to know more about the error.
 
Old 04-11-2007, 07:38 AM   #8
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
I'm glad you got it figured out. Drop me an Email if you need help.
 
Old 04-12-2007, 12:27 AM   #9
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ramram29
I'm glad you got it figured out. Drop me an Email if you need help.
O.K . Thanks. If needed , I will do that.
 
Old 12-16-2007, 01:07 AM   #10
esun23
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by ramram29 View Post
I'm glad you got it figured out. Drop me an Email if you need help.
hi,
i am configure DNS in fedora core 6 but not able to DIG, suppose i use dig it show the server startus serverfail, and wht is the resason
 
Old 12-16-2007, 01:09 AM   #11
esun23
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by ramram29 View Post
I'm glad you got it figured out. Drop me an Email if you need help.
hi,
i am configure DNS in fedora core 6 but not able to DIG, suppose i use dig it show the server starts serverfail, and wht is the resason
 
Old 12-16-2007, 01:09 AM   #12
esun23
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Dns problem , in fedora core 6 i want help
 
Old 12-18-2007, 08:03 AM   #13
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Apparenly your server is not resolving. Do you have the DNS server addresses of your ISP provider? You can use those as your forwarders, rather than having to resolve using the root DNS servers, which takes longer.
 
Old 12-27-2007, 06:00 AM   #14
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by esun23 View Post
hi,
i am configure DNS in fedora core 6 but not able to DIG, suppose i use dig it show the server starts serverfail, and wht is the resason
Probably your DNS was not configured correctly.You
can check the log file for errors.
Also you can check the syntax of bind configuration files using the following commands.

/usr/sbin/named-checkconf /var/named/chroot/etc/named.rfc1912.zones

/usr/sbin/named-checkzone <domainname> /var/named/chroot/var/named/<zonefile>

Hope that helps...

regards
zaman
 
Old 01-17-2008, 06:42 AM   #15
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
> but not able to DIG
Can you post the commands that you ran, and output?
 
  


Reply

Tags
experience, find, from, help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS problem with Fedora Core 6 r_babaei Linux - Networking 17 04-04-2007 02:04 PM
DNS server on Fedora Core 3 mediocrity Linux - Networking 16 04-11-2005 09:56 AM
DNS in Fedora core 2 caocon Linux - Networking 11 11-12-2004 12:27 AM
On Fedora Core 2 what DNS server am I using? jlepich Linux - Networking 2 06-22-2004 05:26 PM
Dns is not working in Fedora Core 1 Mahaul Fedora 2 05-14-2004 03:41 PM


All times are GMT -5. The time now is 04:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration