Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Bind: Can you configure multiple domains using the same nameserver Post 303039324 by LinuxGirl on Monday 30th of September 2019 09:20:03 PM
Old 09-30-2019
Bind: Can you configure multiple domains using the same nameserver

Can you add multiple domains to a nameserver without creating a new IP address? I have one IP address on my machine and have configured forward and reverse zone files. Names are resolving fine.

I know I can add another domain to the named.conf file and create new forward and reverse files. what name server IP would i add to the forward file for the second domain and how is it configured in the forward file? Also I have named my reverse file with the reverse of the first 3 octets of my system IP address. I need to change that and what should i use for the reverse zone names?

Code:
named.conf:

zone "myserver.com" {
        type master;
        file "fwd.myserver.com.db";
        allow-update { none; };
};

zone "xx.xx.xxx.in-addr.arpa" {
        type master;
        file "xx.xx.xxx.db";
        allow-update { none; };
};

zone "newdomain.com" {
        type master;
        file "fwd.newdomain.com.db";
        allow-update { none; };
};


/var/named:

cat fwd.myserver.com.db

$TTL 86400
@       IN      SOA     nameserver.myserver.com.     root.myserver.com.      (
                                10030   ;Serial
                                3600    ;Refresh
                                1800    ;Retry
                                604800  ;Expiry
                                86400   ;Minimum TTL
)
; Name Server
@       IN      NS      nameserver.myserver.com.
;A Record Definitions
nameserver	IN	A	xxx.xx.xx.xx
server1        IN      A	xxx.xx.xx.xx
server2      IN	A	xxx.xx.xx.xx


How do I configure the forward zone record for the newdomain? i have used the one system IP address for the name server in the myserver.com domain.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

multiple domains

Hello, I have 3 domains virtually hosted "name based" the first one "domain1.com" has its ServerName entered as domain1.com. this domain will load in a browser by www.domain1.com or simply domain1.com. the next two domains "domain2.com" and "domain3.com" ServerNames are listed as domain2.com and... (2 Replies)
Discussion started by: ericg
2 Replies

2. UNIX for Dummies Questions & Answers

Multiple Domains with BIND

I need help creating multiple domains with one single DNS server.ex: domain1.com and domain2.com on a sigle machine 1.2.3.4 Thx (1 Reply)
Discussion started by: lekan
1 Replies

3. Solaris

Kerberos setup for multiple AD domains

Hi there: I am currently using Kerberos on Solaris 9 to autenticate using windows active directory. It is working fine, however, we just were made aware that instead of one domain, we have multiple. We configured one real with only one domain, however, I need the autentication process to also... (3 Replies)
Discussion started by: ramosl05
3 Replies

4. Solaris

How to Configure DNS bind 9 with Ldap back-end

My environmnet : solaris 10 u 7 sparc To configure DNS bind use Ldap as zone record database, I use bind 9.7.0 and sun directory 5.2 I do follow http://imil.net/docs/Configuring_DNS_zones_with_LDAP.txt and stuck at make install Error from bind log "database: error: unsupported database... (0 Replies)
Discussion started by: tien86
0 Replies

5. UNIX for Advanced & Expert Users

Samba in multiple domains problem

Hello all. I'm hoping you can help with a problem I'm having with Samba. I have Samba running on a Solaris host. All of my users authenticate against the same domain, but some of my users are using PCs on a different domain. When the users whose PCs are on a different domain try to connect to... (0 Replies)
Discussion started by: trouphaz
0 Replies

6. UNIX for Dummies Questions & Answers

Samba with clients in multiple domains

Dear all, I've not a good starting point I'm afraid, but I was forced to deploy Samba under pressure of failing hardware so an urgent migration was done. We didn't get the IBM AIX 6.1 supplied one running at all, so we pulled down the samba.org version 3.4.3. We couldn't get that working as... (0 Replies)
Discussion started by: rbatte1
0 Replies

7. Red Hat

Sendmail - Masquerading multiple domains with different addresses

Hello Friends, I am running Sendmail 8.14 on rhel6. I have one simple question regarding domain masquerading, i would want to masquerade different domains with different addresses. By that what i mean is that lets say i have 3 domains as home.com, example.com, test.com and i would want to... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

8. UNIX for Dummies Questions & Answers

Configure BIND

I know how to manage DNS once it's installed. I can edit named.conf and create zone files. I can sign the zones, use TSIG, etc. How do I take the BIND 9.9 tar ball from All Downloads | Internet Systems Consortium and install it and get it to work? Maybe I am not getting it. Can... (0 Replies)
Discussion started by: brianjb
0 Replies

9. UNIX for Dummies Questions & Answers

Trying to configure DNS using BIND package in Oracle Linux 6.6

Version: Oracle Linux 6.6 I am trying to set up DNS for forward and reverse lookups. I am new to BIND package. I have installed the following packages. bind (includes DNS server, named) bind-utils (utilities for querying DNS servers about host information) bind-libs (libraries... (0 Replies)
Discussion started by: kraljic
0 Replies
nsd-xfer(8)                                                         nsd 3.2.12                                                         nsd-xfer(8)

NAME
nsd-xfer - AXFR client to transfer zones from a name server SYNOPSIS
nsd-xfer [-4] [-6] [-a address[@port]] [-p port] [-s serial] [-T tsiginfo] [-v] -z zone -f file servers DESCRIPTION
Nsd-xfer is program to transfer zones from a name server using AXFR. NSD is a complete implementation of an authoritative DNS nameserver. OPTIONS
-4 Only send to IPv4 addresses. -6 Only send to IPv6 addresses. -a address[@port] Specify the source address (and port) to send from. -f file The file to store the zone in. -p port Specify the port to send to. -s serial Specify the serial of the current zone. The zone is only transferred if the master server has a zone with a greater serial number. -T tsiginfo Use TSIG to verify the zone transfer. The tsiginfo file must contain the TSIG key information. The file is removed upon successful reading of the key. The format of the tsiginfo file is described in the doc/README file (section 3.3). -v Be more verbose. -z zone Specify the zone to receive. servers List of nameservers to try. EXAMPLES
To run this program the standard way type: # nsd-xfer -z foobar.cz -f foobar.cz.zone 1.2.3.4 SEE ALSO
nsd(8), nsdc(8), nsd.conf(5), nsd-checkconf(8), nsd-notify(8), nsd-patch(8), zonec(8) AUTHORS
NSD was written by NLnet Labs and RIPE NCC joint team. Please see CREDITS file in the distribution for further details. NLnet Labs jul 19, 2012 nsd-xfer(8)
All times are GMT -4. The time now is 09:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy