The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.


Other UNIX.COM Threads 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 06: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 05:00 AM
Hosts.allow and hosts.deny huddlestonsnk UNIX for Dummies Questions & Answers 1 10-18-2006 08:34 AM
csplit not behaving badg3r UNIX for Advanced & Expert Users 2 05-25-2006 03:36 AM
hosts.allow & hosts.deny Sorrento UNIX for Dummies Questions & Answers 2 08-18-2005 06:25 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-28-2008
Registered User
 

Join Date: May 2004
Location: Brazil
Posts: 40
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
/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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-29-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,069
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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 ?
Reply With Quote
  #3 (permalink)  
Old 04-29-2008
Registered User
 

Join Date: May 2004
Location: Brazil
Posts: 40
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #4 (permalink)  
Old 04-29-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,203
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB 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 -7. The time now is 09:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102