What's new

Hosts File?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

DoZZa

Occasional Visitor
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 :)
 
Never mind, I managed to figure it out.

hosts.dnsmasq.add is not a valid configuration file anyway.

Managed to get it to work with hosts.add.

I put a copy in jffs and jffs/config just to be sure.

All good now :)
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top