LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-02-2013, 09:07 AM   #1
desneo
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Rep: Reputation: Disabled
Special configuration DNSMasq?


Hello,

I'm trying to find a solution to my problem. I have a domain "mydomain.com" and I have a subdomain "sub.mydomain.com"
Domain and Subdomain have diferents Public IP associated.
The IP of my subdomain have a server with some VMWares.
I would like to associate this domain to specific vmware (ex: 192.168.1.80)

I want to resolve this steps. Is it possible with DNSMasq without Apache?:
sub.mydomain.com --> 84.291.38.212 --> 192.168.1.1 --> 192.168.1.80

and when you write http://sub.mydomain.com you can see the application located in 192.168.1.80

How can I do it?
In DNSMasq I have this configuration
address=/sub.mydomain.com/192.168.1.80
but it only works from local network (Ping resolve: sub.mydomain.com --> 192.168.1.80

Thanks,
 
Old 08-05-2013, 01:47 PM   #2
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
Long answer: no. One name lookup, gives you one IP. Sending data to sub.mydomain.com will find an IP address, (say 84.291.38.212) and send data there. That's the extent of dns.

At that point however, the server at 84.291.38.212 could port forward the data to another server at 192.168.1.1. And 192.168.1.1 could also port forward to 192.168.1.80. Port forwarding is an iptables thing.

So your question: Is it possible (to do this) with DNSMasq without Apache?

Answer 1: Just using dnsmask, and nothing else, no.
Answer 2: if you use iptables to port forward, yes.
Answer 3: you could use nginx/apache to reverse proxy from 84.291.38.212 to 192.168.1.80.
 
Old 08-06-2013, 03:00 AM   #3
desneo
LQ Newbie
 
Registered: Aug 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for all! I try to use nginx to reverse proxy.
 
  


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
block special and character special files s_shenbaga Linux - Newbie 4 06-23-2015 03:16 AM
Squid: special configuration for remote Squid server hamish Linux - Software 0 12-06-2005 04:58 PM
ask for dnsmasq configuration example(really works on your system) pundun Linux - Networking 0 11-23-2005 10:30 PM
Special DNS Server Configuration sarmadys Linux - Networking 3 08-08-2005 04:40 PM
Special installation Configuration dereko Linux - General 2 05-20-2004 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:48 AM.

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
Open Source Consulting | Domain Registration