LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-21-2013, 01:49 AM   #1
plvasco
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Rep: Reputation: Disabled
DIG doesn't answer for internal zones


Having some problem with my BIND server resolving names. What I notice is that my internal zones are not resolving while my external work fine

[root@dns04 var]# dig @127.0.0.01 server3.example.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6.3 <<>> @127.0.0.01 server3.example.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 926
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;server3.example.com. IN A

;; ANSWER SECTION:
server3.example.com. 874 IN A 1.1.1.1

Internal Dig:

[root@dns04 var]# dig server1

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.17.rc1.el6.3 <<>> server1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 39650
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;server1. IN A

;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2013052100 1800 900 604800 86400

;; Query time: 39 msec
;; SERVER: 5.5.5.5#53(5.5.5.5)
;; WHEN: Tue May 21 00:46:35 2013
;; MSG SIZE rcvd: 100

thanks
 
Old 05-21-2013, 04:18 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You should have a "search..." or "domain..." line in /etc/resolv.conf, e.g.
Code:
cat /etc/resolv.conf
search example.com
nameserver 127.0.0.1
In this case you have to run:
Code:
dig server1 +search
to resolve a non-FQDN.

Regards
 
Old 05-21-2013, 10:00 AM   #3
plvasco
LQ Newbie
 
Registered: Apr 2013
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for your reply, here is my resolv.conf and the results of dig server1 +search

search exmaple.com
nameserver 1.1.1.1
nameserver 8.8.8.8
nameserver 205.171.3.65

dig +search server1
connection timed out; trying next origin
connection timed out; no servers could be reached
 
Old 05-21-2013, 03:44 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
dig +search server1
connection timed out; trying next origin
connection timed out; no servers could be reached
Is 1.1.1.1 your dns? Make sure it's running and since you cannot reach also the other nameservers, chekc if there is a firewall blocking port 53 udp/tcp outgoing traffic.

Regards
 
  


Reply



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
[SOLVED] named slave load zones but doesn't answer queries Haythem Linux - Server 2 10-28-2012 04:52 PM
[SOLVED] dig does not return answer section-- Please reply deepak_message Linux - Server 15 01-16-2012 04:03 AM
BIND9: dig <hostname> doesn't work, dig <hostname.domain.tld> does. jhwilliams Linux - Server 2 04-09-2010 01:01 PM
No Answer with DIG amplifire Linux - Server 2 05-18-2009 07:58 AM
dig @ works, dig doesn't eelgueta Linux - Networking 6 07-09-2007 06:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:05 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
Open Source Consulting | Domain Registration