LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2018, 07:20 AM   #1
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Rep: Reputation: Disabled
Resolve


I have a testing webpage ( apache ) running on internal network , which is http://192.168.1.20:8001

I would like to go to http://192.168.1.20:8001 , it will automatically go to a domain eg. http://www.mydomain.com .

I know bind DNS server may resolve ip / domain , but how about the ip with port "192.168.1.20:8001" ?

thanks
 
Old 11-28-2018, 07:37 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,447

Rep: Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904
Apache can redirect requests, using mod_rewrite or perhaps mod_alias.

There are tutorials as well, e.g. https://www.digitalocean.com/communi...ache-and-nginx.
 
Old 11-28-2018, 09:08 AM   #3
catiewong
Member
 
Registered: Aug 2018
Posts: 190

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
Apache can redirect requests, using mod_rewrite or perhaps mod_alias.

There are tutorials as well, e.g. https://www.digitalocean.com/communi...ache-and-nginx.
thanks , except using apache , in linux , could I setup some server to do it such as bind , nginx ?
 
Old 11-28-2018, 09:36 AM   #4
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,447

Rep: Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904Reputation: 904
Quote:
Originally Posted by catiewong View Post
thanks , except using apache , in linux , could I setup some server to do it such as bind , nginx ?
The Digital Ocean tutorial that I reference covers both Apache and Nginx.

I suppose you can use the kernel's netfilter module, through the iptables command, to rewrite destination addresses. Look for documentation on DNAT (destination network address translation) and port-forwarding.

I don't know if a DNS server is the right tool for this task, and I doubt it. Perhaps a proxy server?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How I can resolve the error Postfix? warning: hostname does not resolve to address kanzer Linux - Server 1 03-22-2013 08:56 AM
cachingserver can resolve www.gmail.com, but can not resolve mail.com SeniorGoe Linux - Server 6 06-12-2010 01:10 PM
Unable to resolve ulr. /et/resolve.conf looks fine? TheBrick Linux - Networking 3 02-14-2008 04:13 AM
DNS can't resolve gmail.com but can resolve everything else? TongueTied Linux - Networking 2 01-24-2006 03:39 AM
writing a resolve config file to use an ISP agnel0 Linux - Newbie 1 02-26-2001 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration