Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Sep 27, 2013 3:10 am 
Offline

Joined: Fri Sep 27, 2013 3:01 am
Posts: 1
Hello,

I am no expert in networking but I setup OpenVPN and thought when I connect with a client, this client would be using the server /etc/hosts file to resolve addresses.

What I want to do is point to an IP with a hostname simply, and figured I should not use bind DNS server for such a simple thing.

But, while pinging from the server (connected via ssh) resolves the host and its subdomains correctly, and using lynx also via ssh shows the correct sites, doing so via VPN doesn't resolve the address.

I checked /etc/host.conf and it has the correct order, or so I think: hosts,bind. I don't know what is going on and would like some guidance if possible.

Thank you.

EDIT: Better explanation of what I am trying to do:

I have a DNS server configured at home, which will take say

mvn.loc and redirect to an nginx application.
app1.mvn.loc to another
app2.mvn.loc to another

When I am using a computer I could just edit my /etc/hosts file and setup the ips as:

mvn.loc 80.123.123.123
app1.mvn.loc 80.123.123.123
app2.mvn.loc 80.123.123.123

So when I input mvn.loc into the browser I get the correct site.

Or either setup the dns server in my router/pc instead of using a hosts file which would resolve the hostnames the same way.

What I want to do is to access this sites from my phone, where I cannot edit /etc/hosts and cannot setup my home address as a DNS server while using 3G. I figured I could use my newly configured Linode VPN so when I connect, the /etc/hosts file in my linode would be the one resolving the addresses.

I don't know if this is clearer somehow. Sorry about that, and thanks for your interest.


Last edited by mvn on Fri Sep 27, 2013 4:00 am, edited 3 times in total.

Top
   
PostPosted: Fri Sep 27, 2013 3:22 am 
Offline
Senior Member
User avatar

Joined: Thu Feb 16, 2012 9:01 pm
Posts: 52
You'll need to explain a lot clearer what you're trying to do and why?


Top
   
PostPosted: Fri Sep 27, 2013 12:22 pm 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
mvn wrote:
I figured I could use my newly configured Linode VPN so when I connect, the /etc/hosts file in my linode would be the one resolving the addresses.

OpenVPN by itself won't do anything about name resolution - you need to set up a nameserver on the linode if you want this to work the way you describe.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group