Is there any file in linux where IP can be mapped to hostname.Please tell me the path
As we have in windows: By changing in host file we can map a static ip to a host name.
Do you mean the /etc/hosts file?
/etc/hosts
Typical entries might look like:
127.0.0.1 localhost
127.0.0.1 sagan
192.168.1.87 bohr
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With