LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using DNS to redirect to another URL with a path (https://www.linuxquestions.org/questions/linux-newbie-8/using-dns-to-redirect-to-another-url-with-a-path-4175590318/)

lq_win 09-28-2016 07:04 AM

Using DNS to redirect to another URL with a path
 
Hello

How to set DNS to redirect to anohter url with a path?
for example:

meetingroom.mydomain.com 10.100.100.5 will be redirected to https://apps.mydomain.com/meetingroom

please help

thanks & regards
Win

dave@burn-it.co.uk 09-28-2016 07:13 AM

You can use your own HOSTS file.
But please make sure that only you are redirected as redirecting other people without their approval is immoral at least and can be illegal.

I certainly would be cross if I found my links to my bank being redirected.

lq_win 09-28-2016 07:14 AM

yes for sure.. I do this into my own server
can you give me an example?

dave@burn-it.co.uk 09-28-2016 08:34 AM

No.
If you do not undrstand it and how it works you definitely should not be changeing it - well I am not going to tell everyone reading this how to do it.

dijetlo 09-28-2016 09:04 AM

Not with a path. DNS returns IP addresses and server data. Mapping an IP address to an internal path is handled on the node level (with some kind of endpoint server)

c0wb0y 09-28-2016 02:44 PM

Google Apache redirect/rewrite rules.

dijetlo 09-29-2016 09:02 AM

Eh, a flask or django dev server with a @route decorator would be enough to meet the requirement.


All times are GMT -5. The time now is 01:21 AM.