<p>I have used external DNS with my load balancer. Now I have to print the output on my Gitlab console.</p>

<p>This is the service:</p>

<pre><code>test-dev-service-lb-http            LoadBalancer   192.20.18.123   XXXXXXXXXXXXXXX-623196XX.us-east-1.elb.amazonaws.com   443:32479/TCP 
</code></pre>

<p>Now I can get the ELB endpoint on the console by running a command: <code>kubectl get svc -o wide</code>. But I want to print the DNS attached to this ELB in Route 53 as well. </p>

<p>How to do that?</p>

gamechanger17
<p>Kubernetes doesn't have the knowledge of DNS records pointing to your LB.
You should use <a href="https://docs.aws.amazon.com/cli/latest/reference/route53/list-resource-record-sets.html" rel="nofollow noreferrer">AWS CLI</a> to get Route 53 records.</p>
