Jump to content

ok, i have the domain "lynnden.xyz" i have a couple boxes running a couple different things that i'd like to access from the web.

i have an ubuntu box running an email service and some administration software for said email service.

i have a fedora box that i'm trying to get plex to run on (off topic but it's not working). and I'd like to be able to access the administrative panel while not being on the same local network.

because my router uses NAT every box shares the same public ipv4 address and the router works things out by local ip addresses.

i'd like to have my dns record to have a couple designations as follows

 

admin.lynnden.xyz for the admin of the email server

fedora.lynnden.xyz for admin of the fedora box

mail.lynnden.xyz to access the email server

 

how would i go about this?

the ip's are 192.168.0.252 for the ubuntu box and 192.186.0.47 for the fedora box.

Link to comment
https://linustechtips.com/topic/768579-concerning-dns-records/
Share on other sites

Link to post
Share on other sites

19 minutes ago, whiteGloveReview said:

ok, i have the domain "lynnden.xyz" i have a couple boxes running a couple different things that i'd like to access from the web.

i have an ubuntu box running an email service and some administration software for said email service.

i have a fedora box that i'm trying to get plex to run on (off topic but it's not working). and I'd like to be able to access the administrative panel while not being on the same local network.

because my router uses NAT every box shares the same public ipv4 address and the router works things out by local ip addresses.

i'd like to have my dns record to have a couple designations as follows

 

admin.lynnden.xyz for the admin of the email server

fedora.lynnden.xyz for admin of the fedora box

mail.lynnden.xyz to access the email server

 

how would i go about this?

the ip's are 192.168.0.252 for the ubuntu box and 192.186.0.47 for the fedora box.

easy first port forward them

(now you have your external ip with the the port)

to get go to a domain website like www.godaddy.com buy the names and register the name with the external ip with the port and done

Link to comment
https://linustechtips.com/topic/768579-concerning-dns-records/#findComment-9703370
Share on other sites

Link to post
Share on other sites

You need to set up a reverse proxy to direct each subdomain to correct local machine and port.

HAL9000: AMD Ryzen 9 3900x | Noctua NH-D15 chromax.black | 32 GB Corsair Vengeance LPX DDR4 3200 MHz | Asus X570 Prime Pro | ASUS TUF 3080 Ti | 1 TB Samsung 970 Evo Plus + 1 TB Crucial MX500 + 6 TB WD RED | Corsair HX1000 | be quiet Pure Base 500DX | LG 34UM95 34" 3440x1440

Hydrogen server: Intel i3-10100 | Cryorig M9i | 64 GB Crucial Ballistix 3200MHz DDR4 | Gigabyte B560M-DS3H | 33 TB of storage | Fractal Design Define R5 | unRAID 6.9.2

Carbon server: Fujitsu PRIMERGY RX100 S7p | Xeon E3-1230 v2 | 16 GB DDR3 ECC | 60 GB Corsair SSD & 250 GB Samsung 850 Pro | Intel i340-T4 | ESXi 6.5.1

Big Mac cluster: 2x Raspberry Pi 2 Model B | 1x Raspberry Pi 3 Model B | 2x Raspberry Pi 3 Model B+

Link to comment
https://linustechtips.com/topic/768579-concerning-dns-records/#findComment-9703558
Share on other sites

Link to post
Share on other sites

1 hour ago, Ethocreeper said:

easy first port forward them

(now you have your external ip with the the port)

to get go to a domain website like www.godaddy.com buy the names and register the name with the external ip with the port and done

That isn't quite a accurate as A records do not pay attention to a port number.  If you simply put mydomain.com in, that points to a WAN IP address. The browser protocol (http,ftp,https) is what determines the port number. For this you could map port 80 to accept for Plex but it wouldn't solve your other issues. 

 

@whiteGloveReview

For mail, what specifically did you want? Was there a webmail client or simply just the appropriate POP/IMAP/Exchange ports to open? If so, you can make an a record for mail. and point it to the same address or you could use the same domain name without the sub domain for mail.

 

Were you happy to simply be able to use mydomain.com:32400 for plex and so on?

Link to comment
https://linustechtips.com/topic/768579-concerning-dns-records/#findComment-9703650
Share on other sites

Link to post
Share on other sites

What you have to remember is that DNS does not handle ports.. It just points a name to an IP.

Since all your servers are behind the same IP, you need to separate between them using port numbers. You do this on your router using port forwarding.

 

What you can do is configure your port forwarding like this:

 

Port forward 1:

Name - Ubuntu management

Protocol - TCP

External port - 9001

Internal port - 443

Destination IP - 192.168.0.252

 

Port forward 1:

Name - Fedora management

Protocol - TCP

External port - 9002

Internal port - 443

Destination IP - 192.186.0.47

 

 

This will make it so that:

lynnden.xyz :9001

will go to the Ubuntu server (just a regular HTTPS request)

 

lynnden.xyz:9002

will go to the Fedora server (just a regular HTTPS request)

 

I can't think of any way to make the DNS separate between your servers since they are all using the same IP.

Link to comment
https://linustechtips.com/topic/768579-concerning-dns-records/#findComment-9703725
Share on other sites

Link to post
Share on other sites

DNS won't solve your problem. LAwLs fix is an easy one to make and you won't have to set up a system, just some simple port forwarding.

 

But if you really want to set up subdomains you'll have to have an HTTP server to do the redirection of the requests since DNS don't meddle with port numbers.

Link to comment
https://linustechtips.com/topic/768579-concerning-dns-records/#findComment-9703873
Share on other sites

Link to post
Share on other sites

In addition to what has been said above, once a Plex server is properly set up and logged into a Plex account (even a free one) then all functions of that server can be managed from anywhere via plex.tv/web - all that's required is that the port forward to the plex server is set up properly.

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
https://linustechtips.com/topic/768579-concerning-dns-records/#findComment-9705208
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×