I have BIND 9.24 running on White Box Enterprise Linux 3.0 connected to a Windows workgroup. I've been reading as much as I could about setting up BIND, but it all seems to apply to domains. How do I set up a zone for the workgroup? Here is my attempt so far:
/etc/named.conf
Code:
options {
directory "/var/named";
query-source address * port 53;
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/rndc.key";
zone "." {
type hint;
file "named.root";
};
zone "WORKGROUP" {
type master;
//allow-update { 192.168.0.0/16; };
//allow-transfer { 192.168.0.0/16; };
notify yes;
file "WORKGROUP.local";
};
zone "localhost" {
type master;
file "named.localhost";
allow-transfer { localhost; };
notify no;
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "localhost.rev";
};
zone "20.168.192.in-addr.arpa" {
type master;
file "192.168.20.rev";
//allow-update { 192.168.20.0/24; };
//allow-transfer { 192.168.20.0/24; };
};
/var/named/WORKGROUP.local
Code:
$TTL 3D
@ IN SOA ns1. root.ns1. (
2004122701 ; Serial YYYYMMDDnn
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
IN NS ns1.
localhost IN A 127.0.0.1
lab-firewall IN A 192.168.20.1
ns1 IN A 192.168.20.2
dilbert-w IN A 192.168.20.11
/var/named/192.168.20.rev
Code:
$TTL 3D
@ IN SOA ns1. root.ns1. (
2004122701 ; Serial YYYYMMDDnn
8H ; Refresh
2H ; Retry
4W ; Expire
1D ) ; Minimum
IN NS ns1.
1 IN PTR lab-firewall.
2 IN PTR ns1.
11 IN PTR dilbert-w.
The problem I've seen is that the way its set up now I have to append .WORKGROUP to the client computer names when using nslookup. The only way it seemed to work was changing the zone name from "WORKGROUP" to ".", so that I can use nslookup from any Windows machine and resolve the names to addresses and addresses to names without adding .WORKGROUP. However, this interferes with the root hints zone i guess, because all clients lose internet when its set up that way. How do I get this BIND server to provide local name and ip resolution and still allow clients to go to websites?