Adding A records to Expressway hosts.conf file
So it finally happened to me – an MRA project with multiple domains. Previously I didn’t have to manually add entries to the hosts file on Expressway and needed to do some research. Here’s what came out of it:
‘A’ records are added to hosts.conf file which doesn’t exist by default and must be located at /tandberg/etc/dnsmasq.conf.d/. The screenshot below shows that it doesn’t exist (BTW, everything is done on Expressway version X12.6.2).
Let’s create the file with touch:
No errors! Great!
Edit the file with vim:
After pressing ‘Enter’ we enter the file editing mode. Press ‘i’ to start typing. When done, press ‘Esc’ to exit editing and type ‘:wq!’ to write the file and quit it.
Let’s see if it worked using cat:
We can see that the entry is there. We need to restart the dnsmasq for changes to take effect. Type: /etc/init.d/dnsmasq restart
Records in hosts.conf survive VM reboot, so they’re permanent.