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 06-09-2010, 12:34 PM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Not able to query from Virtual Machine


Dear All,

I have Fedora11 machine : 192.168.0.3 ( Bare metal )--> vinay.linux.com
Another Fedora 11 machine : 192.168.0.4 ----> test.linux.com
Virtual Machine on FC11 : 192.168.0.6 ( VM )-----> centos.linux.com

I have DNS configured on Fedora11 machine, Also I have checked the connectivity of centos.linux.com to port 53 of DNS.

Here is my /etc/named.conf file of FC11 machine
Code:
options {

        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
       statistics-file "/var/named/data/named_stats.txt";
        allow-query     { myteg; };
        recursion yes;
        notify yes;
};

acl myteg {
192.168.0.0/24;
};


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


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

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

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

                    2001051705 ; serial
                    60      ; refresh after 6 hours
                    36       ; retry after 1 hour
                    60     ; expire after 1 week
                    86 )    ; minimum TTL of 1 day

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

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

;hosts
vinay           IN      A       192.168.0.3
test            IN      A       192.168.0.4
centos          IN      A       192.168.0.6
;EOF
I have added nameserver 192.168.0.3 as name server in test.linux.com and centos.linux.com hosts /etc/resolv.conf file

I am able to query hosts from test.linux.com but not from centos.linux.com

Do I need to make any change in centos.linux.com Virtual machine for querying host names.

I get this message when I try to query from centos.linux.com
Code:
host vinay.linux.com
Host vinay.linux.com not found: 5(REFUSED)
In logs of DNS server I can find
Code:
Jun  9 16:16:59 localhost named[7574]: client 192.168.100.6#51052: query 'vinay.linux.com/A/IN' denied
Why is it denying to resolve the name ?
What could be the problem ? Please advice...

Thanks in advance...

Last edited by vinaytp; 06-09-2010 at 12:41 PM.
 
Old 06-09-2010, 12:45 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Code:
Virtual Machine on FC11 : 192.168.0.6 ( VM )-----> centos.linux.com
Code:
Jun  9 16:16:59 localhost named[7574]: client 192.168.100.6#51052: query 'vinay.linux.com/A/IN' denied
maybe ?
 
Old 06-09-2010, 12:57 PM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by Tinkster View Post
maybe ?
Thanks, You figured out easily..I miss assigned IP. Thanks again..
 
  


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
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 34 05-24-2013 09:28 AM
Invalid Query Packet - Destination Host Not Responding - pizzipie Linux - Networking 8 01-14-2010 12:30 PM
Apache Virtual Host query Atif_Khan Linux - Server 4 01-16-2007 05:28 AM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 08:48 AM
X -query <host> agentforsythe Linux - Software 6 12-01-2003 06:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:28 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