Looks like Device is not resolving the DNS entries.
before trying to register with smartlicense server, try from device
1. you able to ping tools.cisco.com
2. Make sure your ACL allow Port 443 to connect cisco
3. try telnet tools.cisco.com 443 ( you need to allow in VTY lines use telnet)
below guide for reference :