есть DNS-сервер, который разрешает для каждого хоста. 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
Но не для моего CNAME apps.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
Он настроен как CNAME: apps.hgomes.labs, а хост: infranode01, где его должен получить маршрутизатор.
Мой /etc/resolv.conf находится на каждом хосте, включая мою локальную рабочую станцию:
[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