Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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!
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)).
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.
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?
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.
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.