According to network.init

100   if [ -r /mnt/kd/hosts ]; then
101     cat /mnt/kd/hosts >> /tmp/etc/hosts
102   fi

/mnt/kd/hosts is not a symlink, but rather appending to the same file  
the DDHOST variable is writing to.

Lonnie

On Sep 30, 2008, at 11:12 AM, Darrick Hartman wrote:

> Chris,
>
> I see where that's coming from!  If DDHOST is defined, the
> /etc/init.d/network script will add it to /etc/hosts as follows:
>
>   if [ -n "$DDHOST" ]; then
>       echo "127.0.0.1  localhost
>       $HOSTIP  $HOSTNAME.$DOMAIN $HOSTNAME
>       $INTIP  $DDHOST" > /tmp/etc/hosts
>   else
>
>       echo "127.0.0.1  localhost
>       $HOSTIP  $HOSTNAME.$DOMAIN $HOSTNAME" > /tmp/etc/hosts
>   fi
>
> In most cases, this is desired.  You can override this as Tom  
> indicated
> by creating a file /mnt/kd/hosts, but then you are responsible for
> updating it as the init script will use that file rather than
> dynamically creating one with the values from STATHOSTS etc.
>
> Darrick
>
> Tom Chadwin wrote:
>> Hi Chris
>>
>> Create  mnt/kd/hosts, and edit that. I believe it should be copied  
>> to /tmp/etc on boot. /etc/hosts is a symlink to /tmp/etc/hosts.
>>
>> Tom
>>
>>
>>
>> Tom Chadwin , ICT & Web Development Officer
>> Telephone: 01434 611530
>> Web : www.northumberlandnationalpark.org.uk
>> IMPORTANT NOTICE - Disclaimer - September 30, 2008 - REF  
>> Email-200809-00298853. This communication is from Northumberland  
>> National Park Authority (NNPA).The Authority's head office and  
>> principal place of business is Eastburn, South Park, Hexham,  
>> Northumberland, NE46 1BS, United Kingdom. This communication and  
>> any attachments contain information which is confidential and may  
>> also be privileged. It is for the exclusive use 'AstLinux Users  
>> Mailing List'.If you are not the intended recipient(s) please note  
>> that any form of disclosure, distribution, copying or use of this  
>> communication or the information in it or in any attachments is  
>> strictly prohibited and may be unlawful. If you have received this  
>> communication in error, please delete the email and destroy any  
>> copies of it. Any views or opinions presented are solely those of  
>> the author and do not necessarily represent those of  
>> NNPA.Contractors or potential contractors are reminded that a  
>> formal Order or Contract is needed for
> N
>> NPA to be bound by any offer or acceptance of terms for the supply  
>> of goods or services Although this email and any attachments are  
>> believed to be free of any virus or other defects which might  
>> affect any computer or IT system into which they are received, no  
>> responsibility is accepted by the NNPA for any loss or damage  
>> arising in any way from the receipt or use thereof. Computer  
>> systems of this Authority may be monitored and communications  
>> carried out on them recorded, to secure the effective operation of  
>> the system and for other lawful purposes.
>> -----Original Message-----
>>> From: Chris Abnett [mailto:[EMAIL PROTECTED]
>>> Sent: 30 September 2008 16:41
>>> To: 'AstLinux Users Mailing List'
>>> Subject: [Astlinux-users] Updating /etc hosts ??
>>>
>>> I use my astlinux as my router at home and run a webserver
>>> behind it...  the DHCP server in the astlinux provides DHCP
>>> to my client machines inside... of course the DHCP names the
>>> astlinux box as the DNS resolver - which is fine as DNSMASQ
>>> is running...  however if I go to http://www.cadillackid.com
>>> from the INSIDE network I end up trying to hit the astlinux
>>> box instead of my webserver..  so I went to the rc.conf file
>>> and set up STATHOSTS... like
>>> this:
>>>
>>> STATHOSTS="cadillackid.com:172.16.1.3 www.cadillackid.com: 
>>> 172.16.1.3"
>>>
>>> Then I rebooted.
>>>
>>> Now inside the /etc/hosts file I have:
>>>
>>> 127.0.0.1  localhost
>>> 172.16.1.5  babyasterisk.astlinux babyasterisk
>>> 172.16.1.5  cadillackid.com
>>> 172.16.1.3      cadillackid.com
>>> 172.16.1.3      www.cadillackid.com
>>>
>>> How do I get rid of reference to the 172.16.1.5 for
>>> cadillackid.com in my /etc/hosts? Since it isdyna,mically
>>> created I cant just edit it..
>>>
>>> -Christopher
>>>
>>>
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------
>>> -----------
>>> This SF.Net email is sponsored by the Moblin Your Move
>>> Developer's challenge Build the coolest Linux based
>>> applications with Moblin SDK & win great prizes Grand prize
>>> is a trip for two to an Open Source event anywhere in the
>>> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Astlinux-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>>>
>>> Donations to support AstLinux are graciously accepted via
>>> PayPal to [EMAIL PROTECTED]
>>>
>>
>> This email has been processed by SmoothZap - www.smoothwall.net
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's  
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win  
>> great prizes
>> Grand prize is a trip for two to an Open Source event anywhere in  
>> the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Astlinux-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>>
>> Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
>> PROTECTED] 
>> .
>
> -- 
> Darrick Hartman
> DJH Solutions, LLC
> http://www.djhsolutions.com
> Small Business IT Specialists
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win  
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in  
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
> PROTECTED] 
> .
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to