LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-21-2013, 03:25 PM   #1
theNixGuy
LQ Newbie
 
Registered: May 2013
Location: USA & India
Distribution: CentOS & Ubuntu
Posts: 8

Rep: Reputation: Disabled
Frustrated with BIND


Hey all,
I have been working with cPanel servers (centOS) for a while now and cPanel makes it easier to configure the DNS. I've spared my self a VPS that I am trying to use to learn.

I do not wish to use any panel on it. I am good as far as installing mysql, configuring apache, php, phpmyadmin etc goes. But I have issues understanding how to configure BIND in order to resolve an actual domain.

Note that I am not putting any important site on it. Just a domain that's sitting around in order to learn. Can anyone help me configuring BIND in order to resolve the domain to my actual files?
 
Old 06-21-2013, 03:44 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled
Adding a zone to BIND is a two-step process:
  1. Create a zone file
  2. Add a reference to that zone in named.conf
The format of the zone file is not specific to BIND. The reference in named.conf should look something like this:
Code:
zone "mydomain.com" IN {
        type master;
        file "mydomain.com.zone";
};
Your named.conf will contain a "directory" parameter specifying the base directory for your zone files. The "file" reference must be relative to that directory.

Do you have any specific questions about either named.conf or zone files?
 
Old 06-22-2013, 02:26 AM   #3
Leoprince
LQ Newbie
 
Registered: Oct 2012
Posts: 14

Rep: Reputation: Disabled
Hi

Ser Olmy well explained to you. In the meantime
---------------------------------
zone "mydomain.com" IN {
type master;
file "/var/named/mydomain.com.zone";
};
--------------------------------
Will be little bit more clear that you should create your zone file as /var/named/mydomain.com.zone

This link is a good one to frame a zone file http://www.centos.org/docs/4/html/rh...bind-zone.html
 
Old 06-22-2013, 05:37 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Off topic

Quote:
Originally Posted by theNixGuy
Check out my Linux Blog
And so I did. When comparing the original source with your take the practice of leeching images that aren't yours, the text being watered down to the point it's not even funny anymore and the lack of attribution can only be construed as you presenting other peoples work as your own. That's what I call "frustrating".
 
  


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
creating domain name in bind problems exposing bind to internal network abhijit_mohanta Linux - Networking 1 09-03-2009 01:09 AM
creating domain name in bind problems exposing bind to internal network abhijit_mohanta Linux - Security 1 09-03-2009 01:01 AM
Bind problem: config files are missing after re-install bind 9.5 on Fedora Core 8 elvisious Linux - Software 1 07-15-2008 07:49 PM
Can I bind to a serial port using BIND Socket API?? venkat_p257 Linux - General 2 12-04-2007 05:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:42 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