logo       

Re: Conflicting internal and external servers ???: msg#00143

Subject: Re: Conflicting internal and external servers ???
> Hi,
> 
> I've got a very strange problem !  I defined an INTERNAL and an EXTERNAL
> BIND-server (Debian 9.2.1-2.woody.1). I start the servers through the
> /etc/init.d/bind9-script.
> 
> When I run ONLY the internal named, I get responses for digs to mydomain.com
> AND to www.google.com (for instance).
> 
> When I run BOTH the INTERNAL and EXTERNAL named together, I get the
> following results (from a machine with IP 192.168.0.100):
> - dig @192.168.0.21 www.mydomain.com => OK
> - dig @192.168.0.21 www.google.com => OK
> - dig @192.168.0.20 www.mydomain.com => OK
> - dig @192.168.0.20 www.google.com => NOT OK !! => connection timed out; no
> servers could be reached ?????

        Your query-sources are identical.  Only one instance can bind
        to the port.  The other instance would have logged a error.
 
> Here under are my named-conf-files of both servers.
> 
> Kind regards,
> 
> Gorik Vanderreken
> 
> named.conf from INTERNAL server:
> options {
>         auth-nxdomain no;
>         directory "/var/cache/bind";
>         pid-file "/var/run/namedint.pid";
>         listen-on port 53 { 192.168.0.20; };
>         allow-query { any; };
>         allow-recursion { any; };
>         query-source address * port 53;
>         listen-on-v6 { none; };
> };
> zone "mydomain.com" {
>         type master;
>         notify yes;
>         allow-transfer { 192.168.0.0/24; 127.0.0.1; };
>  file "/etc/bind/db.int.mydomain.com";
> };
> 
> named.conf from EXTERNAL server:
> options {
>         auth-nxdomain no;
>         directory "/var/cache/bind";
>         pid-file "/var/run/namedext.pid";
>         listen-on port 53 { 192.168.0.21; };
>         allow-query { any; };
>         allow-recursion { any; };

        Do you really want recursion on your external instance?

>         query-source address * port 53;
>         listen-on-v6 { none; };
> };
> zone "mydomain.com" {
>         type master;
>         notify yes;
>         allow-transfer { 192.168.0.0/24; 127.0.0.1; };
>  file "/etc/bind/db.ext.mydomain.com";
> };


options {
        directory "/var/cache/bind";
        listen-on port 53 { 192.168.0.21; 192.168.0.20; };
        query-source address * port 53;
        auth-nxdomain no;
        listen-on-v6 { none; };         // default
};

view "external" {
        match-destinations { 192.168.0.21; };
        allow-query { any; };           // default
        recursion no;

        zone "mydomain.com" {
                type master;
                notify yes;             // default
                allow-transfer { 192.168.0.0/24; 127.0.0.1; };
                file "/etc/bind/db.ext.mydomain.com";
        };
};

view "internal" {
        match-destinations { 192.168.0.20; };
        allow-query { any; };           // default
        allow-recursion { any; };       // default

        zone "mydomain.com" {
                type master;
                notify yes;             // default
                allow-transfer { 192.168.0.0/24; 127.0.0.1; };
                file "/etc/bind/db.int.mydomain.com";
        };
};

--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews@xxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe