On the server lists, domains are resolved to IPs. Is there a way to change this behavior serverside, so that clients have to resolve the domain to an IP every time, in case of IP changes?
What I mean is, if I'm hosting from garry.swag.com, with an IP of 2.55.2.55.2, then players will only see the 2.55.2.55.2, not the garry.swag.com, so if garry.swag.com stops pointing to 2.55.2.55.2, and instead to 3.55.3.55.3, the players will not be updated on this change, and think the server just died, and didn't move. How would I make them see only garry.swag.com, so that if I change where that points, they never know, and will keep connecting?
[QUOTE=Ghost_Sailor;44628095]On the server lists, domains are resolved to IPs. Is there a way to change this behavior serverside, so that clients have to resolve the domain to an IP every time, in case of IP changes?
What I mean is, if I'm hosting from garry.swag.com, with an IP of 2.55.2.55.2, then players will only see the 2.55.2.55.2, not the garry.swag.com, so if garry.swag.com stops pointing to 2.55.2.55.2, and instead to 3.55.3.55.3, the players will not be updated on this change, and think the server just died, and didn't move. How would I make them see only garry.swag.com, so that if I change where that points, they never know, and will keep connecting?[/QUOTE]
First of all, your IPs look funny as it has 5 parts instead of 4. As for your problem, no, this is not possible as far as I know. What you could do, if you decide to change IPs, keep the old IP running while the new IP is up. Use the old IP as a redirect server ("This server has moved, automatically connecting in <countdown>")
You can add an A record entry to DNS and change it accordingly. Of course it won't propagate to everyone instantly, but sounds like something you could use.
Refer to: [url]http://facepunch.com/showthread.php?t=1359894[/url]
This isn't exactly 'DNS' but from what I recall, it only works for TF2 at the moment; it would be great to have this on Garry's Mod. Solves the problem with IP changes.
Github Request: [url]https://github.com/Facepunch/garrysmod-requests/issues/144[/url]
Just to what I said earlier, obviously you can use a domain name on your website, but as soon as people FAVORITE it, it'll be changed into an IP. If you just change the A record in your DNS, people who join your DNS will obviously end up in the right server, but people who favorited the server or people who's DNS hasn't updated yet will join the old server, where they see a message saying the server has moved. To keep most people in, give them the ability to click a "Connect" button, give them the ability to copy the IP to their clipboard but also show it very clearly.
[QUOTE=Cyberuben;44630158]First of all, your IPs look funny as it has 5 parts instead of 4. As for your problem, no, this is not possible as far as I know. What you could do, if you decide to change IPs, keep the old IP running while the new IP is up. Use the old IP as a redirect server ("This server has moved, automatically connecting in <countdown>")[/QUOTE]
They have 5 because I was doing that late at night, and I've been doing IPv6 on a 5 part IP box.
Generally, the reason I change IPs is because I no longer have access to the old IP, or will not in a while, so this isn't really viable.
[QUOTE=Wyozi;44630457]You can add an A record entry to DNS and change it accordingly. Of course it won't propagate to everyone instantly, but sounds like something you could use.[/QUOTE]
Every server on the server list automatically resolves domains to IP, and then only displays/uses the IP, so this would only help people connecting with the IP already known.
[QUOTE=Abdul;44631014]Refer to: [url]http://facepunch.com/showthread.php?t=1359894[/url]
This isn't exactly 'DNS' but from what I recall, it only works for TF2 at the moment; it would be great to have this on Garry's Mod. Solves the problem with IP changes.
Github Request: [url]https://github.com/Facepunch/garrysmod-requests/issues/144[/url][/QUOTE]
I couldn't quite make out how that worked, but it seems like it's exactly what I was looking for.
[QUOTE=Ghost_Sailor;44636679]
I couldn't quite make out how that worked, but it seems like it's exactly what I was looking for.[/QUOTE]
Basically what it's doing is:
Your server gets a cool special ID from Steam/Valve
Valve has a copy of your favorites on it's cloud, when your server changes IP, this gets updated
Valve sends out this change to everyone who has the server favorited, your favorites get updated
You never notice the server changed IPs
Sorry, you need to Log In to post a reply to this thread.