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....
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.
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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080804/ed5d689b/attachment.sig>
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
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 at centos.org > http://lists.centos.org/mailman/listinfo/centos >
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....