Hi,

I'm using a bind server on my machine. We already have a dns server on the lan (zone used in lan is "local").

Using dig, nslookup or ping work when accessing hosts in the "local" zone. Since another application is used, resolving does not work anymore. An example is below.

Here's my named.conf

Code:
options {
        directory "/var/cache/bind";
        recursion yes;
        forwarders { 192.168.1.1; }; # lan dns server
        forward only;
        auth-nxdomain no;    # conform to RFC1035
};

zone "." {
      type hint;
      file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

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

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};

// Zone "local" is forwarded to the lan dns server
zone "local" {
        type forward;
        forward only;
        forwarders{ 192.168.1.1; };
};
resolv.conf
Code:
$ cat /etc/resolv.conf
nameserver 127.0.0.1
Now heres the problem:
  1. dig a lan host works ok
  2. telnet lan host does not work
  3. dig lan host does not work anymore !


Code:
skrieg@asumsk:bind $ dig data.local

; <<>> DiG 9.3.2 <<>> data.local
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63494
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;data.local.                    IN      A

;; ANSWER SECTION:
data.local.             0       IN      A       192.168.1.200

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Jul 21 14:44:55 2007
;; MSG SIZE  rcvd: 44

skrieg@asumsk:bind $ telnet data.local
#CTRL+C typed here
skrieg@asumsk:bind $ dig data.local

; <<>> DiG 9.3.2 <<>> data.local
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 59541
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;data.local.                    IN      A

;; AUTHORITY SECTION:
.                       10796   IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2007072001 1800 900 604800 86400

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Jul 21 14:45:04 2007
;; MSG SIZE  rcvd: 103

skrieg@asumsk:bind $
What's wrong ?

Thank you.