Loading

Testing for DNS With cURL When nslookup and dig Are Missing in Container

Date de publication: Jul 25, 2025
Étapes

CONTENTS

You are in a container. You want to test DNS when dig and nslookup are missing but only curl is available.

STEPS TO FOLLOW

Use curl with the following options. This trick will allow you to get the DNS of an address.
 
randall.tom@rtom-ltm ~ % curl -kv https://www.google.com
*   Trying 172.217.14.68:443...
* Connected to www.google.com (172.217.14.68) port 443 (#0)



 
Numéro d’article de la base de connaissances

001114416

 
Chargement
Salesforce Help | Article