Re: [CentOS] Reloading /etc/hosts

2008-08-04 Thread Robert Moskowitz



Ralph Angenendt wrote:

Robert Moskowitz wrote:
  

I am doing some testing and am having to make many changes to /etc/hosts

Is there a way to reload the /etc/hosts file without doing a service  
network restart?



That doesn't need to be reloaded *except* if you use the name service
caching daemon (nscd). Then "service nscd reload" might be needed.
Probably my memory cells were working off of nscd and I had cached 
memories about needing to clear out cache.   :)



So I got my mind cache flushed and working with fresh info.

I am at hiit.fi today getting the HIP code working.  I will have a 
'story' to tell end of the week




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


No an Issue? Re: [CentOS] Reloading /etc/hosts

2008-08-04 Thread Robert Moskowitz



Robert Moskowitz wrote:

I am doing some testing and am having to make many changes to /etc/hosts

Is there a way to reload the /etc/hosts file without doing a service 
network restart?


I 'forgot' to restart network after a change and did a ping6 and it worked.

Ergo, I think my information is wrong and the /etc/hosts file content is 
not cached somewhere in the client resolver code, but read fresh each 
time?  I am, it worked.  I created a fqdn that has no connection to 
anything possible in DNS, and ping6 worked




I hope that in a while I can run BIND with a bunch of faked-out zone 
files (did this once to crack a Vonage PAP2).  But for right now, I 
cannot introduce BIND to the equation



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Reloading /etc/hosts

2008-08-04 Thread nate
Robert Moskowitz wrote:
> I am doing some testing and am having to make many changes to /etc/hosts
>
> Is there a way to reload the /etc/hosts file without doing a service
> network restart?

There is no need to reload the hosts file, it's read in real time.
Some things like firefox maintain their own host cache though, and
you'll either have to restart it or wait for it's timeout before
the changes take effect.

If your running nscd, you may have to either restart nscd or
run "nscd -i hosts" to invalidate the hosts cache there. nscd
is typically only run on a system that is participating in network
authentication like LDAP.

nate

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Reloading /etc/hosts

2008-08-04 Thread Toby Bluhm

Robert Moskowitz wrote:

I am doing some testing and am having to make many changes to /etc/hosts

Is there a way to reload the /etc/hosts file without doing a service 
network restart?


Takes effect immediately. Do you not get the changes right away?



--
Toby Bluhm
Alltech Medical Systems America, Inc.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Reloading /etc/hosts

2008-08-04 Thread Ralph Angenendt
Robert Moskowitz wrote:
> I am doing some testing and am having to make many changes to /etc/hosts
>
> Is there a way to reload the /etc/hosts file without doing a service  
> network restart?

That doesn't need to be reloaded *except* if you use the name service
caching daemon (nscd). Then "service nscd reload" might be needed.

Ralph


pgpCkXE8iCqaS.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Reloading /etc/hosts

2008-08-04 Thread Robert Moskowitz

I am doing some testing and am having to make many changes to /etc/hosts

Is there a way to reload the /etc/hosts file without doing a service 
network restart?


I hope that in a while I can run BIND with a bunch of faked-out zone 
files (did this once to crack a Vonage PAP2).  But for right now, I 
cannot introduce BIND to the equation



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos