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 03-25-2013, 02:48 PM   #1
chronoloraptor
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Rep: Reputation: Disabled
Bind9: Unable to ping "domain.local" even though there are no apparent errors.


I've tried running named-checkconfig -z, and it shows all zones as loaded. Also ran it on each "named.conf" and it doesn't turn up any errors.

Any help would be appreciated!

Nmap localhost:
Code:
53/tcp  open  domain




named.conf.options:

Code:
 dnssec-validation auto;

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};
named.conf.local:

Code:
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
include "/etc/bind/zones.rfc1918";

zone "domain.local" {
        type master;
        file "/etc/bind/db.hnet.local";
};

zone "0.0.10.in-addr.arpa" {
        type master;
        notify no;
        file "/etc/bind/db.10";
};
~
~
db.domain.local
Code:
;
; BIND data file for hnet.local
;
$ORIGIN domain.local.

$TTL    604800
@       IN      SOA     ns.domain.local. root.domain.local. (
                      201303253         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      ns.domain.local.
ns      IN      A       10.0.0.3
box     IN      A       10.0.0.3
www     IN      A       10.0.0.4
db.10
Code:
;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns.domain.local. root.domain.local. (
                      201303252         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      ns.
1.0.0   IN      PTR     ns.domain.local.

21      IN      PTR     www.domain.local.
 
Old 03-25-2013, 04:33 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
As my falky reading of zone files goes.. there is no A record for "domain.local".

Don't try to just ping stuff, can you actually resolve these records directly against the domain? does www resolve?
 
Old 03-26-2013, 11:26 AM   #3
chronoloraptor
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
EDIT: WAIT, IT'S WORKING! Turned out to be an issue in my resolv.conf file where it was looking it up through 8.8.8.8 rather than 10.0.0.3. nslookup did the trick.

Thanks again.


I've added

Code:
domain.local IN      A       10.0.0.3
Should've also mentioned I have tried using dig to troubleshoot, and this is the reply:

Code:
flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
When successful it should return an ANSWER for each A record as well as the A records themselves.

Last edited by chronoloraptor; 03-26-2013 at 11:36 AM.
 
Old 03-28-2013, 02:31 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Conventionally, for a given IP, you'd use one A rec, then you'd use a CNAME record for each subsequent rec that points to the same IP
http://www.linuxtopia.org/online_boo...3-bind-zone-rr
 
  


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
Not able to ping google.com,getting "timed out" errors. ravi_chobey Linux - Networking 4 03-09-2010 05:28 PM
"dig mx" and "ping google" do not work when bind9 runs.. why? alexxxis Linux - Software 4 01-07-2007 03:16 AM
"dig mx" or "ping" not working because of bind9? alexxxis Debian 4 01-06-2007 11:26 PM
"ping xxx.abc.local" ok but "ping xxx" fail powah Linux - Networking 2 10-13-2006 08:16 PM
"network is unreachable" but I can ping local machines MrGaiters Linux - Newbie 3 03-24-2006 02:38 AM

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

All times are GMT -5. The time now is 08:20 PM.

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