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 11-05-2004, 05:53 AM   #1
pao
LQ Newbie
 
Registered: May 2004
Posts: 12

Rep: Reputation: 0
DNS named.conf master/slave question


Hello dudes!

I'm setting up a DNS.

This dns works as slave to get the names of a domain sub.domain.net

This is the zone ...

zone "sub.domain.net" {
type slave;
masters { 1.2.3.4; };
file "sub.domain.net-slave";
};

So every X time my sub.domain.net-file get updated by new file from server with some new machines.

I want to add some machines to this sub.domain, but if i add to this file in some hours the sub.domain.net-slave file is overwritten by master DNS. I dont have permissions to the master DNS server (who sends me the sub.domain.net-slave file...)

There is any way to add a new zone or modify this zone to search first at a sub.domain.net-master file where i add my machines?

at sub.domain.net-master file i add my new machines.

i tryed to do something like this, but doesn't work. This solution only find the machines described at the first zone. the second zone always is ignored...

zone "sub.domain.net" {
type master;
file "sub.domain.net-master";
};

zone "sub.domain.net" {
type slave;
masters { 1.2.3.4; };
file "sub.domain.net-slave";
};


Other solution? Is possible to make a link from a sub.domain.net-master file to sub.domain.net-slave file???


Tx for your help.
 
Old 11-05-2004, 12:34 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
You can't hijack a zone that you don't own. If the master name server delegated a sub-domain to you, you could create your own master zone for that sub-domain, but you can't arbitrarily add names to a zone for which you're not the master.
 
Old 11-09-2004, 02:59 AM   #3
pao
LQ Newbie
 
Registered: May 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Tx for your answer chort .

Maybe I should make a different question.

I have some machines that 1 want to add to a DNS. I don't have the authority to add them.

# premises

- Everybody uses a DNS-server1 that is the master.
- My group of machines uses a DNS-server2 that is slave of DNS-server1.
- My group of machines uses a subnet 1.2.3.xxx -- subdomain: sub.domain.net
- The names I want to add, only must be resolved by machines of my subnet that uses DNS-server2
- DNS-server1 doesn't need to resolve names because everybody machines don't need to.

- There is a zone owned by master called sub.domain.net that resolves some ip of this subdomain

- I want to add a new zone or do something to the DNS-server2 (which I admin an i can create zones) to resolve ip and names of my subnet.

There is any way to make a zone to check 2 files? Check a file and if no match, find at other file?


Thanks 4 your time again.
Pao
 
Old 11-09-2004, 07:57 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
As chort mentioned in his reply - In order for you to meet your stated requirements, you're only option is to have the primary DNS server delegate SOA for sub.domain.net to your name server. Then you could add/delete records for the sub.domain.net zone.
 
Old 11-09-2004, 10:10 AM   #5
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
If the "group of machines" will query your "slave" server for information about the zone, then I suppose you could just set it to be type master.
This way your server will not pick up information from the "real" master any more and your clients will see your zone entries.
 
Old 11-12-2004, 05:50 AM   #6
pao
LQ Newbie
 
Registered: May 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Another question.

If i can set up a zone slave or forward, which is best?

I suppose slave helps to resolve ip a little faster than forward, isn't it?

There are other advantages or disadvantages at slave vs forward?


TX
 
  


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
openldap replication master/slave slapd.conf paul_mat Linux - Networking 1 11-30-2005 02:54 PM
Master/Slave server DNS emailssent Linux - Networking 2 10-04-2004 04:21 AM
Tranferring Zones, Master to Slave, DNS - BIND newpylong Linux - Networking 0 09-02-2004 09:01 AM
DNS Slave not getting zones from master tysonh04 Fedora 1 06-06-2004 06:10 PM
dns master slave trust relationship how? ferret_dude Linux - Networking 1 05-24-2004 07:05 AM

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

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