tem um servidor DNS que resolve todos os hosts. Servidor DNS: idm.hgomes.labs
[vagrant@idm ~]$ nslookup nfs idm.hgomes.labs
Server: idm.hgomes.labs
Address: 192.168.1.40
Name: nfs.hgomes.labs
Address: 192.168.1.49
[vagrant@idm ~]$ nslookup infranode01 idm.hgomes.labs
Server: idm.hgomes.labs
Address: 192.168.1.40
Name: infranode01.hgomes.labs
Address: 192.168.1.46
Mas não para meus aplicativos CNAME.hgomes.labs
[root@master01 ~]# nslookup apps.hgomes.labs idm.hgomes.labs
Server: idm.hgomes.labs
Address: 192.168.1.40
*** Can't find apps.hgomes.labs: No answer
[vagrant@idm ~]$ curl -kv test.apps.hgomes.labs
* Could not resolve host: test.apps.hgomes.labs; Name or service not known
* Closing connection 0
curl: (6) Could not resolve host: test.apps.hgomes.labs; Name or service not known
Ele é configurado como CNAME: apps.hgomes.labs e o host é: infranode01, onde é o roteador que deve recebê-lo.
Meu /etc/resolv.conf está em todos os hosts, incluindo minha estação de trabalho local:
[root@infranode01 ~]# cat /etc/resolv.conf
# nameserver updated by /etc/NetworkManager/dispatcher.d/99-origin-dns.sh
# Generated by NetworkManager
search hgomes.labs
nameserver 192.168.1.40