S
S
Serufim2016-06-28 18:58:49
Domain Name System
Serufim, 2016-06-28 18:58:49

How to set up dns on vds?

Good day to all, I ran into such a problem:
I have a vds server on some Canadian hosting, a site on beget hosting and there is also a domain from a site on yukoz.
Vds is configured and working, I need that when typing a domain name, I would be sent to vds and not to the site. How can I do it???

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Bukharev, 2016-06-28
@evgenybuckharev

sent to vds and not to the site ...
Explain what it means to send to vds?

A
akelsey, 2016-06-29
@akelsey

It is quite difficult to understand your infrastructure without further clarification, but you can try, suppose:
1. You bought the domain name mydomain.ru, bought from a provider who provided you with DNS zone management (primary and secondary).
Then you need to make an entry (in the bind syntax):
"@ 86400 IN A IPVDS"
2. For a site hosted by beget, you need to make an entry
"www 86400 IN A IPBEGET"
3. For a site on yukoz
"mysite 86400 IN A IPUCOS"
then on
mydomain .ru will respond to VDS
www.mydomain.ru the BEGET site will respond (there you need to configure the apache virtual server to this name, but this is a separate question)
mysite.mydomain.ru - the UCOS site will respond (it will also require setting up a virtual server),
but in this situation, if BEGET / UCOS is already running, then it's easier to record
vds 86500 IN A MyVDSIP
and connect to vds at vds.mydomain.ru .. .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question