LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-27-2004, 02:56 PM   #1
lmetal
LQ Newbie
 
Registered: Jul 2004
Location: US, Texas
Distribution: Slackware 10.0
Posts: 21

Rep: Reputation: 15
BIND Server, Windows Workgroup


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?
 
Old 12-28-2004, 01:27 AM   #2
Chowroc
Member
 
Registered: Dec 2004
Posts: 145

Rep: Reputation: 15
I think Windows domain has different meaning with DNS domain.
 
Old 12-28-2004, 02:54 AM   #3
Ateo
Member
 
Registered: Sep 2004
Location: Long Beach, CA
Distribution: FreeBSD,Ubuntu,Gentoo,MacOS
Posts: 139

Rep: Reputation: 15
The inherent problem with using a dns server to resolve local names it that your domain become a zone so when you call for it, it's going to expect it to be called by [A record].domain

You're probably going to have to resort to samba and set it up as WINS.

I could be wrong.....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is possible to get windows hostnames from a workgroup ? szszekel Linux - Networking 1 04-16-2005 12:06 AM
Workgroup between Mandrake 10.0 and Windows ME adrianos Linux - Networking 1 02-12-2005 06:36 AM
LInux-- to Windows WORKGROUP fritz001 Slackware 4 09-15-2004 06:01 AM
Can't see Windows workgroup cb8100 Linux - Networking 3 04-16-2004 06:04 PM
Trying to connect to my windows WORKGROUP... cj_thomas Linux - Networking 6 05-26-2003 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration