LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-13-2013, 02:33 PM   #1
vistal
LQ Newbie
 
Registered: May 2011
Posts: 25

Rep: Reputation: 0
dns resolves from external networks, but not from internal network


Hello,
I have been playing with apache2 and doing some things like setting up a personal wiki/photo gallery etc.

I have a dynamic IP, so I have set up an account with www.no-ip.org so that I run their software on my server, and it updates them whenever the external ip address changes. (at least that is my understanding, i'm still a newb)

Example:
myname.no-ip.org
resolves to
1.2.3.4 (which would be my networks external IP), and assuming the request is on port 80, it forwards to my server and loads the index.html).

This works perfectly when I am outside my home network. When I am trying to access my page through the myname.no-ip.org from my internal network, however, it is hit and miss. Sometimes it works, other times it gives me a 404.

I believe the correct solution is to set up an internal DNS server that will resolve to my servers internal IP address when the request comes from within the network.

Is this the right approach? Any documentation that could be provided as to how to do this for a newbie would be greatly appreciated.

If this isn't the right approach, please provide guidance as to how I should be trying to resolve the issue.

Thank you in advance for your help, and if you need further information feel free to ask.

Last edited by vistal; 01-13-2013 at 02:35 PM. Reason: I accidentally a word
 
Old 01-13-2013, 03:49 PM   #2
vistal
LQ Newbie
 
Registered: May 2011
Posts: 25

Original Poster
Rep: Reputation: 0
Second thoughts:
After working on the problem, i wonder if I'm doing something wrong in /etc/hosts. I'm currently doing some reading about it, could this being set up incorrectly cause this type of thing?
 
Old 01-13-2013, 08:22 PM   #3
vistal
LQ Newbie
 
Registered: May 2011
Posts: 25

Original Poster
Rep: Reputation: 0
After further research, I think i figured out the primary issue.

My ISPs DNS server had not updated with the name I was using. nslookup to my ISPs DNS did not resolve, but nslookup using googles DNS did resolve. I have therefore changed the default DNS server on my router and the issue seems mostly fixed.
 
  


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
[SOLVED] External ip resolves to internal name rrije Linux - Software 3 09-28-2011 05:20 PM
Having an internal DNS and an external DNS (for VPN use) DaveQB Linux - Laptop and Netbook 3 09-05-2011 12:17 AM
Internal and External DNS karnac01 Linux - Server 1 05-19-2011 10:36 AM
dns with internal and external views settings cool47 Linux - Networking 1 05-25-2008 04:20 PM
A quick question about ports & internal/external networks for webservers... jacksonscottsly Linux - Networking 2 07-10-2005 09:35 PM

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

All times are GMT -5. The time now is 12:45 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