How do I reject getting my own comments on e-mail?
hostname or else?
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• RYXI
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

RYXI > Solaris > hostname or else? 3 April 2008 04:57:16

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

hostname or else?

Ela 3 April 2008 04:57:16
 i connect to a remote machine called 123.456.789.12 and would like to
display as machine1 instead of the long IP. After reading hostname usage and
testing for many times I still fail to do that despite I'm a root. is that
due to DNS restriction or some other commands I should use? Thanks for your
advice~


Add comment
James Carlson 2 April 2008 15:41:10 permanent link ]
 "Ela" <ela@yantai.org> writes:
i connect to a remote machine called 123.456.789.12 and would like to
display as machine1 instead of the long IP. After reading hostname usage and
testing for many times I still fail to do that despite I'm a root. is that
due to DNS restriction or some other commands I should use? Thanks for your
advice~

It's unclear to me exactly what you want to do. Here are several
suggestions:

- The name service itself is configured using /etc/nsswitch.conf.­
You _must_ tell the system which service you want to use -- local
files (/etc/hosts), DNS, or otherwise.

- You can put static host name to IP address mappings in /etc/hosts.
See hosts(4) for details.

- DNS is configured using /etc/resolv.conf. If you don't have the
correct addresses in there, it won't work.

- Many networks use DHCP to configure local networking applications,
such as name services. If you set up your system to run DHCP, and
if you have a properly configured DHCP server, all of this will
"just work."

--
James Carlson, Solaris Networking <james.d.carlson@su­n.com>
Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
Add comment
Ela 3 April 2008 04:57:16 permanent link ]
 Dear Mr. James Carlson,

Thank you for helping me shape my question more precisely. In fact I am
using SSH to connect a machine with fixed IP, say, 133.144.155.66,
133.144.155.67, 133.144.155.68, ...

when I'm opening more windows, I can only see 133.144 something. I would
like to assign each machine a specific name so I can quickly identify which
window I should use. Thanks again.


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


RYXI > Solaris > hostname or else? 3 April 2008 04:57:16

see also:
Can't get PrecisionScan LTX 1.2 and HP…
Only cpu fan works
Epson 3170
пройди тесты:
see also:
canon pixma ip1500 service
music transfer
Canon Pixma IP1500 how to replace waste…

  Copyright © 2001—2008 RYXI
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.ryxi.com.
Сообщения об ошибках оставляем в сообществе bugs.ryxi.com.
Предложения и комментарии пишем в сообществе suggest.ryxi.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .