LinuxQuestions.org
Visit Jeremy's Blog.
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 09-08-2005, 05:23 AM   #1
bristi
LQ Newbie
 
Registered: Feb 2005
Location: Denmark
Distribution: Primarily Debian and derivatives
Posts: 13

Rep: Reputation: 0
dns adding extra webserver


Hi

I've been trying to figure this one out for too long. Have read nummerable amounts of documentation but this exact task wasn't explicitly mentioned. Let's get on with it:

I am on a LAN. Two servers: 1. firewall, router... 2. (internal server) dns, webserver... Example domain name: foo.bar

I want a second (internal) webserver, let's call it server 3. Example domain name: test-foo.bar I want the machines on the internal network to be able to see test-foo.bar

It is supposed to be simple but I am reluctant to play around as I don't want a downed internet connection for the people with whom I share the connection.

I believe I have to stop bind, enter the ip and domain name of server 3 in the forward and reverse zone files of server 2, and start bind. But how exactly?

172.16.0.254 - Server 1
172.16.0.90 - Server 2
172.16.16.98 - Server 3

Server 2:
Code:
# cat /etc/named.conf
options {
        directory "/var/named";
        version "GoAway(TM) v 0.91";
        allow-transfer { 172.16.0.254; };
};

acl "fooservers" {
        172.16.0.90;
};
//
// a caching only nameserver config
//
controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
        type hint;
        file "named.ca";
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};
zone "foo.bar" IN {
        type master;
        file "foo.bar";
        allow-update { fooservers; };
};

zone "16.172.in-addr.arpa" IN {
        type master;
        file "foo_reverse.bar";
        allow-update { fooservers; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

include "/etc/rndc.key";
Code:
# cat /var/named/foo.bar
$ORIGIN .
$TTL 86400      ; 1 day
foo.bar                 IN SOA  will.foo.bar. hostmaster.foo. (
                                2002237590 ; serial
                                3600       ; refresh (1 hour)
                                900        ; retry (15 minutes)
                                1209600    ; expire (2 weeks)
                                43200      ; minimum (12 hours)
                                )
                        NS      corsa.foo.bar.
                        A       172.16.0.90
                        MX      5 corsa.foo.bar.
$ORIGIN foo.bar.
$TTL 1080       ; 18 minutes
-                       A       172.16.16.127
138h                    A       172.16.16.16
aa-gxc7xo0d23fu         A       172.16.16.1
ACER                    A       172.16.16.248
acer-418f58e23c         A       172.16.16.122
......... And more stuff concerning connected hosts and their respective ip's.........
......... With the odd
$TTL 86400      ; 1 day
corsa                   A       172.16.0.90
$TTL 1080       ; 18 minutes
daniel-443              A       172.16.16.84
In between ...............................................................
Code:
# cat /var/named/foo_reverse.bar
$ORIGIN .
$TTL 86400      ; 1 day
16.172.in-addr.arpa     IN SOA  corsa.foo.bar. hostmaster.foo.bar. (
                                2002225891 ; serial
                                28800      ; refresh (8 hours)
                                7200       ; retry (2 hours)
                                2419200    ; expire (4 weeks)
                                86400      ; minimum (1 day)
                                )
                        NS      corsa.foo.bar.
$ORIGIN 16.172.in-addr.arpa.
$ORIGIN 16.16.172.in-addr.arpa.
$TTL 1080       ; 18 minutes
109                     PTR     Jonas339.foo.bar.
114                     PTR     Kristijan-225.foo.bar.
...
I have replaced the actual domain name in the code with foo.bar..

Could anyone give a step by step guide? I only assume that the forward zone file is foo.bar and that the reverse zone file is foo_reverse.bar and I am not really sure where and how much I should insert into those files.

I would also like comments on whether you consider it unsafe to share the information I just did (can't see how it should be) and what you think of the LAN being a B-class network (+200 users).

Thanks

-Brian
 
  


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
adding a harddrive for extra space fakie_flip Linux - Hardware 5 10-02-2005 08:39 PM
C++ adding an extra vector stops code from working timhardy Programming 4 08-17-2005 07:19 PM
adding extra repositories? KezzerDrix Mandriva 1 04-27-2005 09:55 AM
adding an extra pci slot diversitas Linux - Hardware 1 04-16-2005 02:00 PM
KDE Konsole adding extra characters Tiyogi Linux - Software 2 04-26-2004 03:21 PM

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

All times are GMT -5. The time now is 04:41 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
Open Source Consulting | Domain Registration