Advertisement
d1cor

dns_mx_reverse_check

Jan 5th, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.67 KB | None | 0 0
  1. diego@cryptos:~$ # consultamos los mx de un dominio
  2.  
  3. diego@cryptos:~$ dig mx juncotic.com
  4.  
  5. ; <<>> DiG 9.11.2 <<>> mx juncotic.com
  6. ;; global options: +cmd
  7. ;; Got answer:
  8. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 713
  9. ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
  10.  
  11. ;; OPT PSEUDOSECTION:
  12. ; EDNS: version: 0, flags:; udp: 512
  13. ;; QUESTION SECTION:
  14. ;juncotic.com.          IN  MX
  15.  
  16. ;; ANSWER SECTION:
  17. juncotic.com.       3536    IN  MX  10 mx.zoho.com.
  18. juncotic.com.       3536    IN  MX  20 mx2.zoho.com.
  19. juncotic.com.       3536    IN  MX  50 mx3.zoho.com.
  20.  
  21. ;; Query time: 73 msec
  22. ;; SERVER: 8.8.4.4#53(8.8.4.4)
  23. ;; WHEN: Fri Jan 05 20:49:16 -03 2018
  24. ;; MSG SIZE  rcvd: 105
  25.  
  26.  
  27.  
  28. diego@cryptos:~$ # ahora obtenemos la ip de uno cualquiera:
  29.  
  30. diego@cryptos:~$ host mx.zoho.com
  31. mx.zoho.com has address 204.141.32.121
  32.  
  33.  
  34. diego@cryptos:~$ # ahora preguntamos a qué nombre corresponde esa ip:
  35.  
  36. diego@cryptos:~$ dig -x 204.141.32.121
  37.  
  38. ; <<>> DiG 9.11.2 <<>> -x 204.141.32.121
  39. ;; global options: +cmd
  40. ;; Got answer:
  41. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64834
  42. ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
  43.  
  44. ;; OPT PSEUDOSECTION:
  45. ; EDNS: version: 0, flags:; udp: 512
  46. ;; QUESTION SECTION:
  47. ;121.32.141.204.in-addr.arpa.   IN  PTR
  48.  
  49. ;; ANSWER SECTION:
  50. 121.32.141.204.in-addr.arpa. 783 IN PTR mx.zoho.com.
  51. 121.32.141.204.in-addr.arpa. 783 IN PTR mx.zohomail.com.
  52.  
  53. ;; Query time: 72 msec
  54. ;; SERVER: 8.8.4.4#53(8.8.4.4)
  55. ;; WHEN: Fri Jan 05 20:49:56 -03 2018
  56. ;; MSG SIZE  rcvd: 107
  57.  
  58. diego@cryptos:~$ # está bien configurado porque entre los nombres a los que apunta (PTR) la ip está el mismo que resolvimos directamente, y que nos dio la misma IP.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement