Hello all,
I am having some difficulty in making some changes to the hosts file.
Router is an AC66U with merlin 378.53
I am using the JFFS partition and have tried a couple of ways to get it to work.
Basically I am in the process of setting up an ESXi lab in my office and do not have a dedicated DNS server.
I have set the host name of the ESXi server to esxi. I will also have another server called vcenter.
I have also set a local domain name of poseidon.local in the ESXi server.
I initially tried to edit the hosts file located etc/hosts but of course the additions did not stick after a reboot of the router.
I then added a file called hosts.add to the jffs/config folder with the following entries.
192.168.0.100 esxi.poseison.local esxi
192.168.0.101 vcenter.poseidon.local vcenter
This has not worked, if I try to ping any of the addresses above, I get an error saying they cannot be found.
I then tried a different approach and made a file called hosts.dnsmasq.add in the jffs/config folder with the same entries above. However, still I am not able to resolve any of the hosts.
I am also not sure about adding multiple names after the IP address.
Are the following entries correct?
192.168.0.100 esxi.poseison.local esxi
192.168.0.101 vcenter.poseidon.local vcenter
Or would I have to do something like this;
192.168.0.100 esxi.poseison.local
192.168.0.100 esxi
192.168.0.101 vcenter.poseidon.local
192.168.0.101 vcenter
Thanks for your help
I am having some difficulty in making some changes to the hosts file.
Router is an AC66U with merlin 378.53
I am using the JFFS partition and have tried a couple of ways to get it to work.
Basically I am in the process of setting up an ESXi lab in my office and do not have a dedicated DNS server.
I have set the host name of the ESXi server to esxi. I will also have another server called vcenter.
I have also set a local domain name of poseidon.local in the ESXi server.
I initially tried to edit the hosts file located etc/hosts but of course the additions did not stick after a reboot of the router.
I then added a file called hosts.add to the jffs/config folder with the following entries.
192.168.0.100 esxi.poseison.local esxi
192.168.0.101 vcenter.poseidon.local vcenter
This has not worked, if I try to ping any of the addresses above, I get an error saying they cannot be found.
I then tried a different approach and made a file called hosts.dnsmasq.add in the jffs/config folder with the same entries above. However, still I am not able to resolve any of the hosts.
I am also not sure about adding multiple names after the IP address.
Are the following entries correct?
192.168.0.100 esxi.poseison.local esxi
192.168.0.101 vcenter.poseidon.local vcenter
Or would I have to do something like this;
192.168.0.100 esxi.poseison.local
192.168.0.100 esxi
192.168.0.101 vcenter.poseidon.local
192.168.0.101 vcenter
Thanks for your help