LinuxQuestions.org
Review your favorite Linux distribution.
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 07-14-2011, 09:03 AM   #1
TonyDeWittePony
LQ Newbie
 
Registered: Jul 2011
Posts: 2

Rep: Reputation: Disabled
Bind9 all *.domain.com reachable, only www.domain.com isn't


Hello all!

I have just installed bind on a brand new Ubuntu 10.04 server. I configured it according to several tutorials (and based on my knowledge from the past), but I'm having a strange issue. These are reachable:
domain.com
admin.domain.com
dbadmin.domain.com, etc.
But www.domain.com is not reachable. Pinging it gives an unreachable host.

Here are my config files:

/etc/resolv.conf
Code:
search domain.com
nameserver ns1_ip
nameserver ns2_ip
nameserver dns_isp1
nameserver dns_isp2
/etc/bind/named.conf.options
Code:
options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

        forwarders {
                dns_isp2;
                dns_isp1;
        };

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};
/etc/bind/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.com" {
        type master;
        file "/etc/bind/domain.com";
};

zone "reversed_ip.in-addr.arpa" {
        type master;
        notify no;
        file "/etc/bind/reversed_ip";
};

zone "reversed_ns_ip.in-addr.arpa" {
        type master;
        notify no;
        file "/etc/bind/reversed_ns_ip";
};


logging {
    channel query.log {
        file "/var/log/query.log";
        // Set the severity to dynamic to see all the debug messages.
        severity debug 3;
    };

    category queries { query.log; };
};
/etc/bind/reversed_ns_ip
Code:
;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns1.domain.com. support.domain.com. (i
                   201107141533         ; Serial
                          10800         ; Refresh
                           3600         ; Retry
                         604800         ; Expire
                          86400 )       ; Negative Cache TTL
;
        IN      NS      ns1.domain.com.
        IN      NS      ns2.domain.com.
232     IN      PTR     ns1.domain.com.
233     IN      PTR     ns2.domain.com.
/etc/bind/reversed_ip
Code:
;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns1.domain.com. support.domain.com. (
                   201107141335         ; Serial
                          10800         ; Refresh
                           3600         ; Retry
                         604800         ; Expire
                          86400 )       ; Negative Cache TTL

256     IN      PTR     domain.com.
/etc/bind/domain.com
Code:
;
; BIND data file for local loopback interface
;
$TTL    86400 ;1 day
@       IN      SOA     ns1.domain.com. support.domain.com. (
                   201107141527         ; Serial
                          10800         ; Refresh
                           3600         ; Retry
                         604800         ; Expire
                          86400 )       ; Negative Cache TTL

        IN      NS      ns1.domain.com.
        IN      NS      ns2.domain.com.

;domain.com. IN A       ip

@       IN      A       ip
ns1     IN      A       ns1_ip
ns2     IN      A       ns2_ip

admin   IN      A       ip
dbadmin IN      A       ip
;test    IN      A       ip
wiki    IN      A       ip
www    IN      A       ip
;www     IN      CNAME   test ;Tests
Does anyone see what's wrong here? It's only the www that doesn't work, all the others do work.



Edit: I just waited it out, and all of a sudden it's fixed now. Looks like I needed to refresh the cache or something.

Last edited by TonyDeWittePony; 07-14-2011 at 10:43 AM. Reason: Removed ip's for security reasons & fixed
 
Old 07-14-2011, 01:03 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Yes entries are cached often by DNS servers and/or your local machine and/or even your local browser so often have to be cleared or you have to wait for them to die.

If your problem is solved you might want to mark the issue as Solved in Thread Tools at the top of the page.
 
  


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
DNS http:domain.com resolve to www.domain.com keysorsoze Linux - Networking 3 02-12-2007 03:03 AM
Redirecting domain.com to www.domain.com rustyz82 Linux - General 3 05-18-2006 03:41 AM
Virtual host www.domain.com work, domain.com don't work stormrider_may Linux - Networking 4 05-03-2006 09:52 PM
Cant get entry in bind to work with domain.com instead of www.domain.com pxes351 Linux - Networking 12 05-09-2005 06:20 AM
www.domain.com instead of domain.com pyrombca Linux - Software 1 11-04-2004 02:36 PM

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

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