AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HL1 Servers (HLDS) (https://forums.alliedmods.net/forumdisplay.php?f=131)
-   -   mask server ip with domain (https://forums.alliedmods.net/showthread.php?t=320039)

Watermelonnable 12-01-2019 20:44

mask server ip with domain
 
is there a way to mask a server ip with a domain? I mean, instead of giving an ip address give the players something like server1.mydomain.com??

ddhoward 12-01-2019 22:15

Re: mask server ip with domain
 
No. The domain name won't work unless you resolve lookups against it. That is how DNS works; this limitation has nothing to do with HLDS.

You can totally use a domain name to connect, and give that out, but it's impossible to "mask" your IP.

Watermelonnable 12-01-2019 23:02

Re: mask server ip with domain
 
Quote:

Originally Posted by ddhoward (Post 2675306)
No. The domain name won't work unless you resolve lookups against it. That is how DNS works; this limitation has nothing to do with HLDS.

You can totally use a domain name to connect, and give that out, but it's impossible to "mask" your IP.

Sorry, that was a bad use of words by my side. I just want to give the domain as a ip address so users can connect easier. Not mask. Can you give me some orientation to achieve this?

ddhoward 12-02-2019 00:46

Re: mask server ip with domain
 
Purchase a domain name, then point that domain to the IP address of your server.

How you go about this depends on a lot of things, particularly the company that you choose to purchase your domain name from.

Watermelonnable 12-03-2019 09:04

Re: mask server ip with domain
 
Quote:

Originally Posted by ddhoward (Post 2675319)
Purchase a domain name, then point that domain to the IP address of your server.

How you go about this depends on a lot of things, particularly the company that you choose to purchase your domain name from.

But in the end it will be something like "sub.mydomain.com:port"? or is there a way to configure it so it has the port implicit?

Also, once the domain is resolved in the game, it will save it as an IP address, right? or does it updates if I change the domain server?

gabuch2 12-03-2019 13:15

Re: mask server ip with domain
 
A records pointing to your game server IP will automatically connect to the 27015 port if not specified, like with any IP.

Code:

] connect hldm.domain.org
will connect to hldm.domain.org:27015

There's no way to use a subdomain to point to another port, unless you do an overly complicated process of getting another ip, create an A record to that IP, then tunnel the data to the 27015 port to the desired port.

Watermelonnable 12-03-2019 21:14

Re: mask server ip with domain
 
Quote:

Originally Posted by Gabe Iggy (Post 2675531)
A records pointing to your game server IP will automatically connect to the 27015 port if not specified, like with any IP.

Code:

] connect hldm.domain.org
will connect to hldm.domain.org:27015

There's no way to use a subdomain to point to another port, unless you do an overly complicated process of getting another ip, create an A record to that IP, then tunnel the data to the 27015 port to the desired port.

Thank you. This was helpful :)


All times are GMT -4. The time now is 06:10.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.