The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ubuntu Linux Toolbox: 1000+ Commands For Ubuntu And Debian Power ... - Business Wire iBot UNIX and Linux RSS News 0 12-19-2007 10:50 AM
Ubuntu Linux Toolbox: 1000+ Commands For Ubuntu And Debian Power ... - PR-Inside.com iBot UNIX and Linux RSS News 0 12-19-2007 09:00 AM
Hosts.allow and hosts.deny huddlestonsnk UNIX for Dummies Questions & Answers 1 10-18-2006 12:34 PM
csplit not behaving badg3r UNIX for Advanced & Expert Users 2 05-25-2006 07:36 AM
hosts.allow & hosts.deny Sorrento UNIX for Dummies Questions & Answers 2 08-18-2005 10:25 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-28-2008
Zarnick Zarnick is offline
Registered User
  
 

Join Date: May 2004
Location: Brazil
Posts: 40
/etc/hosts on Ubuntu behaving strangely

Hy guys, I'm having a very strange problem, every time I change the /etc/hosts file on an Ubuntu machine @ work, every time I change the line:
Code:
127.0.0.1 programmer.COMPANY
to
Code:
127.0.0.1 programmer.COMPANY programmer
It works till the next reboot, now, I have never experienced this on any of my Linux machines, does anyone may have a clue on what's happening?

Thanks.
  #2 (permalink)  
Old 04-29-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
I've never had Ubuntu or Debian child, but it may be that another script, loaded at startup is cleaning the /etc/hosts and/or other system files. Such scripts/lines of code are usually located at /etc/rc.local file, or /etc/init.d/. Got root ? Anyone else ?
  #3 (permalink)  
Old 04-29-2008
Zarnick Zarnick is offline
Registered User
  
 

Join Date: May 2004
Location: Brazil
Posts: 40
There's no local script doing this, I can't imagine this NOT being Ubuntu stuff, could be the winbind I've installed for talking with the AD following this tutorial.
I really have no ideia what can be doing this.
  #4 (permalink)  
Old 04-29-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Do you find a script in /etc/init.d or someplace which messes with /etc/hosts? (I don't, not in /etc/network or /etc/init.d .)

Mine looks like it was last modified on 2008-03-28 which might have been the last time I used DHCP. I don't have any real grip over what Avahi does but if you use Network Manager with roaming mode, this is the sort of thing it does, I believe.

locate avahi | fgrep hosts brought up two matches which look sort of promising: /etc/avahi/hosts and the avahi.hosts manual page.
  #5 (permalink)  
Old 10-30-2008
lankford lankford is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 1
If you are using using DHCP...

It is prbly getting over written at each reboot or DHCP refresh (like once a day, week ) when the DHCP lease ends...

Matt
ThePartTimeCTO.com
  #6 (permalink)  
Old 11-04-2008
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,175
172.0.0.1 is the standard TCP/IP loopback address. Same on unix and Windows.
A normal line is
127.0.0.1 localhost loopback
Closed Thread

Bookmarks

Tags
linux, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0