Local dns
-
Hi all,
I have a domain name let's call it domain.org . I would like to set up my home network so that if someone goes to minecraft.domain.org they would get redirected to my mincraft! Server. II would also line to have mediaserver.domain.org to redirect to my media server. Also can I have separate servers on the same machine be assigned different sub domains?Sorry in advance for being such a noon. I don't even know if I'm using the right terms.
Thanks in advance for any help. -
So when you look at a machines information, for example windows I use local.lan as my network
C:>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : i5-w7
Primary Dns Suffix . . . . . . . : local.lan
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : local.lanSo I can resolve stuff via their names in local.lan
C:>ping pfsense.local.lan
Pinging pfsense.local.lan [192.168.9.253] with 32 bytes of data:
Reply from 192.168.9.253: bytes=32 time<1ms TTL=64
Reply from 192.168.9.253: bytes=32 time<1ms TTL=64
Reply from 192.168.9.253: bytes=32 time=1ms TTL=64
Reply from 192.168.9.253: bytes=32 time<1ms TTL=64Ping statistics for 192.168.9.253:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0msC:>ping storage.local.lan
Pinging storage.local.lan [192.168.9.8] with 32 bytes of data:
Reply from 192.168.9.8: bytes=32 time=5ms TTL=128
Reply from 192.168.9.8: bytes=32 time<1ms TTL=128
Reply from 192.168.9.8: bytes=32 time<1ms TTL=128
Reply from 192.168.9.8: bytes=32 time=1ms TTL=128Ping statistics for 192.168.9.8:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 5ms, Average = 1msC:>ping esxi.local.lan
Pinging esxi.local.lan [192.168.9.40] with 32 bytes of data:
Reply from 192.168.9.40: bytes=32 time=1ms TTL=64
Reply from 192.168.9.40: bytes=32 time<1ms TTL=64
Reply from 192.168.9.40: bytes=32 time<1ms TTL=64
Reply from 192.168.9.40: bytes=32 time<1ms TTL=64Ping statistics for 192.168.9.40:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0msC:>
Not sure what you want with subdomains? You want those for what exactly
I would assume your servers like your minecraft etc. are static so easy quickest way is to just use host over rides either in forwarder section if your using that or resolver if using that. See pic for example
-
I want:
server1.mediaserver.cf to be routed to 192.168.1.2
Server2.mediaserver.cf to be routed to 192.168.1.3
Server3.mediaserver.cf to be routed to 192.168.1.4
…
I would also like:
Server4.mediaserver.cf to be routed to 192.168.1.5:7080
Server5.mediaserver.cf to be routed to 192.168.1.5:7081
...
I want this so if I'm not at home I can log into my different servers this way i.e. server1,server2,...
Is this possible?
Ist it clear what I'm wanting to do?
Thanks -
yeah so create those in your over rides like I showed mine. Just create server1, 2, 3, 4 5
Dns has NOTING to do with those 7080 and 7081 ports.. DNS doesn't know what ports are, but sure if you wanted to in the application is it a browser? You could do http://server4.mediaserver.cf:7080 but why not just run those applications on the say 80? Since its the same server you can have more than 1 IP, so use say .5 and .6
-
OK thanks.
I didn't realize those settings affected wan requests. -
Wan?? huh?? You stated LOCAL DNS..
Are you wanting people on the public to resolve these names and get to your public IP.. And then based on name you want to forward that to a different internal IP.. Then you need a reverse proxy – look in the packages.
-
Thanks for pointing me in the right direction.