is it possible to have 2 domains go to the same IP? is it possible to have 2 ...

Topic: is it possible to have 2 domains go to the same IP?

Post is it possible to have 2 domains go to the same IP?
by scottyannitell on 2017年11月23日

Dear Dynu.com

I have a home network where I have a couple of servers on an ip4 network (virtual machines actually). They are both on a bridged network so they look like other hardware machines on the network. I was wondering if it would be possible to have a separate domain for each one and how would I go about doing that? Or is that not possible. I'm on a regular cable modem based internet connection that has a dynamic ip. Could it be possible to assign two domains to the same external ip and then somehow listen for a different port than 80 and 443 for the second internal address? I've never done this sort of thing before. Thanks for helping.
Scott

Reply with quote | Report
Post Re: is it possible to have 2 domains go to the same IP?
by fotis on 2017年11月25日

I'm on a similar situation and I'd like to ask the same thing. I have my example.com domain managed by dynu since I'm on a dynamic IP, and I have 2 hosts serving different things (web, app, blog)

like

pi1.example.com for www
p2.example.com for webapps

should these be added as CNAMEs or A records?

Reply with quote | Report
Post Re: Re: is it possible to have 2 domains go to the same IP?
by timothytw on 2017年11月25日

fotis wrote:I'm on a similar situation and I'd like to ask the same thing. I have my example.com domain managed by dynu since I'm on a dynamic IP, and I have 2 hosts serving different things (web, app, blog)

like

pi1.example.com for www
p2.example.com for webapps

should these be added as CNAMEs or A records?
They should be added as an A record. In fact, if they are pointing to the primary IP address example.com and you have 'Wildcard Alias' option turned on, there is no need to set any additional records.

Reply with quote | Report
2024年12月19日 4:49
Loading...