Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have this Linux server in my LAN, which can be reached from anywhere using dyndns services. So when I am out, I enter myserver.dyndns.org to get to it. When I am at home, I could do that too, but since the computer is in the same LAN, it's faster to use the internal address myserver.fritz.box.

But I ssh to the server using different profile bookmarks, I have the mail program on my laptop set up to use the external dyndns address to IMAP to it, and I have a cacert certificate tied to myserver.dyndns.org - there are many cases to use the external address, even when I am at home.

So I am wondering, if I could route my connections to myserver.dyndns.org from inside directly to myserver.fritz.box, without going through external DNS servers. I use an AVM Fritzbox as routing device with Firmware: FRITZ!OS 05.22, so maybe I can tell that Fritzbox to do that. I have no idea how to to it though - the docs do not help me there.

Another thought was to use the /etc/hosts file on my laptop, to route to that IP address but this would not work when I am not at home.

So how can I do it?

share|improve this question
    
But why you want to avoid external DNS servers ? –  Alex Oct 28 '12 at 8:41
    
speed, privacy, matter of principle… –  mcnesium Oct 28 '12 at 14:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.