How to redirect hostname to certain IP/server
-
i have internet cybercafe and setup movie server on it.
for example, 192.168.1.11 is for my movie server ip.client from pc1 will browse to www.movieserver.com to have a view.
question is, how to redirect www.movieserver.com to ip 192.168.1.11?point is i want to hide server ip from showing up on browser address bar.
;)
-
what are you using for dns on your network - pfsense? If so just create a host override for that fqdn and point it to whatever IP you want.
But if your trying to hide IPs from users - they must be really stupid users if you think they can not find IP of www.somedomain.tld
-
i just learned from google. I need to configure DNS forwarder.
thanks for ur kind reply. if i stuck somewhere i will get back here.i dont think they are too stupid. But im do this for some reasons.
anyway ..thanks -
The dns forwarder is on by default I do believe in pfsense. So nothing to configure other than the override there
example from my home network, but you can put in anything you want there, I could have say www.google.com point to one of my private addresses if I wanted to.
-
thanks a lot and i really appreciate ur reply ..
mayb i can try put host, domain and ip as below
HOST DOMAIN IP
www .movie-server.com 192.168.1.11 -
sure just like that - see I just pointed it to my .100 box
-
If you want to do it quicker/for debugging purposes one could add lines like these to the Advanced config of the DNS forwarder (dnsmasq):
address=/www.google.se/192.168.0.1/ address=/ftp.debian.org/192.168.0.2/ address=/ads.double-click.net/127.0.0.1/ ...
It's easier to maintain when doing tests but not that organized.
-
thanks a lot and i really appreciate ur reply ..
mayb i can try put host, domain and ip as below
HOST DOMAIN IP
www .movie-server.com 192.168.1.11I am pretty sure for domain you would put "movie-server.com" without the leading "."