Two view for one domain : local & internet

lolotux try INN config ??? lolotux at system-linux.net
Wed Aug 27 21:09:36 UTC 2003


Hi,

Excuse for my english

I would like to have two views of my domain : system-linux.net
(a FQDN of my domain)
I have just one ADSL connection !

So I create a named.conf : *** is address (not just one)

logging {
 category "lame-servers" { null; };
 };
 acl "dhcp-clients" {
 192.168.1.0/24;
};

options {
 pid-file "/var/run/named/named.pid";
 directory "/var/named";
 version "Do you realy want version of this server ? Is your mother 
 know what you do ??? Probably no !";
 notify yes;
 forward first;
 forwarders {
 ***; };
 allow-transfer {
 ***; };
 also-notify {
 ***; };
};

view "world" {
 match-clients {any;};
 recursion no;
 zone "." {
 type hint;
 file "named.ca";
 };
 zone "0.0.127.in-addr.arpa" {
 type master;
 file "named.local";
 };
 zone "system-linux.net" {
 type master;
 file "system-linux.net";
 notify yes;
 allow-query {
 any;
 };
 also-notify {
 ***; };
 allow-transfer {
 ***; };
 allow-update {
 dhcp-clients;
 };
 };
 zone "1.168.192.IN-ADDR.ARPA" {
 type master;
 file "192.168.1";
 notify no;
 also-notify {
 ***;
 };
 allow-transfer {
 ***; };
 allow-update {
 dhcp-clients;
 };
 };
};

view "local" {
 match-clients { 192.168.1.0/24; };
 recursion yes;
 zone "." {
 type hint;
 file "named.ca";
 };
 zone "0.0.127.in-addr.arpa" {
 type master;
 file "named.local";
 };
 zone "system-linux.net" {
 type master;
 file "system-linux.net.for.local";
 notify no;
 allow-query {
 any;
 };
 also-notify {
 ***; };
 allow-transfer {
 ***; };
 allow-update {
 dhcp-clients;
 };
 };
 zone "192.168.1" {
 type master;
 file "192.168.1.for.local";
 notify no;
 also-notify {
 ***;
 };
 allow-transfer {
 ***; };
 allow-update {
 dhcp-clients;
 };
 };
};

But in a web browser : I can't access on any address
Ping host.of.a.domain : host unknown
PING 212.27.32.176 (212.27.32.176) 56(84) bytes of data.
64 bytes from 212.27.32.176: icmp_seq=1 ttl=253 time=65.3 ms
64 bytes from 212.27.32.176: icmp_seq=2 ttl=253 time=68.9 ms
64 bytes from 212.27.32.176: icmp_seq=3 ttl=253 time=69.6 ms

It means that my config of named failed !

So where is the problème ?

It's not urgent, cause my first config without 2 views work good !

Thank's to read my very bad english !



More information about the bind-users mailing list