Page 1 of 2

Host server with DNS

Posted: Sun Jul 05, 2009 6:02 pm
by matteppi
Hi.. I noticed that if i put a DNS.. in host file.. it wont work(Lineage)..
Example:
my.dns.com L2authd.Lineage2.com ---> Don't work

There is a way to redirect L2authd.Lineage2.com to (for example) my.dns.com?

I havn't a static ip.. so i must send every time my IP to all my friends.. it's a bit wearing.. :lol:
So.. i use no-ip.. and my dns is automatically update with my WAN ip..
Thx

Re: Host server with DNS

Posted: Sun Jul 05, 2009 7:54 pm
by Vapulabe
Well, when someone does a DNS request, basically, this is what happens :

1) query to ROOT DNS server about .com. Answer is the authoritative server for all .COM
2) query .COM for the lineage2.com... answer is the NCZ0ft DNS server
3) query NCZ0ft server about L2authd... and answer is L2 official login server

So, there are only two way to use DNS instead of hosts file :
1) DNS poisonning... which is highly illegal (and you'll get all L2 trafic from target ISP to your own private server, a good way to get sued both for copyright infrigement and for hacking)
2) providing DNS service and having those who want to use your server use YOUR DNS server instead of the DNS server of their ISP (Network -> TCP/IP->DNS). That DNS server will be used for all other request too.

Using DNS for L2 is only a good option if you want to use a private L2 server for people playing in your LAN... Else, forget about it

Re: Host server with DNS

Posted: Tue Jul 07, 2009 11:01 am
by sippsowi
So basicly if you have this computer is connected to a DNS Server for my internet, i couldnt NOT run a server from this machine? cuz ive been having problems w friends not connecting to mine but i can LAN ofc... im so lost on this to be honest. i figured it was my Ports.. but i guess not.?

Re: Host server with DNS

Posted: Tue Jul 07, 2009 11:11 am
by matteppi
in hosts file you can only redirect a DNS to an ip..
you can redirect the client modifing L2.ini.. but it's illegal..

Re: Host server with DNS

Posted: Tue Jul 07, 2009 11:19 am
by janiii
wikipedia wrote:The hosts file is a computer file used to store information on where to find a node on a computer network. This file maps hostnames to IP addresses. The hosts file is used as a supplement to (or a replacement of) the Domain Name System (DNS) on networks of varying sizes. Unlike DNS, the hosts file is under the control of the local computer's administrator.

Re: Host server with DNS

Posted: Tue Jul 07, 2009 11:47 am
by sippsowi
ok. so if i read that correct it doesnt matter then.. i could still run a server on my machine.. but anyone can add me to MSN and help me fig out why ppl cant connect to me?

larry99rish@hotmail.com

much app.

Re: Host server with DNS

Posted: Tue Jul 07, 2009 11:57 am
by lishawj
sippsowi wrote:ok. so if i read that correct it doesnt matter then.. i could still run a server on my machine.. but anyone can add me to MSN and help me fig out why ppl cant connect to me?

larry99rish@hotmail.com

much app.
The simple way to do all this is already explained in the L2J wiki. Since it does not sound like you had looked at it yet, here it is in an nutshell:

1) Config both loginserver/gameserver to use same external WAN IP.
2) Open/forward port 2106 and 7777 if needed to your internal hosting PC/Server.
3) Your external WAN IP is given to your friends so they can connect to your hosting PC/Server.
4) Your friends modify his/her HOSTS file located in C:\windows\system32\drivers\etc and add the following 2 lines:

XXX.XXX.XXX.XXX (Your WAN IP) L2authd.lineage2.com
216.107.250.194 nprotect.lineage2.com


If this still does not work, double check all your configuration files, check firewall rules, port forwarding, etc. A majority of the time, when you can not connect via external sources, it's USER ERROR.

Re: Host server with DNS

Posted: Tue Jul 07, 2009 12:28 pm
by sippsowi
fo sho.. i just updated the pc to sp2.. haha so now i can do a bit more.. thx

Re: Host server with DNS

Posted: Tue Jul 07, 2009 12:38 pm
by sippsowi
ok.. i did all that. But when you try to connect still all the game says is
"You are currently logging in. Please wait a moment."
and thats it.. :shock:

While back my ISP made me change my Internet Protocol Properties from automatically to Manual..
Same with Preferred DNS server and Alt server. Would this affect anything?

Re: Host server with DNS

Posted: Tue Jul 07, 2009 12:58 pm
by lishawj
sippsowi wrote:ok.. i did all that. But when you try to connect still all the game says is
"You are currently logging in. Please wait a moment."
and thats it.. :shock:
You are not even hitting your loginserver if it's stuck at "You are currently logging in." Below are a couple of reasons why you are stuck at that screen.

1) You didn't configure loginserver.properties with the right Internalhostname/Externalhostname IP.
2) You don't have the right HOSTS file IP for l2authd.lineage2.com or you mispelled L2AUTHD.LINEAGE2.COM on the client PC.
3) You didn't forward loginserver port 2106 to your Internalhostname IP in your router.
4) Double check your loginserver and gameserver properties file and make sure you USED the same IP (whether it's internal or external) in both loginserver and gameserver config files.
5) Double check your HOSTS file for mispelling or wrong IP address.
6) Disable your firewall temporarily if you are still having connection issue. If the firewall is the culprit, you'll know right away.
While back my ISP made me change my Internet Protocol Properties from automatically to Manual..
Same with Preferred DNS server and Alt server. Would this affect anything?
Shouldn't have anything to do with your current problem. I do believe your problem is user error in the configuration of your server. It really shouldn't be this hard to set up a L2J server. The documentation is fairly well written and I had numerous friends who had limited PC/networking background and they were able to get their own test server up and running on the first try. Follow the directions, if you believe you had done it correctly, DOUBLE CHECK your steps because you obviously missed something if it's not working.

Re: Host server with DNS

Posted: Tue Jul 07, 2009 1:25 pm
by sippsowi
1. changed the loginservers cfg .. take a look
# Default: 127.0.0.1
ExternalHostname = 97.118.28.76

# Default: 127.0.0.1
InternalHostname = 192.168.0.5

# Bind ip of the LoginServer, use * to bind on all available IPs
# Default: *
LoginserverHostname = *

# Default: 2106
LoginserverPort = 2106
2. my current Host

127.0.0.1 localhost

97.118.25.76 l2testauthd.lineage2.com
97.118.28.76 L2authd.lineage2.com
216.107.250.194 nprotect.lineage2.com
216.107.250.194 update.nProtect.com

3.IF i did it correctly.. i cant put em to BOTH so i did each individually
http://i58.photobucket.com/albums/g279/ ... ktop-1.jpg


4. they are =)

5.copyed and pasted it.

6. its disabled atm..

7. if i changed the HOST file to my Internal IP 192.168.0.5 MYSELF can connect.. but still no one out side of my LAN can.. ugh.. im so lost w it

And here is final pic when servers up. =x

http://i58.photobucket.com/albums/g279/ ... pnow-1.jpg

Re: Host server with DNS

Posted: Tue Jul 07, 2009 1:37 pm
by lishawj
97.118.25.76 l2testauthd.lineage2.com
97.118.28.76 L2authd.lineage2.com
I can not make a connection to 97.118.28.76. A ping to that IP = no reply. However, a ping to 97.118.25.76 returned a reply. I would suggest you add the following changes:

Use 97.118.25.76 for loginserver and gameserver WAN IP, next change your HOSTS file to:

97.118.25.76 L2authd.lineage2.com
216.107.250.194 nprotect.lineage2.com

This should work.

Re: Host server with DNS

Posted: Tue Jul 07, 2009 1:49 pm
by sippsowi
wow.. my external IP just changed..i just changed all the external cfg and host ip to this ip 97.124.244.19

still cant connect tho. ugh!! F**K QWEST!! i want comcast back

Re: Host server with DNS

Posted: Tue Jul 07, 2009 1:57 pm
by lishawj
sippsowi wrote:wow.. my external IP just changed..i just changed all the external cfg and host ip to this ip 97.124.244.19

still cant connect tho. ugh!! F**K QWEST!! i want comcast back
If your External IP (WAN) is changing every couple minutes then it's near impossible to allow others to connect without having a static IP.

Re: Host server with DNS

Posted: Tue Jul 07, 2009 2:19 pm
by sippsowi
then i think its time to find a new ISP! i dont think its changing every few min.. but somethings deff fishy! i had my server up with my old ISP.. got these guys bc i moved and i cant get friends on.. well thank you soo much for your help. if somehow some way i fig it out ill repost! lol thx