LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   DNS configuration in Fedora Core 6 (http://www.linuxquestions.org/questions/linux-server-73/dns-configuration-in-fedora-core-6-a-533477/)

bzlaskar 03-01-2007 12:03 AM

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

ramram29 03-02-2007 03:26 PM

What is in your /etc/resolv.conf?

bzlaskar 03-03-2007 01:15 AM

In /etc/resolv.conf ,
it is the address of the nameserver which I have configured.

chhvanna 03-05-2007 09:42 AM

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

ramram29 03-05-2007 09:57 AM

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?

bzlaskar 04-11-2007 04:20 AM

[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.

bzlaskar 04-11-2007 04:22 AM

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.

ramram29 04-11-2007 08:38 AM

I'm glad you got it figured out. Drop me an Email if you need help.

bzlaskar 04-12-2007 01:27 AM

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.

esun23 12-16-2007 02:07 AM

Quote:

Originally Posted by ramram29 (Post 2706575)
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

esun23 12-16-2007 02:09 AM

Quote:

Originally Posted by ramram29 (Post 2706575)
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

esun23 12-16-2007 02:09 AM

Dns problem , in fedora core 6 i want help

ramram29 12-18-2007 09:03 AM

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.

bzlaskar 12-27-2007 07:00 AM

Quote:

Originally Posted by esun23 (Post 2991985)
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

muha 01-17-2008 07:42 AM

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


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