DNS query to find the CNAME

1

How can I find the CNAME record of www.google.es using the command dig , host and nslookup

    
asked by gmarsi 17.04.2018 в 13:19
source

2 answers

2

With nslookup you can do it like this:

  • nslookup
  • Once you see the prompt >

  • set type = CNAME
  • www.google.es
  • Greetings. David.

        
    answered by 17.04.2018 в 13:36
    0

    With dig you can do it like this:

    dig CNAME www.google.es

    This option will perform the query to the DNS server configured on the computer from which the command is executed (localhost or 127.0.0.1)

    However, to make the query to a specific server you can do it like this:

    dig CNAME @ 1.1.1.1 www.google.es

        
    answered by 17.04.2018 в 17:35