Hi Sheng,

Thank you very much for the information. After debugging, I also figured
out that addDhcpEntry() method in VR takes care of adding the hostname-IP
mapping.

So, when I used the same implementation in NuageVspElement, hostname-Ip
mapping was getting set on VR. And after setting VR as the DNS server in
VM, guest VMs got its hostname set properly. Looks like guest VM uses DNS
reserve lookup to get the hostname. Please correct me if I am wrong. Guest
VM I am using is default 5.4 CentOS template.

I will get back to you if I need some more clarifications.

Thanks,
Suresh



On Tue, Jan 27, 2015 at 11:44 PM, Sheng Yang <sh...@yasker.org> wrote:

> Hi Suresh,
>
> You can check edithosts.sh in the VR. It was called either VR is started
> with existed VMs, or a new VM is created.
>
> Dnsmasq would read the /etc/hosts file and offer hostname to guest VM.
>
> --Sheng
>
> On Mon, Jan 26, 2015 at 6:53 PM, Suresh Ramamurthy <
> suresh.ramamur...@nuagenetworks.net> wrote:
>
> > Hi Alena, Sheng Yang,
> >
> > In my setup where I have DNS provider as VR and Connectivity/DHCP
> provider
> > as NuageVsp, /etc/hosts file is not getting populated with hostname to IP
> > map.
> >
> > Could you please explain how and when is Guest VM hostname to its IP
> > mapping created on VR where VR is running as a DNS server. What am I
> > missing here? Is there any documentation available on this?
> >
> > Also, I found that hostname of the guest VM, with CentOS, is not getting
> > its host name set.
> >
> > Help is much appreciated..
> >
> > Thanks,
> > Suresh
> >
>

Reply via email to