Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-25-2005, 11:47 AM   #1
Registered: Aug 2003
Posts: 65

Rep: Reputation: Disabled

I will cut my LAN in different VLAN.(VLAN 100 for servers :, VLAN 101 :, VLAN 103 :
My linux box is used as a gw, a DNS server, a firewall and a mail server.
eth1 is for the internet, eth0.100 , eth0.101 and eth0.103 for vlan 100, 101, 103.
is it possible to configure etc/named.conf like this :
zone "." IN {
        type hint;
        file "root.hints";

zone "" IN {
        type master;
        file "zone/127.0.0";

zone "" IN {
        type master;
        file "zone/";

zone "" IN {
        type master;
        file "zone/192.168.100";

zone "" IN {
        type master;
        file "zone/192.168.101";

zone "" IN {
        type master;
        file "zone/192.168.3";
and how will I configure the 192.168.100 file, 192.168.101 file and 192.168.3 file? This for each?

$TTL 86400
@       IN      SOA  (
                        IN      NS

1     IN      PTR
Is it possible to have "IN NS" in each file?

Thx a lot for u help.
Old 07-26-2005, 08:31 PM   #2
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109

Rep: Reputation: 15
As far as I can tell, I believe your setup will work. You can have one zone for resolving hosts to IPs and three separate zones for resolving those IPs to hosts.

As for using NS , in make sure you give it three separate IP addresses in your zone and define the reverse address for the proper zone in each respective zone file. You should have lines like this:

gw	IN A
gw	IN A
gw	IN A
Even if on your 100 VLAN, the DNS server returns as the address of your gateway, it won't matter as long as the default route is set to that gateway.

If you have any more questions, feel free to ask.


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
VLAN Question teamchachi Linux - Networking 16 10-02-2005 06:09 PM
VLAN Question KevinGuy Linux - Networking 8 08-23-2005 08:35 AM
VLAN Routing teamchachi Linux - Networking 0 06-14-2005 10:54 AM
Vlan Markvw Linux - Networking 1 09-29-2003 09:33 AM
Linux for VLAN ? newbieA Linux - Networking 1 09-13-2003 12:34 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration