LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 07-31-2003, 04:26 AM   #1
sicasal
LQ Newbie
 
Registered: Jul 2003
Location: Portugal / Lisbon
Distribution: RedHat 9
Posts: 23

Rep: Reputation: 15
BIND and DNS Server Problems


Good Mornig to all...

I hope I find someone who can help me out.... I read allready so much things about it, and I think I'am getting everytime even more confused that I was befor


I try to set up a simple DNS/BIND Server for my local network.
So that if anyone in the network ask/ping for a name it will find it and return the IP.
I cant get it working.... (bysd, It's a NT domain, but I think thats shouldnt be a problem. If I indicate on the NT machine for exemple the DNS Server wich will be Linux...)

Can anybody try to explain how exactly this could be made...

Thanks a lot...

Regards

PS: For all, my Modem Problem is solved.. THANK TO ALL
But I didn get any Internal or USB Modem working... I got a Serial Modem and it worked straight away...!
 
Old 07-31-2003, 04:37 AM   #2
DIYLinux
Member
 
Registered: Jul 2003
Location: NL
Distribution: My own
Posts: 92

Rep: Reputation: 17
I installed BIND9 a couple of times, maybe i can help. But need to know your problem. Please provide more info.
 
Old 07-31-2003, 06:03 AM   #3
sicasal
LQ Newbie
 
Registered: Jul 2003
Location: Portugal / Lisbon
Distribution: RedHat 9
Posts: 23

Original Poster
Rep: Reputation: 15
Hi DIYLinux...
My problem is actually that I cant get i working .... Probably I'am a little confused with all the Primary, Mater, Slave, Caching only, etc...
How must I start, if I simply want my Linux Server to be a DNS for the Network where I indicate on all the Workstation that the linux is the primary DNS-Server. And on this Server I tell him all the IP's from the Network and give them Names, so that if I somewhere in the Network ping to a Name it will reply with the IP and vice versa....

Thanks
 
Old 07-31-2003, 06:17 AM   #4
DIYLinux
Member
 
Registered: Jul 2003
Location: NL
Distribution: My own
Posts: 92

Rep: Reputation: 17
If you selected BIND while installing RH9, it will be started automaticaly. You can check if it is running with the command

ps aux | grep named

Next, you should check if bind is listening on port 53. Read the manual (i believe it will be installed in /usr/share/doc/bind) and check /etc/named.conf.

Then check the zone files. I only have HP-UX'es available at the moment, but do remember the zone files are somewhere under /var. Make sure you have two files for each zone. One for forward resolution, containing A type records (you are using IP4 ? for IP6 you have AAA records). The file should start with a Start Of Authority record. The second file is for reverse lookup (IP -> hostname), and must contain PTR records. The PTR records must refer to A records in the forward file. Not that the default zone files are good templates, start with them.

Now you need to tell bind to reread the configuration. Search for a small (1..4kB) script called bind or named in a subdirectory of /sbin. Check if it is a script (file or less command), Run it with option reread (i think).
 
Old 07-31-2003, 07:09 AM   #5
sicasal
LQ Newbie
 
Registered: Jul 2003
Location: Portugal / Lisbon
Distribution: RedHat 9
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks...
Until now I ve worked with th GUI from GNOME for the configuration.
Lets start a little earlier...
What do I define as Master, Slave, Name Server and what as Caching Only...?
Did you have worked with the GUI before ?
 
Old 07-31-2003, 07:23 AM   #6
max2003
LQ Newbie
 
Registered: May 2003
Distribution: Slackware 9.1
Posts: 26

Rep: Reputation: 15
You can try toread DNS HOWTO from http://www.tldp.org .
 
Old 07-31-2003, 07:38 AM   #7
sicasal
LQ Newbie
 
Registered: Jul 2003
Location: Portugal / Lisbon
Distribution: RedHat 9
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the tip...

 
Old 07-31-2003, 08:41 AM   #8
DIYLinux
Member
 
Registered: Jul 2003
Location: NL
Distribution: My own
Posts: 92

Rep: Reputation: 17
I have never worked with GUIs for DNS. Editing the configuration with a text editor is pretty easy, as long as you start with a good template for the zone data.

You probably need some help with DNS terminology.

Master - DNS server with authorative data.
Slave - Server that gets the data it distributes from master server(s). Does not provide its own data
Cache only - kind of slave server, used to increase performance and reliability.

Your Linux server is going to contain authorative data for your zone. (A zone is a domain that is managed by a single adnmin/organisation). You are also likely to have your DNS server forward DNS requests for domains outside your zone to your ISPs DNS server.
 
Old 07-31-2003, 08:43 AM   #9
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
important files and locations

/etc/named.conf

/var/named
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
BIND 9 DNS server niranjan_mr Linux - Software 2 08-05-2005 05:32 AM
subdomain in the dns server bind c0nsur Linux - Software 4 03-29-2005 05:11 PM
BIND DNS Setup on new server brooky Linux - General 0 04-03-2004 10:54 AM
Bind Dns Server nexact Linux - Networking 2 02-21-2004 03:10 PM
help with bind dns server!!!! debloxie Linux - Networking 4 01-22-2004 08:15 AM


All times are GMT -5. The time now is 11:49 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration