Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
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.
|
|
|
02-16-2008, 02:40 AM
|
#1
|
Member
Registered: Jan 2007
Location: India
Distribution: RHEL 5, Fedora 9, Solaris, FreeBSD
Posts: 52
Rep:
|
error: ** server can't find 79.20.168.192.in-addr.arpa: REFUSED
Dear All
I m using RHEL5 and configure DNS server on it. when I m running nslookup command from the client side it give the result:
[root@test ~]# nslookup 192.168.20.79
Server: 192.168.20.79
Address: 192.168.20.79#53
** server can't find 79.20.168.192.in-addr.arpa: REFUSED
What does it mean. it is an error or DNS?
How can i resolv it.
Please give answer.
thanks.
|
|
|
02-16-2008, 02:44 AM
|
#2
|
Member
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208
Rep:
|
try this rather than nslookup:
dig -x 192.168.20.79
It should give you much more information.
|
|
|
02-16-2008, 02:52 AM
|
#3
|
Member
Registered: Jan 2007
Location: India
Distribution: RHEL 5, Fedora 9, Solaris, FreeBSD
Posts: 52
Original Poster
Rep:
|
I tried it, it shows:
;<<>> Dig 9.3.3rc2 <<>> -x 192.168.20.79
;; global options: printcmd
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 45323
;; QUESTION SECTION:
;79.20.168.192.IN-ADDR.ARPA. in ptr
OUTPUT OMMITED..........
Quote:
Originally Posted by 0.o
try this rather than nslookup:
dig -x 192.168.20.79
It should give you much more information.
|
|
|
|
02-16-2008, 07:42 AM
|
#4
|
Member
Registered: Dec 2005
Distribution: RedHat, Ubuntu
Posts: 101
Rep:
|
netfilter rules?
check your netfilter OUTPUT chain (iptables -L OUTPUT); are there any rules to permit outbound udp destined to port 53?
either a) your resolver libraries are communicating with the local dns server and it can't send the udp packets out; or b) your resolver libraries are trying to reach an across-the-network dns server and can't send out the udp packets.
probably need to
Code:
iptables -I OUTPUT (some_rule_number) -j ACCEPT -p udp --dport 53
(I'm afk until Monday, sorry)
-c
Last edited by cconstantine; 02-16-2008 at 07:43 AM.
|
|
|
03-11-2011, 07:13 AM
|
#5
|
LQ Newbie
Registered: Feb 2011
Posts: 9
Rep:
|
RHEL 5 Dns client side error
Dear all, please help i am faceing problem on dns client side
when i run nslookup command it says
**server can't find (name) REFUSED
please help me ,
thanks alot in advance
|
|
|
03-11-2011, 07:16 AM
|
#6
|
LQ Newbie
Registered: Feb 2011
Posts: 9
Rep:
|
i am on client then
[root@test ~]# nslookup pc1.example.com
Server: 192.168.0.100
Address: 192.168.0.100#53
** server can't find pc1.redhat.com: REFUSED
please help me out i am really in fix.
fyi: i can ping by ip but not with name.
if i run commands on server all works well
but this is only client side,
please let me know how to solv it
(please text in detail)
thanks a lot in advance
Rahi
|
|
|
03-11-2011, 07:20 AM
|
#7
|
LQ Newbie
Registered: Feb 2011
Posts: 9
Rep:
|
[root@client1 ~]# host client1.example.com
Host client1.example.com not found: 5(REFUSED)
---------- Post added 03-11-11 at 02:21 PM ----------
dear all, i will be highly oblised to you,
please tell me what should i do?
thanks a lot
|
|
|
03-11-2011, 09:10 AM
|
#8
|
LQ Newbie
Registered: Feb 2011
Posts: 9
Rep:
|
hi, Mr. cconstantine, i need your help please
|
|
|
03-11-2011, 09:39 AM
|
#9
|
LQ Newbie
Registered: Aug 2004
Location: NY
Distribution: Ubuntu,Red Hat,Centos 5
Posts: 29
Rep:
|
Quote:
Originally Posted by rahishkhan25
[root@client1 ~]# host client1.example.com
Host client1.example.com not found: 5(REFUSED)
---------- Post added 03-11-11 at 02:21 PM ----------
dear all, i will be highly oblised to you,
please tell me what should i do?
thanks a lot
|
What do you have your server set up to do? By default, the server will only respond to itself on: localhost and 127.0.0.1.
In the /etc/named.conf file, have you changed these lines?
Code:
listen-on port 53 { 127.0.0.1; };
allow-query { localhost; };
Depending on how you've set this config file up, you may have more in the zone sections that need to be changed as well...
Also, are you able to do nslookup from the server?
|
|
|
03-12-2011, 05:37 AM
|
#10
|
LQ Newbie
Registered: Feb 2011
Posts: 9
Rep:
|
Thanks alot dear, i really thankfull to you.
in
listen-on port 53 { 127.0.0.1; }; (inisted of 127.0.0.1 i did my dns server ip)
allow-query { localhost; }; (its same localhost, once i tried with any
but same problem.
ON CLIENT
[root@pc2 ~]# nslookup pc1.redhat.com
Server: 192.168.0.100
Address: 192.168.0.100#53
** server can't find pc1.redhat.com: REFUSED
[root@pc2 ~]# host pc1.redhat.com
Host pc1.redhat.com not found: 5(REFUSED)
[root@pc2 ~]# dig pc1.redhat.con
; <<>> DiG 9.3.3rc2 <<>> pc1.redhat.con
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 44326
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;pc1.redhat.con. IN A
;; Query time: 24 msec
;; SERVER: 192.168.0.100#53(192.168.0.100)
;; WHEN: Sat Mar 12 14:06:06 2011
;; MSG SIZE rcvd: 32
[root@pc2 ~]# dig 192.168.0.100
; <<>> DiG 9.3.3rc2 <<>> 192.168.0.100
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 10367
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;192.168.0.100. IN A
;; Query time: 0 msec
;; SERVER: 192.168.0.100#53(192.168.0.100)
;; WHEN: Sat Mar 12 14:06:21 2011
;; MSG SIZE rcvd: 31
ON SERVER ALL IS WELL i think so,
[root@pc1 ~]# nslookup pc1.redhat.com
Server: 192.168.0.100
Address: 192.168.0.100#53
Name: pc1.redhat.com
Address: 192.168.0.100
[root@pc1 ~]# host pc1.redhat.com
pc1.redhat.com has address 192.168.0.100
[root@pc1 ~]# dig pc1.redhat.com
; <<>> DiG 9.3.3rc2 <<>> pc1.redhat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21906
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;pc1.redhat.com. IN A
;; ANSWER SECTION:
pc1.redhat.com. 86400 IN A 192.168.0.100
;; AUTHORITY SECTION:
redhat.com. 86400 IN NS pc1.redhat.com.
;; Query time: 0 msec
;; SERVER: 192.168.0.100#53(192.168.0.100)
;; WHEN: Sat Mar 12 12:17:04 2011
;; MSG SIZE rcvd: 62
Please let me know friends where is the problem i am really in
fix. what should i do i am facing problem on clients only not on server.
i have created my private pc1.redhat.com dns server for practice.i have given nameserver 192.168.0.100 on client /etc/resolv.conf file also.
please assist me . thanks a lot in advance
|
|
|
03-12-2011, 05:59 AM
|
#11
|
LQ Newbie
Registered: Feb 2011
Posts: 9
Rep:
|
Dear all my configuration is follows
options {
listen-on port 53 { 192.168.0.100; };
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";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53;
query-source-v6 port 53;
allow-query { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
---------- Post added 03-12-11 at 12:59 PM ----------
thanks a lot for your reply
like it
|
|
|
03-12-2011, 07:58 AM
|
#12
|
LQ Newbie
Registered: Feb 2011
Posts: 9
Rep:
|
allow-query { 192.168.0.100; }; (i also tried like this but same problem
please friends help me out.
thanks alot
|
|
|
03-12-2011, 05:11 PM
|
#13
|
LQ Newbie
Registered: Aug 2004
Location: NY
Distribution: Ubuntu,Red Hat,Centos 5
Posts: 29
Rep:
|
Quote:
Originally Posted by rahishkhan25
allow-query { 192.168.0.100; }; (i also tried like this but same problem
please friends help me out.
thanks alot
|
Well here's one cause of the problem:
You want to change this line
Code:
allow-query { 192.168.0.100; };
to whatever networks are allowed to access the server for DNS. Here are some examples:
Code:
allow-query {192.168.2.1; 192.168.2.24;}; (by IP Addresses)
allow-query { 192.168.0.0/24; }; (by networks)
allow-query { localnets; }; (I prefer this one myself, it'll allow any clients it recognizes as a network it's on to query it)
This is one reason the server can do "dig pc1.redhat.com", but the clients can't.
|
|
|
03-13-2011, 07:54 AM
|
#14
|
LQ Newbie
Registered: Feb 2011
Posts: 9
Rep:
|
Dear first thanks a lot for your help,
i tried with
allow-query { 192.168.0.0/24; };
allow-query { localnets; };
but still gettig same problem,
please i hope you will solv it completely.
thanks alot
what should i do netx please guide?
|
|
|
03-15-2011, 07:45 AM
|
#15
|
LQ Newbie
Registered: Feb 2011
Posts: 9
Rep:
|
This problem is resolved
Dear Friends,
i was having this probe but now its solved, thanks a lot Mr. Glennt for you valuable responses.
i change my "any" inisted of before one.
options {
listen-on port 53 { any; };
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";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53;
query-source-v6 port 53;
allow-query { any; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { any; };
match-destinations { any; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
|
|
|
All times are GMT -5. The time now is 03:29 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
|
|