-
Notifications
You must be signed in to change notification settings - Fork 2
DynDNS_Guide
This guide isn't meant to be a complete rAthena configuration guide, and it assumes you completed already the main configuration steps. If your server isn't working, please refer to the Installation and :Category:Configuration guides before following this one.
In this guide will be shown how to configure your server to run with the DynDNS® service from Dynamic Network Services, Inc., but you can follow similar steps to setup it with any other Dynamic DNS service. DynDNS® is registered trademarks of Dynamic Network Services Inc.
To follow this guide successfully, you will need:
- A properly installed and configured (including any port forwarding) rAthena. Either Linux or Windows version.
- A hexed Sakexe with the DNS Support option enabled.
- Knowledge on how to create a clientinfo.xml file.
- Knowledge on how to obtain your LAN IP and Subnet mask.
- Knowledge on how to install missing system packages (only in Linux)
Before setting up your server to use DunDNS, you need to register an account on http://www.dyndns.org. You'll find a "Create account" link near the top-right of their home page.
Fill the registration form as described in the following image, then follow the instructions you will get by email on how to activate your account: DynDNS account registration form
Go back to the DynDNS website and login with the new account you created. It will show a list of actions you can perform. Choose "My Hosts", then "Add New Hostname". Fill the page as follows. DynDNS host creation form
You can find an updater client for your OS in the DynDNS website. After you login, choose "Support" from the top menu, then "Update Clients" from the left menu. Download either DynDNS Updater (Windows) or ddclient (Linux)
DynDNS Updater You can refer to the official DynDNS Updater Guide to get help on the setup and configure steps. Make sure you choose the "Install as a Service", "Show a Tray Icon" and "Start with Windows" options during the setup process.
ddclient
If your Linux distribution offers the ddclient package in its own packages repository, install it with your favorite package manager (package name should be ddclient
). Jump to the configuration section below.
Else, if your distribution doesn't provide any ddclient package, or you want to install the one on the DynDNS client, these are the steps to follow:
-
Move the downloaded file (ddclient.tar.gz) to your home directory if you saved it anywhere else.
-
Open a Console/Terminal and move to your home directory
$
cd
-
Extract the downloaded tarball
$
tar
xzvf
ddclient.tar.gz
-
Move to the extracted folder
$
cd
ddclient-*
-
Get root privileges (one of the following commands, depending on your distribution)
$
sudo
su
$
su
-
Copy the ddclient executable to the proper directory
#
cp
ddclient
/usr/sbin/
-
Setup ddclient's startup script
- On gentoo:
#
cp
sample-etc_rc.d_init.d_ddclient
/etc/init.d/ddclient
#
rc-config
add
ddclient
default
- On RedHat/Fedora/CentOS:
#
cp
sample-etc_rc.d_init.d_ddclient
/etc/rc.d/init.d/ddclient
#
/sbin/chkconfig
--add
ddclient
- On debian/*ubuntu:
#
cp
sample-etc_rc.d_init.d_ddclient
/etc/init.d/ddclient
#
update-rc.d
ddclient
defaults
- On SuSE:
#
cp
sample-etc_rc.d_init.d_ddclient.lsb
/etc/init.d/ddclient
#
insserv
ddclient
- On any other system: PM the guide author asking for help with your *nix distribution and it will get added to this list
- On gentoo:
-
Create the config directory for the program
#
mkdir
/etc/ddclient
Configuration for ddclient is done through a text-format config file (/etc/ddclient/ddclient.conf
)
- If you didn't do this yet, get root privileges (one of the following commands, depending on your distribution)
$
sudo
su
$
su
- Open the config file in your favorite text editor (replace
vim
with the text editor you prefer)#
vim
/etc/ddclient/ddclient.conf
- Edit the below template to complete/write the config file:
######################################
- Basic configuration file for ddclient
-
- /etc/ddclient/ddclient.conf
-
daemon=300 # check every 300 seconds cache=/tmp/ddclient.cache pid=/var/run/ddclient.pid # record PID in file. ssl=no # use ssl-support. Works with ssl-library
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
-
- Replace Username with the username you used to register in the DynDNS website
login=Username
-
- Replace Password with the password you used to register in the DynDNS website
password=Password
protocol=dyndns2 server=members.dyndns.org wildcard=yes
-
- Replace your-host-name.game-server.cc with the real host name you added to your DynDNS account
your-host-name.game-server.cc
- Start the ddclient updater
- On gentoo/debian/*ubuntu/SuSE:
#
/etc/init.d/ddclient
start
- On RedHat/Fedora/CentOS:
#
/etc/rc.d/init.d/ddclient
start
- On any other system: PM the guide author asking for help with your *nix distribution and it will get added to this list
- On gentoo/debian/*ubuntu/SuSE:
You will need to configure rAthena properly in order to allow it to use the newly created DynDNS address.
Below are the required settings (use your favorite text editor to edit the files). Replace: LAN_IP
with your LAN IP address, DYNDNS_HOST
with your DynDNS Hostname and SUBNET_MASK
with your LAN Subnet Mask.
-
conf/login_athena.conf
bind_ip:
LAN_IP
-
conf/char_athena.conf
login_ip: LAN_IP
bind_ip: LAN_IP char_ip: DYDNDNS_HOST
-
conf/map_athena.conf
char_ip: LAN_IP
bind_ip: LAN_IP map_ip: DYNDNS_HOST
-
conf/subnet_athena.conf
subnet:
SUBNET_MASK:LAN_IP:LAN_IP
The client needs to be configured as well in order to let it connect through the DynDNS hostname. Edit the clientinfo.xml file as follows:
-
Your client (the one you will use to connect from the same computer as the server or from the LAN)[code]
LAN_IP \[/code\] -
Normal client (the one you will give to players to connect from the Internet)[code]
DYNDNS_HOST \[/code\]
- "Installation Support" section in forums (Questions related to installation/setup issues)
- "rAthena Server Support" section in forums (general support questions related to rAthena configuration)
- "Client & Patcher Support" section in forums (for any issue with client, data folders and GRF packs)
- Installation instructions
- Transitioning from SVN to GIT
- Compiling on your OS
- Connecting & Starting rAthena
- Scripting like a pro!
- Server Modifications and what to expect
- Database Configuration
- Adding Custom Items
- Adding Custom Monsters
- GRF Encryption
- Data folder
- Diff files