LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2003, 09:58 AM   #1
vcampos
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
Dns


I need to create a sub zone eg. test.linuxquestions.com. Can somebody help me on the actual commands needed to get this zone running. I have an understanding about the named commands but still have problems to have a step by step procedure on creating this zone.

Thanks
Victor
 
Old 07-19-2003, 11:22 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
You need to create the file for your zone. If you download the examples from this HOWTO: http://www.tldp.org/HOWTO/DNS-HOWTO.html, you only need to change the domain and probably add different hosts.
 
Old 07-21-2003, 04:45 PM   #3
vcampos
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Mara thanks for your respond but I need more info. meaning I logging as a root user and then what?! my prompt currently is ([example@example.com]#) how do I start creating my zone after that? I'm brand new to Linux!

Victor
 
Old 07-21-2003, 06:22 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Do you have X Window installed on that machine or is it a server with console-only? If it's console-only you need to find an editor you like (possibilities present in every distro: vim, emacs, pico, joe, editor build in into Midnight Commander (to run it: mc)).

Now you need to find 'named.conf' (example in the HOWTO: http://tldp.org/HOWTO/DNS-HOWTO-7.html#ss7.1). Example from my system:
Quote:
mara@ruterek:~$ locate named.conf
/etc/bind/named.conf
So the file is in /etc/bind/named.conf (in your system it may be in a different palace). Replace the one or edit it. THe place for zone files can be found in a similar fragment:
Quote:
options {
directory "/etc/bind";
So, in my system, the zone files are in /etc/bind.
 
Old 07-22-2003, 08:01 PM   #5
vcampos
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Mara this a command only box. I believe that I have emacs. question you said that mc will be an editor? I'm a windows person so if I run mc I would get something like notepad? and next question is I dont want to replace my file but rather edit it, so would I run a command "mc named.conf" will this do it? The reason that I want to edit it is because this server is already resolving for two other zones so i need to add a zone to it. my last concern is that there is a zone already created called adotek.com, should I create a zone if I want to do test.adotek.com which to me is a sub zone?

Victor
 
Old 07-23-2003, 03:10 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
MC is not an editor. If you started your computer experience from DOS, you probably know Norton Commander, right? MC is very similar. Just F4 over a file and you can edit it.

You can create a sub-zone for any zone you have.
 
Old 07-23-2003, 09:12 PM   #7
vcampos
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Mara I have no experience with NOrton edititor from DOS but from what I got I can type eg. etc/bin/named.conf and then F4?
 
Old 07-24-2003, 04:03 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
No, no...You run 'mc', nice file manager starts. You go to /etc/bind/ (or any other directory you'v got the file in) - I think it'll be easy to find out how to move between directories in mc. Then you move to named.conf file and press F4 (a bar at the bootom of scree will show you this option and all other possibilities).
 
Old 08-04-2003, 07:22 AM   #9
vcampos
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Mara hi again I just tried typing MC on the console prompt and I get nothing! any suggestions?
 
Old 08-04-2003, 03:49 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
Which distribution is it? Try one of the following:
RedHat: up2date mc
Debian: apt-get instal mc
Mandrake: urpmi mc
 
Old 08-04-2003, 03:58 PM   #11
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
I would seriously suggest _not_ messing around with zone files if you've little or no experience of BIND and, indeed, a UNIX-like operating system.

Not only are you risking breaking things for yourself, you risk breaking them for others too.

Buy or borrow a copy of "DNS & BIND" on O'Reilly press, I would also suggest reading "Linux in a nutshell".

Once you've armed yourself with those two books, and the knowledge therein, you'll then be in a much better position to get things working as you want them.

Regards
 
  


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
dns client cannot resolve on dns server jtvillegas Linux - Software 3 03-12-2016 03:30 PM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM
DNS still slow after installing caching DNS mooreted Linux - Networking 16 01-01-2004 12:18 AM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM


All times are GMT -5. The time now is 02:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration