3rd attempt to send this answer :(

news user news at sisyphus.news.be.easynet.net
Sun Jul 4 00:40:25 UTC 2004


> If db.mydomain has identical records for "www" and "ed", they should 
> both work.  You never answered my first question: what's different about 
> the ways that the two hostnames are entered into the zone file?  Perhaps 
> you should post db.mydomain.

The test from my LAN would be:
www.mydomain.com	OK
mail.mydomain.com	FAIL

what I have:

# cat /etc/named.conf
options {
        directory "/var/named";
        // query-source address * port 53;
        listen-on {
                127.0.0.1/32;
                172.20.1.1/32;
                172.20.100.1/32;
                172.20.100.2/32;
        };
};
 
//
// a caching only nameserver config
//
zone "mydomain.com" IN {
        type master;
        file "db.mydomain";
        allow-update { none; };
};
 
zone "." IN {
        type hint;
#       file "named.ca";
        file "named.root";
};
 
zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};
 
zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "db.127.0.0";
        allow-update { none; };
};
 
zone "1.20.172.in-addr.arpa" IN {
        type master;
        file "db.172.20.1";
        allow-update { none; };
};
 
zone "100.20.172.in-addr.arpa" IN {
        type master;
        file "db.172.20.100";
        allow-update { none; };
};
 
 
# cat /var/named/db.mydomain
$TTL    86400
; $ORIGIN localhost.
; @                       1D IN SOA       @ root (
 
mydomain.com. IN SOA mybox.mydomain.com. ed.mydomain.com. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
  
;                        1D IN NS        @
;                        1D IN A         127.0.0.1
 
mydomain.com.                   IN NS           arrakis.mydomain.com.
 
localhost.mydomain.com.         IN A            127.0.0.1
boxindmz.mydomain.com.           IN A            172.20.100.2
pc-4928.mydomain.com.           IN A            172.20.1.10
 
arrakis.mydomain.com.           IN A            172.20.1.1
arrakis.mydomain.com.           IN A            172.20.100.1
 
fwl.mydomain.com.          IN A            172.20.1.1             ; Arrakis Local
fwd.mydomain.com.          IN A            172.20.100.1           ; Arakis DMZ
ns.mydomain.com.                IN CNAME        fw.mydomain.com.	; Name server
 
www.mydomain.com.               IN CNAME        caladan.mydomain.com.   
mail.mydomain.com.              IN CNAME        caladan.mydomain.com # cat


I really think I need to use "view" but I can't figure out how it's
suposed to work.

Any errors in the files, feel free to comment.

Many thx 4 ur time :)
Ed.


More information about the bind-users mailing list