LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS named.conf master/slave question (https://www.linuxquestions.org/questions/linux-networking-3/dns-named-conf-master-slave-question-251415/)

pao 11-05-2004 04:53 AM

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.

chort 11-05-2004 11:34 AM

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.

pao 11-09-2004 01:59 AM

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

scowles 11-09-2004 06:57 AM

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.

r0b0 11-09-2004 09:10 AM

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.

pao 11-12-2004 04:50 AM

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


All times are GMT -5. The time now is 09:26 PM.