LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-15-2003, 02:50 AM   #1
cristi1979
Member
 
Registered: Jun 2003
Posts: 71

Rep: Reputation: 15
Unhappy how to transform ip -> name


Hy

i have 2 servers of counter-strike on my linux. One of them was setup by a friend of mine and when i do "connect cs.name.com" it's working (it is on port 27015).
Recently i put a second server, but i want to know how or where or what i must change in order to connect with "connect war.cs.name.com", instead of "connect xxx.xxx.xxx.xxx:27016".

thanks in advance.
 
Old 06-15-2003, 02:54 AM   #2
Muddy
Member
 
Registered: May 2002
Location: Ohio
Distribution: Mandrake 9.2 Custom Kernel & Mythtv!
Posts: 256

Rep: Reputation: 30
You Might want to give this link a shot.

Counter-Server



As for connecting to the IP instead of the server name just use the ip address. If you don't know it. Use ifconfig.
Normally found in sbin.

/sbin/ifconfig

should spit out the ip addy of that machine.
Hope some of this helps.

Last edited by Muddy; 06-15-2003 at 02:57 AM.
 
Old 06-15-2003, 03:01 AM   #3
cristi1979
Member
 
Registered: Jun 2003
Posts: 71

Original Poster
Rep: Reputation: 15
when i connect i want to use the server name, not the ip


thanks for the linuxbasic page

i will read it now.
 
Old 06-15-2003, 03:09 AM   #4
cristi1979
Member
 
Registered: Jun 2003
Posts: 71

Original Poster
Rep: Reputation: 15
no help there

i think i want to do some "reverse address" stuff. (i may be wrong)
 
Old 06-15-2003, 03:48 AM   #5
Muddy
Member
 
Registered: May 2002
Location: Ohio
Distribution: Mandrake 9.2 Custom Kernel & Mythtv!
Posts: 256

Rep: Reputation: 30
your running both serrvers on the same machine?
 
Old 06-15-2003, 03:59 AM   #6
cristi1979
Member
 
Registered: Jun 2003
Posts: 71

Original Poster
Rep: Reputation: 15
yes
one on port 27015, the other (the new one) on 27016
 
Old 06-15-2003, 06:15 AM   #7
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
with counter strike, i've noticed when i log into a server and dont specify a port, it defaults me to 27015. If all you supply is the IP (which is the same
as just supplying a domain name) then it will probably always default to
27015, much the same way as asking for a web page. You never ask for the port (80) unless the server is not running on the default port (like 8080). So you may not be able to do this....atleast not in anyway that is inherently easy.

I've been wrong before, so I could be wrong now. That is based on theory and observation of joining CS servers (i created one once and tested it out, i didnt specify a port when connecting but it gave me port 27015 by default).
 
Old 06-15-2003, 07:14 AM   #8
cristi1979
Member
 
Registered: Jun 2003
Posts: 71

Original Poster
Rep: Reputation: 15
both servers are working simultanios, but if i want to log on the first one, i can type from console "connect cs.name.com". If i want to connect to the second server, i do it from the console like this: "connect 194.176.185.254:27016". What i want is to do on the second server just this: "connect war.cs.name.com".

This is my problem: how i bind the ip and the port to the name "war.cs.name.com" ?
 
Old 06-15-2003, 07:23 AM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Just put this line in your hosts file:
194.176.185.254 war.cs.name.com
 
Old 06-15-2003, 11:57 AM   #10
cristi1979
Member
 
Registered: Jun 2003
Posts: 71

Original Poster
Rep: Reputation: 15
thanks

but why ping is only working from my server and is not working from any other computer on my network?


PS:
-and i click on the link
 
Old 06-15-2003, 02:08 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Do you mean why does it not ping the name? You will need to put that entry in the hosts files of every machine.
 
Old 06-15-2003, 03:16 PM   #12
cristi1979
Member
 
Registered: Jun 2003
Posts: 71

Original Poster
Rep: Reputation: 15

but i don't want to tuch the computers...

i don't want to do this thing every time i install a windows or a linux from my network
is there any other method?
like to put the address on the dns on my server (but i don't know how to o that)?
 
Old 06-15-2003, 03:20 PM   #13
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You could run your own dns server but that ain't really my speciality.
 
Old 06-16-2003, 01:32 AM   #14
cristi1979
Member
 
Registered: Jun 2003
Posts: 71

Original Poster
Rep: Reputation: 15
ok
thank's for your help
now i'll go to see how to set up a dns.
maybe i have one running on my server and i don't know
 
Old 06-16-2003, 01:43 AM   #15
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
will someone please correct me if im wrong but:

you cannot get a hostname to translate into an IP AND port.

as far as i know about ip's and counter-strike, it wont work. you can't get
a dns server to specify a port, only the IP that the hostname goes to, and CS, when only given an IP defaults to the 27015 port. People logging in will have to do something like war.cs.name.com:27016 to get port 27016. I posted this before. If im wrong PLEASE by all means correct me. I understand that u have 2 servers running on 1 machine on 2 different ports, but CS wont default to port 27016 when just given a host name. what you will end up with in the end is 1 IP, 1 Computer, 2 host names. You can add all the hostnames you want to point to that 1 IP but when people connect to your server, if they dont specify a port it will always default to 27015 no matter what hostname they decide to connect with.

Last edited by Robert0380; 06-16-2003 at 01:44 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
localhost transform in N7W8U2 after reboot roskoo Fedora 0 11-30-2005 02:49 AM
stl std::transform (vc++ = ok, g++ = err) Pettersson Programming 2 09-02-2005 11:25 PM
java works but only part with php to transform xml richard22 Programming 4 03-20-2005 10:42 PM
How can I transform XML into HTML on bash? pedrosan Linux - Newbie 0 04-22-2004 02:37 AM
how to transform an object into an array of bytes on Java! poeta_boy Programming 3 02-15-2004 07:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration