Updating Linux hosts file
In many situations, you may not have control on the DNS server to add address record and you may need to make the FQDN work instead of IP address. In Windows, you just update the host file. Here is how you update in Linux/Ubuntu.
>sudo -i
Enter the password
# vi /etc/hosts
Add the following replacing the values you need
Save the file
restart network service
#/etc/init.d/networking restart
At this point, you should be able to ping the IP address with FQDN you configured. This only applies to the machine where you changed the hosts file.
No comments:
Post a Comment
Please comment