This article assists with troubleshooting Contrail vDNS. This information will also be useful when submitting a JTAC ticket. This contains introspect commands and also some logs and other commands that need to be used.
Logs that need to be gathered
contrail-dns: Provides DNS service to the VMs spawned on different compute nodes. It uses Bind. If the deployment has more than one controller, each vrouter node connects to two Contrail controller nodes running contrail-dns process. The controller selection process is handled by discovery process.
Logs:
Contrail-control logs:/var/log/contrail/contrail-control.log, /var/log/contrail/contrail-control-stdout.log
Contrail-dns logs: /var/log/contrail/contrail-dns.log, /var/log/contrail/contrail-dns-stdout.log
Contrail-named logs: /var/log/contrail/contrail-named.log, /var/log/contrail/contrail-named-stdout.lo
Note: If Contrail-named logs are empty then please run “docker logs contrail-named-container-id”
Dig command from the VM or Physical server with the DNS IP address being the @ IP address
EG: dig [email protected] @10.244.8.72
On the controller run contrail-rndc -c /etc/contrail/dns/contrail-rndc.conf dumpdb -zones
contrail-rndc -c /etc/contrail/dns/contrail-rndc.conf dumpdb -zones
The above command creates a file "named_dump.db" that has all records from all zones, which you can grep to look for records
/etc/contrail/dns/*