T
T
this_is_mgmnt2019-12-10 12:27:01
linux
this_is_mgmnt, 2019-12-10 12:27:01

How to setup local dns server on ubuntu?

There is a need to deploy zabbix and a mail server on the same virtual machine in the company's local network. You also need to configure dns on the same virtual machine. How to set up dns so that access to the mailer is at the address, for example, mail.comp.ru, to zabbix - zabbix.comp.ru? In the future, there will also be a couple of sites on the virtual machine, with addresses xxxxx.comp.ru.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nonname, 2019-12-10
@nonname

You put bind9 with a static ip and forwarding to some external server, you give dhcp to all bind9 clients as default dns, you make virtual machines with your services, you make IP on them either static, or just fix some kind of constant in dhcp on mac, you do in bind9 zone comp.ru, in zone A zabbix xxxx records (where xxxx is the IP of the machine with zabbix)

I
iddqda, 2019-12-10
@iddqda

you don’t need to connect dns to the same virtual machine to zabbix mail, etc.,
simply because you will constantly and quite often need to overload this virtual machine with mail and zabbix sites.
and the unavailability of dns is immediately very noticeable to everyone
, but specifically about the question, it’s elementary to set up.
For each IP address, you can hang any number of records like A, AAAA, CNAME, MX, etc.
ps Does someone still do onprem mail in a small (considering one virtual machine for all services) enterprise in 2019?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question