How to use DNS in Ubuntu to access localhost remotely and online

0

I have a server with ubuntu in which I have several pages mounted, I can access them locally or through the internet with the public ip, but I can not do it in the 2 forms simultaneously, I would like to know if using DNS this can be done resolve and can access my page either locally or remotely, and if that is how the configuration would be, thank you.

    
asked by Victor Zaid Garcia 27.07.2018 в 20:40
source

1 answer

0

Your question is not very clear.

Are your pages on different hosts or on the same?

What do you mean by 'accessing them locally'? Can not enter with the IP of your site? Or Do you want to enter the site through 'localhost'?

A DNS server simply translates an IP address into a domain name. It does not mean that with a domain you will be able to enter a site, if you do not have access to it from an IP you will not have it from a domain.

References:

answered by 15.08.2018 в 19:24