1
1
I have a few different servers at home. Some are exposed to the outside, and I have setup a domain for my home stuff. Let's say this is myhome.mydomain.com
. I have also setup a wildcard DNS *.myhome.mydomain.com
which points to the same server (both are CNAME records to my routers built in DDNS function).
This works perfectly from the outside. But from the inside something goes haywire. I guess it has something to do with routing from the inside to the outside to the inside... So as I see it my options are to either figure out why the routing is broken, or setup an internal DNS-server to point myhome.mydomain.com
to my internal IP for this server, and forward the rest to my ISP's DNS or Googles or OpenDNS or something.
How do I setup this internal DNS server? I also want it to respond to the wildcard because my plan is to have an nginx proxy in front of all the services I wish to expose to the outside eventually.
On which os do you want to setup the DNS server? – Silvio Massina – 2015-06-16T08:58:07.060
Are you referring to resolving internal names (i.e., into private, LAN addresses) or public names corresponding to routable IP addresses? Normally, from inside the LAN, it is best to use private addresses (and private names) so as to avoid hairpinning). – MariusMatutiae – 2015-06-16T08:58:29.213
I have a linux box I want to run the dns-server on. I want to resolve
myhome.domain.com
to a LAN addres (192.168.1.5
) when on the inside, but to my home public ip (80.2.3.4
) when on the outside. – Christian Wattengård – 2015-06-16T10:16:16.043