LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-26-2007, 04:57 AM   #1
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 512

Rep: Reputation: 37
configure DNS issue


Hi all,

I want to clarify some issues regarding DNS.
I want to setup a domain name for my office which is small size. I will setup DNS for the domain name valley.com
In that domain I want to divide them department wise like marketing.valley.com, finance.valley.com etc. and inside them will be hosts like host1.marketing.valley.com, host2.marketing.valley.com as well as for others.
Now what will be my dns server configuration and zone files?
I have added this in my /etc/named.conf
Code:
// named.conf file fragment
....
options {
    ....
    // stop everyone
    allow-transfer {"none";};
    ....
};
zone "valley.com" in{
   type master;
   file "valley.com.fr";
   allow-transfer {none;};
};
I have made valley.com.fr and valley.com.rev.
Code:
; zone fragment for 'zone name' valley.com
; name servers in the same zone
$TTL 2d ; zone default TT = 2 days
@              IN      SOA   ns1.valley.com. root.valley.com. (
               2003080800 ; serial number
               2h         ; refresh =  2 hours 
               15M        ; update retry = 15 minutes
               3W12h      ; expiry = 3 weeks + 12 hours
               2h20M      ; minimum = 2 hours + 20 minutes
               )
; main domain name servers
              IN      NS     ns1.valley.com.

; A records for name servers above 
ns1           IN      A      192.168.0.3

; other domain level hosts and services
marketing      IN      A     192.168.0.6
finance		IN	A     192.168.0.8			 
....

; sub-domain definitions
$ORIGIN marketing.valley.com.

; A record for subdomain mail server
host1          IN      A      10.10.0.28
host2          IN      A      10.10.0.32
Now, should I have to make entry in named.conf for marketing.valley.com or for host1.marketing.valley.com or where should I put these entries for these subdomains? Is that ok?
Waiting for your kind response.
 
Old 06-27-2007, 03:08 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You need to create a zone file for each zone. market.valley.com and finance.valley.com are two separate zones. valley.com is another separate zone. otherwize market.valley.com would look like a record in the zone instead of a zone that provides records.
 
Old 06-29-2007, 10:20 PM   #3
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 512

Original Poster
Rep: Reputation: 37
Thanks for your reply.
Does that mean I have to create one zone entry in /etc/named.conf for each department as well as create their forward and reverse zone files?

What to put in those departmental zone files?
Code:
; zone fragment for 'zone name' market.valley.com
; name servers in the same zone
$TTL 2d ; zone default TT = 2 days
@             IN      SOA   ns1.valley.com. root.valley.com. (
               2003080800 ; serial number
               2h         ; refresh =  2 hours 
               15M        ; update retry = 15 minutes
               3W12h      ; expiry = 3 weeks + 12 hours
               2h20M      ; minimum = 2 hours + 20 minutes
               )
; main domain name servers
              IN      NS     ns1.valley.com.

; A records for name servers above 
ns1           IN      A      192.168.0.3

; other domain level hosts and services
marketing      IN      A     192.168.0.6
Something like this?
 
Old 07-03-2007, 11:56 AM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You have to create a zone file for each zone. marketing.example.com and sales.example.com can be hosts of the example.com zone or they can be individual zones.

If marketing.example.com is a host then the marketing host record belongs in the example.com zone. If marketing.example.com is a zone then it has to have records of hosts within it's zone file, such as server1.marketing.example.com, johnpc.marketing.example.com. You need to understand the DNS hierarchy. I would suggest to pick up a good DNS book and do your homework.
 
Old 07-15-2007, 01:04 PM   #5
tanveer
Member
 
Registered: Feb 2004
Location: e@rth
Distribution: RHEL-3/4/5,Gloria,opensolaris
Posts: 512

Original Poster
Rep: Reputation: 37
Hi thanks for your replies.

One more thing, Say if there are huge lists of hosts under marketing.example.com 192.168.100.20-50, 172.10.10.34-78, ..etc then in marketing.example.com.fr file I have to put all the A records and do I have to create reverse records based on per netowork like 100.168.192.rev, 10.10.172.rev....etc.

Also if a new host is added in the marketing zone then will the slave get automatically updated or for that I have to do DDNS?

Thanks in advance.
 
  


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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-28-2012 12:50 AM
How to configure DNS for a local LAN (at least I think I want DNS) FlyingPenguin128 Linux - Networking 8 12-11-2005 05:15 PM
dns configure... apenguinlinux Debian 1 02-15-2005 08:22 AM
DNS issue or caching issue? AZDAVE Linux - Networking 7 10-02-2004 01:28 AM
DNS Configure mairul Linux - Networking 2 01-07-2004 09:00 AM


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