Very odd behavior I've experienced when dealing the /etc/hosts file.
I wanted to modify the host file. I checked the ping prior to the change, made the modification to the /etc/hosts file and instantly my next ping command took the hosts file change in effect. All worked as I expected...
Now I wanted to revert back. I made the change in /etc/hosts again... and for some strange reason, the ping did not change. It keep resolving to the first change I made.
What am I missing?
The only way I found to fix this 'caching' problem is to up/down the interface.
If anyone can shed some light on this I would greatly appreciate it.
TIA
I wanted to modify the host file. I checked the ping prior to the change, made the modification to the /etc/hosts file and instantly my next ping command took the hosts file change in effect. All worked as I expected...
Now I wanted to revert back. I made the change in /etc/hosts again... and for some strange reason, the ping did not change. It keep resolving to the first change I made.
What am I missing?
The only way I found to fix this 'caching' problem is to up/down the interface.
If anyone can shed some light on this I would greatly appreciate it.
TIA