Page 1 of 2 12 LastLast
Results 1 to 16 of 23

Thread: Everything you wanted to know about DNS records but were afraid to ask

  1. #1
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    384 times in 313 posts

    Everything you wanted to know about DNS records but were afraid to ask

    all credit for this goes to Miggyman who wrote such a nice post on DNS record types , I felt it needed recording for posterity.

    please direct your gifts and admiration to him.

    ---------------------------------------------------

    For those interested, your basic dns records are as follows

    A = Address record, A records are used to map an IP address to a hostname or subdomain.

    CNAME = Canonical name, a CNAME record refereces another record, effectivley making it an alias, normaly used to map a subdomain to an existing domain.

    MX = Mail exchanger, an MX record specifies a mail server for the domain, normaly more than one will be specified and they will be given a priority to denote which server to try first (for backup mail servers etc)

    NS = Name server, an NS record lists the DNS servers responsible for the domain, again more than one can and normaly is provided so if the primary server fails a backup can be used.

    PTR = Pointer, a PTR record is used to resolve an ip address to a name, PTR records are what make reverse lookups work.

    SOA = Start of authority, a SOA record contains a lot of the basic information about the domain relating to how updates should be handled, primary name server and contact detail.

    And because im a nice guy.. you can all have a nice example zone file

    - = SOA record = -
    -------------------
    @ IN SOA ns0.example.com. hostmaster.example.com. (
    2005081701 ; Serial
    10800 ; Refresh
    3600 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum

    - = MX Record2 = -
    -------------------
    MX 5 mx1.example.com.
    MX 5 mx2.example.com.

    - = NS Records = -
    ------------------
    IN NS ns0.example.com.
    IN NS ns1.example.com.

    - = A Records = -
    ----------------
    @ IN A 999.888.777.666
    cvs IN A 888.888.888.888

    These effectivley map example.com to 999.888.777.666 (yes, i know it's invalid!) and cvs.example.com to 888.888.888.888.

    It's worth noting this a record is special since the "@" means all destinations not setup in the zone file for this domain goto this, this is effectivley the "base" level of the dns.

    - = CNAME Record = -
    ----------------------
    www IN CNAME example.com.

    This maps the www subdomain (yes, it is actualy a subdomain :O) to example.com, any changes made to the record for example.com automaticly filter back to www, www.example.com will go to 999.999.999.999, subdomains can basicly be pointed anywhere you want to point them

    I've not listed a PTR record in this zone file because well, it wouldnt go in one, the PTR records would go into a zone file for the IP range as oppsed to the hostname, such a file would be named 777.888.999.in-addr.arpa and the PRT records would be specified using the last octet.

    So for example.com we'd have a PTR record like this

    666 IN PTR example.com.



    This has been an InfoMiggy broadcast for the rubber chicken network
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  2. #2
    HEXUS.timelord. Zak33's Avatar
    Join Date
    Jul 2003
    Location
    I'm a Jessie
    Posts
    35,185
    Thanks
    3,126
    Thanked
    3,179 times in 1,926 posts
    • Zak33's system
      • Storage:
      • Kingston HyperX SSD, Hitachi 1Tb
      • Graphics card(s):
      • Nvidia 1050
      • PSU:
      • Coolermaster 800w
      • Case:
      • Silverstone Fortress FT01
      • Operating System:
      • Win10
      • Internet:
      • Zen FTC uber speedy
    Miggy......my man....

    that is good and I know it's good (now)

    Quote Originally Posted by Advice Trinity by Knoxville
    "The second you aren't paying attention to the tool you're using, it will take your fingers from you. It does not know sympathy." |
    "If you don't gaffer it, it will gaffer you" | "Belt and braces"

  3. #3
    Cable Guy Jonny M's Avatar
    Join Date
    Jul 2003
    Location
    Loughborough Uni
    Posts
    4,263
    Thanks
    0
    Thanked
    4 times in 1 post
    Blast from the past, I'm going to post in this thread.

    Is there anything wrong with not having a "www" entry? Is the redirecting of http://www.example.com to http://example.com done in Apache / web server of choice?

    How can you have http://caged.net work, but not http://randomsubdomain.caged.net (if I read you right, setting @ in the A records would make every random sub domain entry work?

  4. #4
    Hellsteeth! Lord Midas's Avatar
    Join Date
    Apr 2007
    Location
    Amazingstoke
    Posts
    919
    Thanks
    16
    Thanked
    18 times in 17 posts
    • Lord Midas's system
      • Motherboard:
      • Gigabyte Z390 AORUS ELITE
      • CPU:
      • Intel i7 9700k w/ Corsair H100i Hydro PRO RGB Liquid CPU Cooler
      • Memory:
      • Corsair Vengeance LPX DDR4-3200 8GB x 2
      • Storage:
      • 1TB Samsung 970 Evo NVMe M.2 + 2TB Intel 660p NVMe M.2
      • Graphics card(s):
      • Asus RTX 2080 TURBO 8GB
      • PSU:
      • Corsair RM750x
      • Case:
      • Fractal Design Define R6
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • LG 34UM88 Ultrawide 34" - 3440x1440
      • Internet:
      • Virgin - Speakers: Pair of Adam T5V

    re: Everything you wanted to know about DNS records but were afraid to ask

    Nice old thread. I'm pretty sure I didn't understand any of that
    Kickstarters Pledged:
    Godus Stonehearth Rain World Satellite Reign


  5. #5
    Does he need a reason? Funkstar's Avatar
    Join Date
    Aug 2005
    Location
    Aberdeen
    Posts
    19,874
    Thanks
    629
    Thanked
    962 times in 813 posts
    • Funkstar's system
      • Motherboard:
      • Gigabyte EG45M-DS2H
      • CPU:
      • Intel Core2Quad Q9550 (2.83GHz)
      • Memory:
      • 8GB OCZ PC2-6400C5 800MHz Quad Channel
      • Storage:
      • 650GB Western Digital Caviar Blue
      • Graphics card(s):
      • 512MB ATI Radeon HD4550
      • PSU:
      • Antec 350W 80+ Efficient PSU
      • Case:
      • Antec NSK1480 Slim Mini Desktop Case
      • Operating System:
      • Vista Ultimate 64bit
      • Monitor(s):
      • Dell 2407 + 2408 monitors
      • Internet:
      • Zen 8mb

    re: Everything you wanted to know about DNS records but were afraid to ask

    For once, this is a good bump

    Hadn't seen this thread before. Tis a good read.

  6. #6
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    re: Everything you wanted to know about DNS records but were afraid to ask

    It is - and well worth its sticky status.
    Last edited by peterb; 06-03-2008 at 05:30 PM.
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  7. #7
    Network|Geek kidzer's Avatar
    Join Date
    Jul 2005
    Location
    Aberdeenshire
    Posts
    1,732
    Thanks
    91
    Thanked
    46 times in 41 posts
    • kidzer's system
      • Motherboard:
      • $motherboard
      • CPU:
      • Intel Q6600
      • Memory:
      • 4GB
      • Storage:
      • 1TiB Samsung
      • Graphics card(s):
      • BFG 8800GTS OC
      • PSU:
      • Antec Truepower
      • Case:
      • Antec P160
      • Operating System:
      • Windows 7
      • Monitor(s):
      • 20" Viewsonic
      • Internet:
      • ~3Mbps ADSL (TalkTalk Business)

    re: Everything you wanted to know about DNS records but were afraid to ask

    I've read it a few times, and its still a good read.

    How geeky am I, saying its a good read, I say the same about my CCNA Routing Protocols book!
    "If you're not on the edge, you're taking up too much room!"
    - me, 2005

  8. #8
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    re: Everything you wanted to know about DNS records but were afraid to ask

    Quote Originally Posted by Jonny M View Post
    Blast from the past, I'm going to post in this thread.

    Is there anything wrong with not having a "www" entry? Is the redirecting of Example Web Page to Example Web Page done in Apache / web server of choice?

    How can you have caged.net work, but not caged.net (if I read you right, setting @ in the A records would make every random sub domain entry work?
    No, there's nothing stopping you from using just the root domain as a webserver, typically when you type (for e.g.) microsoft.com, either the browser can connect to it and gets a redirect to the www. address, or the domain host refuses the connection (because there's no httpd) and the browser automatically tries to prefix the address with www. to see if it has any better luck. However, that said, it's normally best practice to keep http and dns servers on logically or physically separate hosts, as a sort of security padding, but not particularly necessary, on some hosts it doesn't make a difference, depending on how it's set up, usually www. subhosts are just CNAMEs, or A's to a virtual nic, because it's cheaper.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  9. #9
    Registered User
    Join Date
    Nov 2008
    Posts
    4
    Thanks
    0
    Thanked
    0 times in 0 posts

    re: Everything you wanted to know about DNS records but were afraid to ask

    Just wondering...didn't you mean "were" instead of "where" in your thread name ?
    ".........know about DNS records but where afriad to ask"
    other than that, thanks for this post

  10. #10
    I R Toff Pandi! TAKTAK's Avatar
    Join Date
    Mar 2008
    Location
    Vergon6
    Posts
    7,450
    Thanks
    553
    Thanked
    1,012 times in 747 posts
    • TAKTAK's system
      • Motherboard:
      • ASUS ROG STRIX B450-F GAMING
      • CPU:
      • Ryzen 7 3700X
      • Memory:
      • 16GB Corsair Vengeance LPX 3200MHz
      • Storage:
      • 500GB Samsung 970 EVO
      • Graphics card(s):
      • 5700 XT 50th Anniversary
      • PSU:
      • Be Quiet SFX-L 600W
      • Case:
      • Lian Li PC-O11 Mini
      • Operating System:
      • Windows 10
      • Monitor(s):
      • LG Ultrawide
      • Internet:
      • 200Mb FTTP

    re: Everything you wanted to know about DNS records but were afraid to ask

    Quote Originally Posted by Kay-Q View Post
    Just wondering...didn't you mean "were" instead of "where" in your thread name ?
    but thats just nit-picking...

    if you followed the same lines then you'd have to pick out the 'afriad' in the title too
    Post Counts and Other Rewards, Rules, Folding@Home, Fans: Push vs Pull vs Push-Pull, Corsair PSU OEMs.

    Quote Originally Posted by razer121 View Post
    Would you like me to enter you? it would be my pleasure
    TAKTAK.co.uk

  11. #11
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    384 times in 313 posts

    Re: Everything you wanted to know about DNS records but were afraid to ask

    title changed to please the pedants.
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  12. #12
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Re: Everything you wanted to know about DNS records but were afraid to ask

    It may be worth also mentioning that the minimum TTL should be 43200. Having less than that can some times put you on blacklists such as SORBS.
    □ΞVΞ□

  13. #13
    Registered User
    Join Date
    Nov 2008
    Posts
    1
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Everything you wanted to know about DNS records but were afraid to ask

    Hi Admin

    Not only Miggyman, but you also wrote very well about DNS.
    I forgot to tell.. I am Nick Adam from NY. I am new to this forum and this is my first post.

    Coming back with some cool stuff.


    Nick

  14. #14
    Senior Member oolon's Avatar
    Join Date
    Mar 2007
    Location
    London
    Posts
    2,294
    Thanks
    150
    Thanked
    302 times in 248 posts
    • oolon's system
      • Motherboard:
      • Asus P6T6
      • CPU:
      • Xeon w3680
      • Memory:
      • 3*4GB Kingston ECC
      • Storage:
      • 160GB Intel G2 SSD
      • Graphics card(s):
      • XFX HD6970 2GB
      • PSU:
      • Corsair HX850
      • Case:
      • Antec P183
      • Operating System:
      • Windows 7 Ultimate and Centos 5
      • Monitor(s):
      • Dell 2408WFP
      • Internet:
      • Be* Unlimied 6 down/1.2 up

    Re: Everything you wanted to know about DNS records but were afraid to ask

    You missed a couple of record types, that people might increasingly see.

    AAAA = ipv6 ip address
    TXT = Text record.
    SPF = Sender Policy Framework, this can also be done in a TXT record IN TXT "v=spf1 ...."

    A full list of DNS record types, not for the faint of heart.

  15. #15
    Registered User
    Join Date
    Sep 2009
    Location
    London
    Posts
    2
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Everything you wanted to know about DNS records but were afraid to ask

    Thanks for the info

  16. #16
    Registered+
    Join Date
    Dec 2009
    Location
    Glasgow
    Posts
    17
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Everything you wanted to know about DNS records but were afraid to ask

    Thanks Moby-Dick. So what does the following mean:

    MX 5 mx1.example.com.
    MX 5 mx2.example.com.

    I mean specifically the 5 before mx1.example.com and mx2.example.com. Many thanks, in advance.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Compact Disc Digital Audio
    By Zak33 in forum Consumer Electronics
    Replies: 20
    Last Post: 06-08-2004, 04:12 PM
  2. Need a DNS expert
    By Steve in forum Networking and Broadband
    Replies: 2
    Last Post: 26-04-2004, 01:32 PM
  3. ADSL DNS nightmare... I think it's DNS anyhoo
    By Tumble in forum Networking and Broadband
    Replies: 5
    Last Post: 03-03-2004, 01:02 PM
  4. Forum Speed
    By DR in forum General Discussion
    Replies: 10
    Last Post: 04-01-2004, 11:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •