Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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???
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.