DNS-Wildcard-Subdomain-Auflösung mit Freeipa Centos7

345
songbird159

haben einen DNS-Server, der für jeden Host aufgelöst wird. DNS-Server: 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 

Nicht jedoch für meine 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 

Es ist als CNAME: apps.hgomes.labs eingerichtet und der Host ist: infranode01, wo der Router es empfangen soll.

Meine /etc/resolv.conf befindet sich auf jedem Host, einschließlich meiner lokalen Workstation:

[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 
0

0 Antworten auf die Frage