Dynamic DNS for two machines on the same network?

9,738

Sure it's possible. It's just redundant. And I can't be certain that a single Dynamic DNS provider would support it (you might have to use two, like noip.org and dyndns.org (I think they are organizationally different). What you end up with is two names pointing to the same IP. Since your router can only forward one port to one IP, it won't matter - if you forward RDP to one name and VNC to another, for example, BOTH names will respond to both requests, but only the PCs where the ports are forwarded to will answer.

Put another way, the Dynamic DNS clients are JUST pointing an IP to a name and don't care how your router is configured or what services are available on your systems.

Share:
9,738

Related videos on Youtube

Naftuli Kay
Author by

Naftuli Kay

Updated on September 18, 2022

Comments

  • Naftuli Kay
    Naftuli Kay almost 2 years

    Here's the deal: I have multiple machines on my network which I'd like to make externally accessible via a dynamic DNS service. In the past, I've simply made one machine available via router-based dynamic DNS support and port-forwarding. Is there a way to run a daemon on each machine rather than on the router and effectively have one machine accessible via a.mydynamicdns.com and the other via b.mydynamicdns.com?

    The reason I ask is because it would seem that this would be impossible, due to the fact that both machines share the same public-facing IP address (which is dynamic). Is this possible at all? If not, is there a way to accomplish what I'm talking about?

  • Naftuli Kay
    Naftuli Kay about 13 years
    But this pretty much defeats the whole purpose of having two DNS names, as they point to the same IP. I'd like two separate DNS names, with port 80 going exclusively to one machine per DNS name. Is there a way to do that?
  • user1984103
    user1984103 about 13 years
    @TKKocheran Not without two public IPs. You can do some interesting stuff on your router side, such as forward 80 to computerA:80 and 81 to computerB:80, but ports from a single public IP can only be assigned once. If you want to serve different HTTP websites for different domains, then look into VirtualHosts, but that only works for websites.
  • Naftuli Kay
    Naftuli Kay about 13 years
    This wasn't specifically an Apache question, more of a general question, as I'd like to provide other services too, such as SSH, FTP, etc.
  • Jontas
    Jontas about 13 years
    In order to make it work with "any" service a reverse proxy is what I would use. (see for instance wiki.squid-cache.org/ConfigExamples/Reverse/VirtualHosting for squid documentation and examples)
  • Naftuli Kay
    Naftuli Kay about 13 years
    Suppose I'm running a Linux router. Is there a way to redirect to the proper computer based on requested domain name, like an Apache VHost?