LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-17-2010, 08:35 AM   #1
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Rep: Reputation: 15
/etc/hosts changes on reboot (Solaris 10)


I am most familiar with Linux, which generally leaves /etc/hosts alone, but is there some legitimate reason why /etc/hosts would be altered at boot? We made some changes to /etc/hosts on an off site server (which I unfortunately don't know a ton of details about) and for some reason those changes disappear when the machine is rebooted. It comes up and down quite a bit due to unreliable power, so this is a problem.

This kind of thing makes me think of hackers and rootkits, but I don't even know where to start looking for what might be doing this whether it is legitimate or not. Any thoughts?
 
Old 05-17-2010, 08:38 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
How is it changing?

DCHP or static IP?

No, I don't know of anything that will change /etc/hosts.
 
Old 05-17-2010, 09:38 AM   #3
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Original Poster
Rep: Reputation: 15
We are trying to add a line giving a name to one of the interfaces to make our software happy and that line disappears after rebooting. Oracle seems to want the machine to have a fully qualified domain name. There is DNS info in /etc/resolv.conf but no domain name.

There is an empty dhcp.blah file where blah is the interface that we are interested in. So I assume it is using DNS.
The machine knows the short (unqualified) name and that points to the right place, but that doesn't seem to make oracle happy.
 
Old 05-17-2010, 05:09 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I'm not aware of the OS modifying /etc/hosts on its own. Even dhcp doesn't do anything on it as far as I know. That would be a good job for dtrace to investigate ...
 
  


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
Solaris - /etc/hosts furqan_sindhu Linux - Networking 2 10-14-2009 11:01 PM
How to add hosts to Solaris server pranavojha Solaris / OpenSolaris 2 10-19-2007 08:12 AM
solaris 10: do I have to create my own hosts.deny? xpucto Solaris / OpenSolaris 1 11-15-2006 06:07 AM
solaris 9 rsh and /etc/hosts.equiv pymehta Solaris / OpenSolaris 3 01-19-2005 11:07 AM
enable changes to /etc/hosts without reboot? vrillusions Linux - Networking 4 05-17-2004 09:42 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:03 PM.

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