bind dns server

GCI_SUPPORT
GCI_SUPPORT used Ask the Experts™
on
i have installed bind and have configure it out for my first domain
but my problem is i have 4 other domain but there are identical to the first  one

there is a way to configure it faster
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2017

Commented:
Do you mean you have four subdomains?
mydomain.com
subdomain1.mydomain.com
subdomain2.mydomain.com
etc?

Within the mydomain.com you would do the following if the subdomains are hosted elsewhere, you would delegate the subdomains:
subdomain1 IN NS nameserver_responsible_for_this refer back to itself
subdomain2 IN NS nameserver_responsible_for_thisone
etc.

Within the bind configuration, you would
zone "mydomain.com"
zone "subdomain1.mydomain.com"
etc.
Distinguished Expert 2017

Commented:
If you are talking about making the domain appear/ respond differently depending on the source of the request, look at using viewes.
The view will determine which response will be sent to the client

http://www.zytrax.com/books/dns/ch7/view.html 

Author

Commented:
i got domain

domain1.com
domain2.com
domain3.com

Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Author

Commented:
i will explain myself better

let say that i create a new (A) record for my domain1

newalias.domain1.com

but it need to work with domain2 and domain3

there is a way to do it without addind the a record to each domain

Author

Commented:
can it be a foward or a stub zone ?
what is the difference between this 2
Distinguished Expert 2017
Commented:
No, you have to add the record to each one.

You could setup a script (perl) that you would provide the name and it will add the entry to all three hosts files and reload the zones after validating the content.
GCI,

you can point many domain to the same zone file. In this manner when you change
one zone file, all the zone of all the domain are reloaded and change at the same time.

zone "domain1.com" {
        type master;
        file "/etc/bind/zone/domainX.com";
};

zone "domain2.com" {
        type master;
        file "/etc/bind/zone/domainX.com";
};

zone "domain3.com" {
        type master;
        file "/etc/bind/zone/domainX.com";
};

N.B.: remember to increment the serial in the SOA when you change the file and before doing a reload of bind
Distinguished Expert 2017

Commented:
One caveate to the above, you must not use domain1.com. on the left side nor use fully qualified Domain names of the domain on the right unless it has to be that for all.
i.e.
A record such as

a.domain1.com. IN A 10.10.10.10

Will generate errors on domain2.com, domain2.com and domain3.com and will prevent its loading into bind.  These zones will continue to function until the expire time is met.

record IN MX 0 mail.domain1.com.
This will work, but will stop, should something happen to the domain1.com's registration.

IMHO, this is a bad practice. An error where this file is deleted, and you are .....
arnold,

it's obvious that you cannot use the fully qualified name for the "name" that you want "expanded"

for the MX record you can put the following
                      IN      MX          5 mail

note the missing point at the end of mail, and this expand as mail.domain1.com or mail.domain2.com or mail.domain3.com for every domain context

IMHO i don't get your point ... also if you delete /boot/vmlinuz and you are ... ;-)
the only solution that i see for the problem of GCI is what i've posted
and i use this technique from many year and for many internet provider without a single problem ...


Distinguished Expert 2017

Commented:
Have seen occations not related to bind, where people used the same configuration for multiple implementations ran a mock later on when the behavior needed to change, so the change to the common configuration affected all others and were not noticed until later on.

IMHO, a separate domain, should have a separate configuration file.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial