LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-23-2006, 01:39 PM   #1
kloss
Member
 
Registered: Nov 2004
Location: France & Germany
Distribution: (Pure) Debian Etch & Sid
Posts: 116

Rep: Reputation: 15
which config file to set: this name <=> this ip


Hello all,
I would like to use names instead of IPs. For instance:
"ping familypc" instead of "ping 192.168.13.37 or "ssh a_user_name@remote_computer" instead of "ssh a_user_name@ip.not.on.LAN".
I am looking for the configuration file where I can set up these equivalences. I am sure that it exists (hidden somewhere under /etc ...)
Thanks in advance
/kloss
 
Old 04-23-2006, 01:55 PM   #2
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
You're looking for /etc/hosts, which would have entries like

Code:
127.0.0.1    localhost
192.168.13.37    familypc
and so on.
 
Old 04-23-2006, 02:23 PM   #3
kloss
Member
 
Registered: Nov 2004
Location: France & Germany
Distribution: (Pure) Debian Etch & Sid
Posts: 116

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by zaichik
You're looking for /etc/hosts, which would have entries like

Code:
127.0.0.1    localhost
192.168.13.37    familypc
and so on.
Yes, it was this file! Thanks a lot!
Bye
 
  


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
I have an XF86 config file for video, how do I turn it into XORG config lowpingnoob Linux - Newbie 18 06-12-2005 12:07 PM
X config tool not creating X config file Pingus Debian 3 05-02-2005 11:49 AM
krfb --config; Format of config file? Need to allow ports below 1024. SavvyPlayer Linux - Software 0 10-16-2004 08:28 PM
Which config file do I set the hostname in (RH9)? anachron Linux - Newbie 8 06-02-2004 07:48 PM
Lan Config file / internet config file Raven_X_Neo Linux - Networking 1 10-30-2002 01:05 PM

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

All times are GMT -5. The time now is 02:19 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