SHARE
TWEET

Untitled

a guest Oct 15th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # DNS Records
  2.  
  3. ### `A record`
  4. - is used to create a mapping between an **address** and **IP**. Here, A stands for Address. You can map more than one addresses to same IP by creating multiple A records. Also, you can map an address to more than one IPs for redundancy by creating multiple A records.
  5.  
  6. ### `CNAME record`
  7. - is used to create a mapping between one address and another address. It is not used to map an address with IP. Here, CNAME stands for Canonical Name. This record is used when you need to alias one address with different other names.
  8. - Do not use this record if you need to retain the original name for some other purpose such as MX record (email).
  9. - Do not use this for root domain address.
  10.  
  11. ### `ALIAS record`
  12. - is used to create alias names for an address, or if you want to alias root domain. It works fine even if you have other records for the same orignal name.
  13.  
  14. ### `URL record`
  15. - is used to redirect (301 redirect) instead of resolving an address to a destination.
  16.  
  17. # `dig` tool
  18. DNS lookups and debugging can be done using a tool named `dig` - domain information groper.
  19.  
  20. ### `dig +trace`
  21. eg: `dig +trace google.com`
  22.  
  23. This trace results shows the way how an address is resolved.
  24.  
  25. To resolve an address,
  26.  
  27. - it first asks any of available root servers to find out gtld (top level domain) name servers.
  28. - from one of gtld, it finds out name servers
  29. - from one of name server, the A record is obtained
  30. - from A record, the IP address is obtained and reaches that server
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top