DNS not working

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat DNS not working
# 1  
Old 04-23-2012
DNS not working

Hi,

I have installed RHEL5 as a new build and need get it to resolve to the internet. At the moment I get following:

Code:
# dig www.google.com
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> www.google.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 5960
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;Google.                        IN      A
;; Query time: 27 msec
;; SERVER: 192.168.235.7#53(192.168.235.7)
;; WHEN: Mon Apr 23 14:03:04 2012
;; MSG SIZE  rcvd: 32

Can someone advise what needs to be done in order to get this resolving?

R,
D.
# 2  
Old 04-23-2012
Is your /etc/resolv.conf configured correctly? Maybe post it using code tags, thanks.
# 3  
Old 04-23-2012
I didn't think that dig used resolv.conf?

The DNS server I use is on a different vlan but I can telnet to it over port 53. So I have added a new zone file because the domain name of my new server is different. I have also updated the named.conf file on the DNS server to include this new zone. I can resolve my new server from the DNS server but not locally?

Code:
# cat /etc/resolv.conf
nameserver 192.168.235.7

R,
D
# 4  
Old 04-23-2012
Ah I recall you asking about iptables and this issue. Actually reading the dig output, I'd say your DNS server (BIND or whatever on192.168.235.7) is misconfigured, since you do get a REFUSED.

To verify, do you have success using a different nameserver:
Code:
dig @8.8.8.8 google.com

Also, do you administer the DNS server on 192.168.235.7 ?
# 5  
Old 04-23-2012
From dig's man page:
Quote:
Unless it is told to query a specific name server, the dig command tries each of the servers listed in the /etc/resolv.conf file.
If I got it right, then you query a name, but don't tell it which server to use.
# 6  
Old 04-23-2012
OK now I see your earlier reply.. You need to enable recursion if your DNS server will serve clients as well. Look for "recursion no" or allow-recursion { addr range; } in your options section of named.conf and change as needed.
# 7  
Old 04-23-2012
Hi,

Code:
# dig @8.8.8.8 google.com
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> @8.8.8.8 google.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58739
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google.com.                    IN      A
;; ANSWER SECTION:
google.com.             184     IN      A       209.85.143.100
google.com.             184     IN      A       209.85.143.101
;; Query time: 86 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Apr 23 14:44:53 2012
;; MSG SIZE  rcvd: 60

Ok so it resolves this.

There are no recursion options in my named.conf file.

I inherited the DNS server which has big questionmarks surrounding its config. May need to clean this up.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies

2. Proxy Server

IPtable rules for DNS/http/https traffic for specific hosts only, not working.

Hi there, I have a VPS and am working on a little side project for myself and friend which is a DNS proxy. Everything was great till recently. My VPS IP has been detected by some botnet or something, and I believe SMURF attacks are occuring. The VPS provider keeps shutting down my VPS... (3 Replies)
Discussion started by: phi0x
3 Replies

3. Emergency UNIX and Linux Support

DNS flush is not working

I have a Linux machine and it seems DNS cache is not getting clear on it. It is still showing old values, even after changing in DNS server by Network team. I did /etc/init.d/nscd restart But still it is showing old values on this server. On my rest of servers in environment, nslookup is showing... (7 Replies)
Discussion started by: solaris_1977
7 Replies

4. Red Hat

Split DNS not working with Bind-9.7

Hi All, Distros of machines : RHEL6 Bind Vesrion : Bind-9.7-3.2 I am trying to set up a test DNS for my home network. I have two rhel 6 machines A and B. Machine A has 2 NICs and is acting as a router also, one NIC is facing intranet and the otehr is facing intranet. On machine A i have... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

5. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

6. Solaris

dns client not working

Hi All, I have configured linux server as local dns server (practice level). I have given the IP and hostname details in /etc/hosts -bash-3.00# cat /etc/hosts # # Internet host table # ::1 localhost 127.0.0.1 localhost 192.168.1.78 dummy.set.com loghost 192.168.1.57 cent.set.com #... (3 Replies)
Discussion started by: vaibhav.kanchan
3 Replies

7. UNIX for Dummies Questions & Answers

Secondary DNS not working

hi guys I am doing some testing for DNS I got a master DNS(192.168.2.10) and I setup a slave DNS(192.168.2.11) but when I shutdown the Master DNS my linux client cannot resolve using the slave any idea way? This is the named.conf options { query-source port 53; directory... (9 Replies)
Discussion started by: kopper
9 Replies

8. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

9. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies

10. Solaris

OS Problems -no DNS & SSH not working

I just installed Solaris 6/10 without any problems but I didn't connect the network cable when I installed it. Here are my problems: -I can access webpages using IP addrsses but not with domain names -ssh is installed but it is not running ('ps -e | grep sshd' didn't show it) I have been... (4 Replies)
Discussion started by: kungpow
4 Replies
Login or Register to Ask a Question