View unanswered posts | View active topics
|
Page 1 of 1
|
[ 11 posts ] |
|
| Author |
Message |
|
Xandros
|
Post subject: Support for DNS resolution in servers.cfg Posted: Mon Jul 17, 2006 4:57 am |
|
Joined: Fri Feb 17, 2006 12:25 pm Posts: 76
|
|
Hi,
our live shard has a static IP, but when testing new POL releases
on my home server, I always have to correct the servers.cfg
and enter the current external IP first before booting POL, so that
other people will be able to log onto my shard.
I'm wondering if support for DNS resolution in servers.cfg could be
added, so that POL would resolve that DNS name at least once when booting, and then use the corresponding IP.
I then could use my dyndns address, and wouldn't have to worry
about updating the servers.cfg anymore.
Thanks,
Xandros
|
|
| Top |
|
 |
|
Xandros
|
Post subject: Posted: Mon Jul 17, 2006 5:22 am |
|
Joined: Fri Feb 17, 2006 12:25 pm Posts: 76
|
|
Just to clarify, I'm behind a router, so POL can't detect my external IP.
Xandros
|
|
| Top |
|
 |
|
tekproxy
|
Post subject: Posted: Mon Jul 17, 2006 7:40 am |
|
 |
| Distro Developer |
 |
Joined: Thu Apr 06, 2006 5:11 pm Posts: 350 Location: Nederland, Texas
|
|
Maybe this was taken out but I always used my no-ip address (tribulation.sytes.net) in my servers.cfg. Strange.
|
|
| Top |
|
 |
|
Austin
|
Post subject: Posted: Mon Jul 17, 2006 7:52 am |
|
 |
| POL Developer |
 |
Joined: Wed Jan 25, 2006 2:30 am Posts: 409 Location: San Diego, California
|
|
Yeah.. its supported host names for me as well. The problem seems to be your machine cant resolve them into an IP.
_________________ -Austin
|
|
| Top |
|
 |
|
Xandros
|
Post subject: Posted: Mon Jul 17, 2006 8:19 am |
|
Joined: Fri Feb 17, 2006 12:25 pm Posts: 76
|
Austin wrote: Yeah.. its supported host names for me as well. The problem seems to be your machine cant resolve them into an IP.
Actually I never tried it with a hostname. There doesn't seem to be any
documentation about DNS support, the docs only mention IP numbers.
So I presumed there was no support for it.
Xandros
|
|
| Top |
|
 |
|
Yukiko
|
Post subject: Posted: Mon Jul 17, 2006 1:02 pm |
|
Joined: Thu Feb 02, 2006 1:41 pm Posts: 1127 Location: Southern Central USA
|
|
Always resolved hostname for me too. Xan I think there used to be something a few versions ago mentioning hostname resolution buty I thing that line got removed from either the docs or the servers.cfg file comments somewhere along the way. Either that or it was mentioned on one of the incarnations of the POL forums way back sometime.
_________________ Sincerely,
Yukiko
I know you think you understand what you thought I said but what you heard is not exactly what I meant.
Titus 2:13
|
|
| Top |
|
 |
|
Marilla
|
Post subject: Posted: Mon Jul 17, 2006 1:13 pm |
|
|
|
|
servers.cfg does indeed support entering a hostname. However, the UO client only accepts IP addresses, so the server will resolve them.
I think it works pretty well as-is, but in a NAT scenerio with dynamic IPs, I think there are two things to help;
First, your NAT device should be set to allow redirection back in from internal connections. I think a lot of people behind NAT fall into this trap, because some NAT devices enable redirection by default, and others don't, so it's not something frequently mentioned. Of course, you could otherwise use a separate servers.cfg entry marked only for your LAN to point to the LAN address, so you don't bother the NAT device with it.
Second, when a dynamic address changes, POL makes no effort to update itself. Of course, it has no way of knowing, as has already been mentioned. So it will keep sending the resolved IP address it got on startup to clients; The client will connect to the login server part, but fail to connect to the game server part, because the login server part is still sending it's old information.
I addressed this issue on our test server, which we have behind our DSL on NAT, with an external program that periodically checks for an IP change. When it detects a change, it does the Dynamic DNS update, of course. Since we've been using 096 for our test server for a while, I used packet hooks to address this. The program noted above also connects to our test/096 server to a simple script I made that sets a global property with an array of the bytes of the IP address. I hooked the 'connect' packet from the server to insert that information instead of what it gets from servers.cfg. The hook I have checks first to see if the connect packet being sent out contains the private LAN ip information; if so, it leaves it alone. If not, it alters the info from the global property.
|
|
| Top |
|
 |
|
Shinigami
|
Post subject: Re: Support for DNS resolution in servers.cfg Posted: Wed Jul 19, 2006 3:11 am |
|
 |
| POL Core Developer |
Joined: Mon Jan 30, 2006 9:28 am Posts: 292 Location: Germany, Bavaria
|
Xandros wrote: our live shard has a static IP, but when testing new POL releases on my home server, I always have to correct the servers.cfg and enter the current external IP first before booting POL, so that other people will be able to log onto my shard.
just use something like DynDNS, let it update by your Router and enter this DNS-entry in your servers.cfg - works fine since years...
Shinigami
|
|
| Top |
|
 |
|
OldnGrey
|
Post subject: Posted: Wed Jul 19, 2006 3:16 am |
|
Joined: Sat Feb 04, 2006 6:26 pm Posts: 547
|
|
My real issue with putting the domain name in servers.cfg was that every now and again dns servers go slow or have issues.
Looking up the dns of the connection runs critical, meaning the whole shard can freeze when the server's dns server is running slow. It happened to me on a couple of occasions and I eventually went back to putting in the ip address.
|
|
| Top |
|
 |
|
Shinigami
|
Post subject: Posted: Wed Jul 19, 2006 3:31 am |
|
 |
| POL Core Developer |
Joined: Mon Jan 30, 2006 9:28 am Posts: 292 Location: Germany, Bavaria
|
|
that's true. in this case, an external program resolving dns in a loop and creating a servers.cfg would be the solution - I think so.
Shinigami
|
|
| Top |
|
 |
|
Yukiko
|
Post subject: Posted: Wed Jul 19, 2006 9:23 am |
|
Joined: Thu Feb 02, 2006 1:41 pm Posts: 1127 Location: Southern Central USA
|
|
Shini is the servers cfg read in once by POL or does POL refresh from the disc while it is running. If it refreshes then an external program could run alongside POL and update servers.cfg in the event of an IP change.
_________________ Sincerely,
Yukiko
I know you think you understand what you thought I said but what you heard is not exactly what I meant.
Titus 2:13
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 11 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|

|