Configuring and verifying DNS setup for APIC
Configuration of DNS for APIC is done under Fabric -> fabric Policies tab. Then in navigation pane go to
Global Policies -> DNS profile à Default.
In the work pane, you can add DNS providers (those are the ip addresses of the DNS servers) and DNS domains.
This is sufficient to have DNS configured on the APIC
This is illustrated below:
Ssh to the APIC and check :
admin@apic1:~> cat /etc/resolv.conf
# Generated by IFC
This should list the DNS servers configured and you should be able to contact any hosts by its name:
admin@apic1:~> ping www.cisco.com
PING origin-www.cisco.com (184.108.40.206) 56(84) bytes of data.
64 bytes from www1.cisco.com (220.127.116.11): icmp_seq=1 ttl=234 time=124 ms
64 bytes from www1.cisco.com (18.104.22.168): icmp_seq=2 ttl=234 time=124 ms
--- origin-www.cisco.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1639ms
rtt min/avg/max/mdev = 124.361/124.503/124.645/0.142 ms