Solved

Linux hostname

Posted on 2013-12-19
3
187 Views
Last Modified: 2013-12-20
In general, is there a problem copying an entire hosts file from one machine to another

Thanks
0
Comment
Question by:Los Angeles1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39730732
No, the format is standard across all Linux/Unix and even Windows platforms.

The file is read anew during each lookup, so you don't have to restart/refresh anything.

Just take care that 127.0.0.1 (::1 for IPV6) is "loopback localhost" and nothing else!
0
 
LVL 78

Expert Comment

by:arnold
ID: 39731052
Not sure what the point is, I gather you have entries I there that need copying?
0
 
LVL 8

Expert Comment

by:Surrano
ID: 39731216
There is one catch: some aliases may need different resolution on different machines. E.g. in Solaris "loghost" should always be an alias of the syslog server, which is the machine's primary interface by default. E.g. if I have this host file on fiona:
...
192.168.22.33 fiona loghost
192.168.22.44 shrek
192.168.22.55 donkey
...

Open in new window

then it should look like this on shrek:
...
192.168.22.33 fiona 
192.168.22.44 shrek loghost
192.168.22.55 donkey
...

Open in new window

0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question