LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-17-2010, 03:26 AM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Clinet is not able resolve name


Hi all,

I am trying to setup a DNS on Fedora12. Here is my /etc/named.conf file

Code:
options{
        listen-on port 53 { 127.0.0.1; 172.17.70.150; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        allow-recursion { teglan; };
        allow-query { teglan; };
        recursion yes;
};
acl teglan {
        127/8; 172.17.70.0/24;
};

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "linux.com" IN {
type master;
file "linux.com";
allow-update { none; };
};

include "/etc/rndc.key";
Here is my /var/named/linux.com file

Code:
$TTL    86400
@       IN      SOA     linux.com.      vinay.linux.com. (

                    2001062501 ; serial
                    21600      ; refresh after 6 hours
                    3600       ; retry after 1 hour
                    604800     ; expire after 1 week
                    86400 )    ; minimum TTL of 1 day

;Name Servers
                IN      NS      vinay.linux.com.
                IN      NS      muthu.linux.com.

;Mail Server for domain
                IN      MX      10      vinay.linux.com.

;hosts
vinay           IN      A       172.17.70.150
muthu           IN      A       172.17.70.57
when I try to query from muthu.linux.com
Code:
[root@localhost test]# host vinay.linux.com
;; connection timed out; no servers could be reached
I have opened 53/tcp and 53/udp port in firewall.

In logs of DNS server machine ( Fedora12) I am getting following message
Code:
May 17 12:48:28 localhost named[8362]: client 172.17.70.57#45184: query 'vinay.linux.com/A/IN' denied
Thanks.

Last edited by vinaytp; 05-17-2010 at 03:29 AM.
 
Old 05-17-2010, 06:05 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,
Quote:
when I try to query from muthu.linux.com
Code:

[root@localhost test]# host vinay.linux.com
;; connection timed out; no servers could be reached
What's in /etc/resolv.conf of muthu.linux.com?

Also change
Quote:
acl teglan {
127/8; 172.17.70.0/24;
};
to
Code:
acl teglan { localnets;};
and see if it helps

Regards
 
Old 05-17-2010, 06:33 AM   #3
ajeetsinghraina
Member
 
Registered: May 2010
Location: India
Distribution: Ubuntu 7.04/8.04/8.10/10.04, RHEL 6, OpenSUSE,Mandriva,Fedora, CentOS, XandrOS, Slackware, OpenSolar
Posts: 155

Rep: Reputation: 55
I did setup DNS few months before. Have a look if you are missing something http://linuxhunt.blogspot.com/2009/1...r-in-easy.html
 
Old 05-17-2010, 09:44 AM   #4
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Thanks everybody.

I got it working..
 
Old 05-17-2010, 09:59 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Quote:
Originally Posted by vinaytp View Post
Thanks everybody.

I got it working..
How?

As a courtesy to anyone who happens to do a search here on LQ for comparable problems then it would be nice to have a solution to this thread.

Please mark the Thread as [Solved] via the 'Thread Tools' after posting a solution.
 
Old 05-18-2010, 01:56 AM   #6
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Hi All,

Sorry for not posting solution yesterday. I could not get time.

Here is the Solution.

I Changed /etc/named.conf to

Code:
options {
//      listen-on port 53 { 127.0.0.1; };
//      listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
       statistics-file "/var/named/data/named_stats.txt";
        allow-query     { myteg; };
        also-notify {172.17.70.57; };
        recursion yes;
        notify yes;
};

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

acl myteg {
127/8; 172.17.70.0/24;
};


zone "." IN {
        type hint;
        file "named.ca";
};


zone "linux.com" IN {
        type master;
        file "linux.com";
        allow-update { none; };
};


#include "/etc/named.rfc1912.zones";
include "/etc/rndc.key";
With this Configuration file I got my Master DNS working..

Later I added a Slave DNS with following configuration file

Code:
options{
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        recursion yes;
        allow-query { myteg; };
        allow-transfer {"none";};
};
acl "myteg" {
        127/8; 172.17.70.0/24;
};

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "linux.com" IN {
type slave;
file "slaves/linux.com";
masters { 172.17.70.150; };
};

include "/etc/rndc.key";
/var/named/linux.com Zone file is retained as it is..

Thanks again for everybody...

Last edited by vinaytp; 05-18-2010 at 02:39 AM.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to resolve ulr. /et/resolve.conf looks fine? TheBrick Linux - Networking 3 02-14-2008 05:13 AM
Linux server and clinet sunhui Linux - Distributions 2 01-18-2007 04:15 AM
Smb clinet can not join domain awing_pilot Linux - Networking 3 04-07-2005 08:38 AM
torrent clinet on kbuntu klemen Ubuntu 5 04-06-2005 02:51 PM
?vpn clinet (GUI) sanw2k Linux - General 1 12-10-2003 10:39 AM


All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration