Setting up slave DNS?


 
Thread Tools Search this Thread
Operating Systems Linux Setting up slave DNS?
# 1  
Old 04-05-2012
Setting up slave DNS?

can someone point me in the right direction im trying to setup a Slave dns server

this is my named.conf file
Code:
zone "website1.org" {
type slave;
file"mydb-for-website1-org";
notify NO;
};

and this is my

var/named/mydb-for-website1-org

Code:
$TTL    3D
@       IN      SOA     website1.website1.org.     website1.website1.org.(
                        1       ; Serial
                        8H      ; Refresh
                        2H      ; Retry
                        1W      ; Expire
                        1D      ; Negative Cache TTL
);
@       IN      NS      website1.website1.org.
vm01    IN      A       192.168.100.2
vm02    IN      A       192.168.100.3
vm03    IN      A       192.168.100.4

but then when i try starting dns i get an error

when i do systemctl status named.service

(code=exited, status=2/INVALIDARGUMENT)
# 2  
Old 04-05-2012
You do not define db files for a slave, they get created from the master. But somehow the slave needs to know about the master, often times in the zone config itself:

Code:
zone "website1.org" {
type slave;
masters { AAA.BBB.CCC.DDD; };
file "mydb-for-website1-org";
notify NO;
};

I did notice lack of space on file between file and the filename... the masters line identifies the master by ... well in this case IP address to pull the zone info from. Again, you don't need the db entries... however, you need to be careful about the file argument, make sure it's going to a place where named can write to.. often times, named gets put into a change root situation... so just keep that in mind. For example, on many Linux systems, you might use "slave/mydb-for-website1-org" where that path is relative to the change root for bind which might be at /var/lib/named (again, just an example... every system can be different... you just need to make sure the slave file is somewhere writable by the slave named process owner id.
This User Gave Thanks to cjcox For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Network Manager not setting correct DNS servers

Since a few weeks i use Ubuntu 16 on my laptop: # uname -a Linux xxxx 4.8.0-52-generic #55~16.04.1-Ubuntu SMP Fri Apr 28 14:36:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Because i want to use a custom name server i set the properties in the "Edit Connections" dialogue to the following: ... (2 Replies)
Discussion started by: bakunin
2 Replies

2. IP Networking

DNS question about initial Master/Slave setup

Hey everyone. I'm creating a DNS master/slave server set up. I have the configurations all done I believe, the master has the required zone file, and the named.conf file has the allow transfer and allow query stuff set. The slave has it's own configs set. My question is that when initially... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

3. UNIX for Dummies Questions & Answers

Help me setting up dns and understanding it.

Hi I need to set up a dns server for Oracle 11g rac setup. I got some files (copied from friend) named.conf and related files in /var/named , i was told that this would work fine. But i am getting some issues. I am attaching the files here. The problem is dig... (1 Reply)
Discussion started by: ankurk
1 Replies

4. Red Hat

DHCP & DNS - Clients get IP but don't register in DNS

I am trying to setup a CentOS 6.2 server that will be doing 3 things DHCP, DNS & Samba for a very small office (2 users). The idea being this will replace a very old Win2k server. The users are all windows based clients so only the server will be Linux based. I've installed CentOS 6.2 with... (4 Replies)
Discussion started by: FireBIade
4 Replies

5. Red Hat

dhcp not setting dns and changing to garbage

I have 2 problems. Dhcp is not setting dns and after I manually set my dns it changes to garbage. I literally just used command to set dns which is a good copy of resolv.conf: sudo cp /home/bob/Desktop/scripts_9-12-2011/resolv.conf /etc/resolv.confHere is a copy of my resolv.conf. #... (5 Replies)
Discussion started by: cokedude
5 Replies

6. IP Networking

DNS does all slave Name Server must be in the zone Resource Record file?

Hy guys, I've a problem configuring my Name Server (using bind 9) which is I'ts always necessary to put all slave Name Server for a zone in the zone resource record file or db (as you prefer)? I've this scenario: A - my domain which is son of some TLD and I delegated into two new domains B... (1 Reply)
Discussion started by: pharaoh
1 Replies

7. UNIX for Dummies Questions & Answers

[Help] Setup slave dns server

Hi all. I need to configure a secondary dns server to get the zones that are in the primary server. How can I do this? It's possible to make to sync automatically? What configuration I ahve to do? And in which files? Thanks in advance. If anyone could give me examples or a tutorial, that... (4 Replies)
Discussion started by: kouh
4 Replies

8. Solaris

Setting up local DNS Server

Hi , Could some one please share some docs or steps to set up solaris box as a local DNS . Thx (1 Reply)
Discussion started by: skamal4u
1 Replies

9. Linux

setting primary dns

Hi, I am running Fedora 7. I seem to remember there being a command to determine the primary dns. Can anyone help me find out what it is? Thanks! (2 Replies)
Discussion started by: user23
2 Replies

10. UNIX for Dummies Questions & Answers

Setting Up Dns Server In Bsd

I just learning BSD So how would you go about setting up a DNS server please explain like A,B,C I am a new very new UNIX users so any help would be great thanks :( :confused: (1 Reply)
Discussion started by: BSD_NEWUSER
1 Replies
Login or Register to Ask a Question