How DNS Works - Computerphile

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024
  • How do websites marry up to their IP addresses? Dr Mike Pound explains the Domain Name System - DNS.
    / computerphile
    / computer_phile
    This video was filmed and edited by Sean Riley.
    Computer Science at the University of Nottingham: bit.ly/nottsco...
    Computerphile is a sister project to Brady Haran's Numberphile. More at www.bradyharan.com

Комментарии • 533

  • @justandy3438
    @justandy3438 4 года назад +1854

    The nameserver be like: "I know a guy that knows a guy that can help you."

    • @mikejohnstonbob935
      @mikejohnstonbob935 4 года назад +10

      unless the nameserver is set to recursive

    • @rakeshchowdhury202
      @rakeshchowdhury202 4 года назад +34

      Imagine dns over tor:
      i know a guy that knows a guy that knows a guy.... thar will tell you about the guy

    • @imveryangryitsnotbutter
      @imveryangryitsnotbutter 4 года назад +24

      DNS is no laughing matter! Why once, I met this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy, who knew this guy's cousin...!

    • @paulsteenbergen4223
      @paulsteenbergen4223 4 года назад +16

      Can we trust this guy?
      - I don’t know for sure, he works for NASA though...

    • @all462
      @all462 4 года назад +20

      DNS is no doubt 'SaulGoodMan

  • @rabreu08
    @rabreu08 4 года назад +371

    From the look of the thumbnail, i tought Mike would say "Dunno" and the video would end.

    • @klyanadkmorr
      @klyanadkmorr 4 года назад +6

      ☺ More like "The F*K If I Know!?"

    • @jfly609
      @jfly609 4 года назад +1

      Made my day

    • @ganondos1888
      @ganondos1888 4 года назад +1

      This is a wonderful comment

    • @fanllawf
      @fanllawf 3 года назад +1

      It's a blackbox and you don't really need to know.

    • @kreassiva9138
      @kreassiva9138 3 года назад

      Genius 😂

  • @Darkhalo314
    @Darkhalo314 4 года назад +3

    This channel is singlehandedly helping me pass my Network+ exam

  • @happinessd8429
    @happinessd8429 4 года назад +27

    I love this man's explanations, Clean & Simple. So easy to understand and it helps me out alot!

    • @im-a-trailblazer
      @im-a-trailblazer 2 года назад

      Was going to say something similar, and also the energy and humor he uses to convey the message is great.

  • @BrowncoatInABox
    @BrowncoatInABox 4 года назад +392

    When recommendations are faster than sub box

    • @rakeshchowdhury202
      @rakeshchowdhury202 4 года назад

      Lmau

    • @dumboy886
      @dumboy886 4 года назад +3

      RUclips is definitely not fundamentally broken in many ways.......

    • @_ernst
      @_ernst 4 года назад

      Or how to make people forget that RUclips exists. :)
      I hate this change

    • @Diligent3294
      @Diligent3294 4 года назад +1

      Am I the only one who confused substitution boxes with sub box? Maybe I've studied cryptography too much

    • @Knuddelfell
      @Knuddelfell 3 года назад

      Subscribe to me to get a sub (:

  • @ittvblog
    @ittvblog 4 года назад +61

    I see Dr. Michael Pound, I click like.

    • @mo99
      @mo99 4 года назад +2

      You mean Sir Dr Michael Pound, CBE

    • @lazypunk794
      @lazypunk794 4 года назад +5

      you pound the like button

  • @sickboy5919
    @sickboy5919 4 года назад +90

    title: how something works.
    thumbnail: who tf knows really!?

  • @onlydeadlock6345
    @onlydeadlock6345 4 года назад +95

    You should do a video on DNS records like MX, A, CNAME, TXT, etc.

    • @klyanadkmorr
      @klyanadkmorr 4 года назад +2

      Yeah, I was first learning the DNS server farms out around and basic DNS servers are set up with text like data and they feed update each other until recent better security has been implemented because DNS can be hacked rerouted.

    • @zvpunry1971
      @zvpunry1971 4 года назад

      And the Address and Routing Parameter Area where PTR records live... ;)

    • @DrRChandra
      @DrRChandra 4 года назад +1

      @@klyanadkmorr yep, DNSSEC. Cryptographically signs replies so it can't be faked, unless you have managed to compromise the signing keys...usually very, very unlikely.

    • @-dash
      @-dash 4 года назад

      I love how ambiguous the record names are lol. It's impossible to infer anything from them aside from CNAME. I mean that's gotta be name for something.
      But... A?

    • @zvpunry1971
      @zvpunry1971 4 года назад +2

      @@-dash They are completely fine abbreviations. A is an address and AAAA is an address that is four times as big as the one with a single A. Mail exchangers can be abbreviated with -ME- MX, because eXchange begins with X. ;)

  • @Oladipupo_
    @Oladipupo_ 2 года назад +1

    Watched this video 2 years ago, didn't get much.
    After recent studying, it all makes sense. Great video, this channels is a very helpful reference for top level explanations.

  • @juraev0056
    @juraev0056 4 года назад +4

    Finally a new video from Dr. Mike

  • @supahfly_uk
    @supahfly_uk 4 года назад +4

    Dr Mike on the mic, check 1 - 2.
    This guy is always interesting, i love his encryption videos :D

  • @yasyasmarangoz3577
    @yasyasmarangoz3577 4 года назад +7

    What a coincidence!
    I was looking for information about DNS the whole day, I love computerphile.

    • @maflones
      @maflones 4 года назад

      You should get something better. This video is full of errors.

    • @yasyasmarangoz3577
      @yasyasmarangoz3577 4 года назад

      @@maflones what

  • @zazzy7681
    @zazzy7681 4 года назад +43

    Would be cool if you could do i video on how DNS is changing, DoH : DNS Over HTTPS and DNS over TLS. How unencypted DNS queries are typically stored by ISP to build internet connection records ICRs

    • @winsontam6334
      @winsontam6334 4 года назад +1

      Yes. This.

    • @robertholtz
      @robertholtz 4 года назад +2

      Zazzy I’d rather watch YOUR video. You seem quite knowledgeable.

    • @zazzy7681
      @zazzy7681 4 года назад +2

      @@robertholtz Ha thanks, i studied computer science at UoN Mike and Julie are great lecturers for cyber security and comp sci things in general! Just wish UoN had more investment in cyber security and digital forensics modules while I was there.

    • @tsunghan_yu
      @tsunghan_yu 4 года назад

      THIS

    • @bluerizlagirl
      @bluerizlagirl 4 года назад

      There are ways to thwart secured DNS. If your records have a very short time to live, all queries will end up going to an authoritative nameserver. This request can be used to enable Web service temporarily, only to the IP address ultimately asking for its one. So only queries made in the clear will be answered.

  • @oliveski
    @oliveski 4 года назад +1

    Videos with Mike are always really interesting. I really appreciate this guy!

  • @bluerizlagirl
    @bluerizlagirl 4 года назад +2

    I used to explain it as like making a (land line) phone call to somebody in another town. You look up the town where the other person lives, dial the STD code for that place and then their number. The same code might cover several towns, just as several websites might be served from the same IP address. The name server does the same job as the code pages in the back of the phone book.

  • @kathyh8047
    @kathyh8047 4 года назад +20

    0:33 just bogo search through ips

  • @cmelonwheels
    @cmelonwheels Год назад

    I really love the idea of the waking up in the morning and going "OH NO is Google where I left it???"

  • @realeques
    @realeques 4 года назад

    he's by far my favorite on this format

  • @magnuslord
    @magnuslord 4 года назад +6

    Well I'll be damned, I always thought DNS stood for Domain name server, not domain name system. Thanks!

  • @stannone7272
    @stannone7272 3 года назад

    I like the awkward humor of this man. Would be nice to hang out with this dude for a bit.

  • @PrimitiveFuturologist_YTC
    @PrimitiveFuturologist_YTC 4 года назад +1

    Pleasantly surprised about the amount of information in an 8 min vid. Couldn't have explained it much better myself without going into Radix trees, resolvers, DDNS, BIND views & ACLs and DNSSEC. BTW, not sure there are many (if any) DNS implementations left that aren't patched against Cache poisoning since Dan Kaminsky released the research ~9 years ago.

    • @amaena
      @amaena 4 года назад

      Oh there 100% are. The internet is a wild place.

    • @PrimitiveFuturologist_YTC
      @PrimitiveFuturologist_YTC 4 года назад

      amaena Then they deserve what they get. >:-)

    • @amaena
      @amaena 4 года назад +1

      @@PrimitiveFuturologist_YTC absolutely :) we did a scan of all the nameservers in one of the tld zones, and tried to fingerprint them. There were windows nt nameservers out there. It was scary! I mean, I'm impressed they are still up, but wow.

    • @PrimitiveFuturologist_YTC
      @PrimitiveFuturologist_YTC 4 года назад

      amaena What’s the betting 389 is open on some of ‘em?

  • @longliveriley21
    @longliveriley21 4 года назад +1

    Would love to see Dr. Mike Pound do a video on JSON Web Tokens!!

  • @SyrusDrake
    @SyrusDrake 4 года назад +1

    I'm so happy we finally got to see who lives in that vivarium!

  • @grimreboot
    @grimreboot 4 года назад

    Brilliant video, and straight to the point, thank you guys! This has been bugging me for a while....

  • @ZombieBestOfficial
    @ZombieBestOfficial 4 года назад +52

    Unless google servers are inside your local network, that IP will probably not belong to google :D

    • @whythosenames
      @whythosenames 4 года назад +3

      ZombieBest someone in your network could have set up a proxy server to google

    • @DaVince21
      @DaVince21 4 года назад +3

      @@whythosenames Ah but then they would also have to have set up a local DNS to point to that!

    • @Mr.Leeroy
      @Mr.Leeroy 4 года назад +3

      RFC1918 block does not "belong", It can not by design, because it is not unique. It is like a local variable that means nothing in global scope.

  • @jdlstrm985
    @jdlstrm985 4 года назад +2

    Incredibly well explained! Thank you!!!!

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 4 года назад +1

    One drawback with DNS A records, in particular, is that they only give you an IP address, not a port number. So they are not sufficient to identify a service, only a machine which might provide that service. This was remedied later with the introduction of SRV records, but they are not heavily used.

  • @minirop
    @minirop 4 года назад +8

    7:20: there are PI times 100,000 views. is that a numberphile video?

    • @whythosenames
      @whythosenames 4 года назад +1

      miniro it is actually pi * 1,000,000

  • @shandrio
    @shandrio 4 года назад +1

    Great video and explanation as usual! Now I need the DNS poisoning video!

  • @user-hy8ld9ue5k
    @user-hy8ld9ue5k 4 года назад +1

    do u do any security vids

  • @melind82
    @melind82 4 года назад

    good introductory video, hopefully to be followed up with more technical deep dives into the morass of dns

  • @o-manthehuman7867
    @o-manthehuman7867 2 года назад

    Just set up my website, this stuff is really fun to code for :D

  • @helloworld9018
    @helloworld9018 4 года назад

    Please, don't stop on making videos, you really inspire me :)

  • @JSHanta7
    @JSHanta7 4 года назад +6

    I see mike Pound, I click the video.

    • @esquilax5563
      @esquilax5563 3 года назад

      I click the video, I see Mike Pound

  • @brianx2405
    @brianx2405 3 года назад

    every once in awhile, i forgot that Computerphile is a double entendre and i get re-excited when i notice it again, lol. computerphile/computer_phile. [brain bMyBrain[] = Mind.Blown();

  • @rajeshprajapati1851
    @rajeshprajapati1851 4 года назад

    Very Well Explained !!! Thanks to Dr Mike Pound.

  • @bryan69087
    @bryan69087 4 года назад +1

    MORE MIKE POUND!!!

  • @allanjmcpherson
    @allanjmcpherson 4 года назад +1

    Now what happens if there is a cached IP address that is out of date? Does your computer try to go there and simply fail? I've never seen that so it seems unlikely. Does it try to go there, fail, and send another query indicating the IP address is out of date? Does it do something else altogether?

    • @warnold001
      @warnold001 4 года назад +5

      It goes there and fails.
      Anyone who is going to change their IP should reduce the TTL for their records in advance so the change is picked up quickly, Or have both IP's working for the transition period.

  • @MeditatingDennis
    @MeditatingDennis 3 года назад

    Can you please come to my university and teach computer networks for the new first semestlers? Damn I needed this channel and especially you back then... Thank you for this video, great work. Enjoying your way of describing things very much. ;)

  • @oflameo8927
    @oflameo8927 4 года назад +3

    Google's name server is 8.8.8.8. I hard coded it.

    • @AlRoderick
      @AlRoderick 4 года назад +2

      The backup is 8.8.4.4

  • @SandBoxJohn
    @SandBoxJohn 4 года назад

    Your computer will query its host file before making a query to the computers default gateway. The host file was the method of resolving IP address to domain names before the existence of the Domain Name System. It sill exist so that small networks can be setup a way to resolve host names on their networks without setting up and administrating a domain name server. I use mine as an add blocker by resolving domain that host advertising to 127.0.0.1 .

    • @igorthelight
      @igorthelight 4 года назад

      "I use mine as an add blocker by resolving domain that host advertising to 127.0.0.1 . - "Same (but for blocking unwanted autoupdates)
      For Windows it's "%windir%\System32\drivers\etc" and you will have to open "hosts"

    • @SandBoxJohn
      @SandBoxJohn 4 года назад

      @@igorthelight Syntax error, I've used it on both Windows and Linux. I dumped using Windows 3 years ago so auto updates is not an issue.

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 4 года назад

      Yup. And in fact, the dnsmasq name server, which is designed for small setups like a home office, serves up exactly the contents of your /etc/hosts file, it doesn’t need (or understand) complex zone files like bind does.

  • @EvilTaco
    @EvilTaco 4 года назад

    This is actually quite useful since I'm in the process of creating my first own website

  • @giorgiocarrara646
    @giorgiocarrara646 4 года назад +1

    Have wired and wireless communication exam on monday, what a coincidence! :,)

  • @IgnoreMyChan
    @IgnoreMyChan 4 года назад +1

    Mike just can't stop fixing his sleeve 🤣 🤣

  • @mysterion231
    @mysterion231 4 года назад +1

    Great video thanks.
    You didn't talk much about cache invalidation, you just mention a TTL (how is it define, what happen if the IP changes before TTL expire, ...).
    And when the IP is resolved, how route name server are updated to be able to redirect faster/closer the next time a computer asks?
    Thanks a lot for your videos

    • @anldursun8300
      @anldursun8300 2 года назад

      any source you can suggest dealing with topics you mention?

  • @NaudVanDalen
    @NaudVanDalen 4 года назад

    I didn't think that computerphile.website was a real working URL, but it is. It redirects to this RUclips channel.

  • @sidhantsrivastava7426
    @sidhantsrivastava7426 4 года назад

    I was waiting for this for so long...

  • @dinom8
    @dinom8 4 года назад

    It's probably worth mentioning the hosts file as a potential first point of resolution before DNS

  • @BlackSuneEmpire
    @BlackSuneEmpire 4 года назад

    I'm ready for the DNS cache poisoning video!

  • @kaushilkundalia2197
    @kaushilkundalia2197 4 года назад

    That's some really quality content

  • @Sky_Shaymin
    @Sky_Shaymin 4 года назад

    Oh a video about cache poisoning would be super cool. I know it is sometimes used for redirecting to login pages and the like but of course it is more often used as an attack vector.

  • @hamzapuris
    @hamzapuris 3 года назад

    Amazing explanation, thank you!

  • @shirkit5798
    @shirkit5798 4 года назад

    Thumbnail = perfection

  • @Furiends
    @Furiends 4 года назад +2

    Ill try to give you a day in the life of a DNS query to better understand the technical lifecycle of DNS.
    DNS starts with your computer becoming aware of a DNS name server which is typically done through DHCP and is given by your ISP or sometimes is overriden on your router or computer to something like OpenDNS.
    You will interact with a name server called a cached resolver that might use recursuve lookups or distribute large chunks of updated records around.
    Those servers will follow up a hierarchy first through resolvers then up through domain levels up to the domain root TLDs. However when they do that they arent looking for an awnser to the DNS query like its IP instead its searching for the start of authority.
    At this point the query will be given a name server that can provide an authorative awnser to the query. This will be the domain registrars name servers and these servers generally are not recursive so they can only awnser for specific domain names. Among these servers arecones that actually store the original and most upbto date record which will be reference in the Start of Authority record.
    With that said queries will generally not go this deep ever. Instead youll be relying on a cache or mirror of a name server.

  • @steveDOTdigital
    @steveDOTdigital 3 года назад

    Time to live vs time to live ... how come it is usually set in minutes? Surely it lives longer than that, or is this a setting that tells it how long it will take at the most to go live?

  • @quietackshon
    @quietackshon 4 года назад

    Three seconds in and he's giving us the finger. Noice way to treat your audience mate.

  • @pratikyemekyap8680
    @pratikyemekyap8680 4 года назад

    Paylastiginiz icin bu faydalı bilgiler icin tesekkürler zil açık 👉🔔👉👏👍🏾

  • @rebarius
    @rebarius 4 года назад

    I love your videos ❤️ wished I've done my bachelor degree in nottingham :)

  • @pcgamingmasterrace1360
    @pcgamingmasterrace1360 4 года назад +1

    Love these videos!

  • @TheHamoodz
    @TheHamoodz 4 года назад

    Can't wait for the DNS cache hacking video! It should be pretty fun!

  • @aungthuhein007
    @aungthuhein007 4 года назад

    What's that video with the snake on the left at the end?

  • @PebblesChan
    @PebblesChan 4 года назад +9

    ICANN and its nominated delegates are responsible DNS on the Internet.
    “Internet Corporation of Assigned Names and Numbers”

    • @DanCojocaru2000
      @DanCojocaru2000 4 года назад

      It's a bit weird, when you think about it. Ultimately, there are like 20 organisations which are responsible for the internet properly working.

  • @luketurner314
    @luketurner314 4 года назад +18

    3:36 - "it hasn't got the foggiest idea", cloud pun? fog -> cloud -> internet? (I know it's a British saying)

  • @SteS
    @SteS 3 года назад

    The link at the end of Mikes Snake cannot be clicked on. Is there a link to that?

  • @Macieks300
    @Macieks300 4 года назад +9

    seeing
    dr Pound's snake was pretty unexpected

    • @Macieks300
      @Macieks300 4 года назад

      @@epsi Which video? Did he say he had a snake or was it visible?

  • @magicianstuff
    @magicianstuff 4 года назад

    For those wondering, google.com's IP address is 8.8.8.8

  • @johnsmithking6646
    @johnsmithking6646 4 года назад +3

    “...if you live at home...” where the f should I live ?? lololol 😇

  • @FireWyvern870
    @FireWyvern870 3 года назад

    2:05 it could also be in /etc/hosts if you use linux right?

  • @DaVince21
    @DaVince21 4 года назад

    Ooh, looking forward to the video on DNS cache poisoning!

  • @Bellenchia
    @Bellenchia 4 года назад

    Thanks Mike

  • @FentFanta
    @FentFanta 3 года назад

    Ayyyy they kept the from bacc

  • @aromaticsnail
    @aromaticsnail Год назад

    How about the software that runs the DNS servers? Is it open-source or proprietary?

  • @thewrastler
    @thewrastler 4 года назад

    Lovely Andrew Marr impression here!!

  • @ZayerRs
    @ZayerRs 4 года назад +1

    I dare you to count how many times he says right.... right

  • @Kitsune_Dev
    @Kitsune_Dev 4 года назад

    Can you explain dll injection?

  • @zer001
    @zer001 4 года назад

    Cool topic!

  • @sylvainchevalier1711
    @sylvainchevalier1711 4 года назад

    I love the thumbnail.

  • @garymcleanuk
    @garymcleanuk 4 года назад

    Root servers are not hard coded. You can down load an updated list any time

  • @stormapex7014
    @stormapex7014 4 года назад

    wow,incredible video,explained it like an absloute pro.

  • @jgurtz
    @jgurtz 4 года назад

    How about an extras on DNSSEC?

  • @emanuelebarbato
    @emanuelebarbato 4 года назад

    Waiting for the video about dns poisoning now!

  • @Exxag
    @Exxag 4 года назад

    Computerphile feat. Cornsnake video confirmed?

  • @rucker69
    @rucker69 4 года назад

    If you've ever wanted to listen to an Estuarian talk about computers, here's your man.

  • @guilhermedutragonzagajaime5898
    @guilhermedutragonzagajaime5898 4 года назад

    Dear Computerphile team, would you please enable auto subtitles and auto translation to all your youtube videos? This way We'll be able to recommend your videos to non-english speaking students.

  • @miladsp2
    @miladsp2 3 года назад

    Can you make a video on bonjour / zero config network

  • @rjdp3
    @rjdp3 4 года назад +1

    There are 13 root name servers, operated by 12 different organizations (VeriSign has 2):
    A VeriSign Global Registry Services
    B University of Southern California, Information Sciences Institute
    C Cogent Communications
    D University of Maryland
    E NASA Ames Research Center
    F Internet Systems Consortium, Inc.
    G US DoD Network Information Center
    H US Army Research Lab
    I Netnod
    J VeriSign Global Registry Services
    K RIPE NCC
    L ICANN
    M WIDE Project

  • @zelllers
    @zelllers 4 года назад

    you forgot to include the part about critical vulnerabilities in some implementations

  • @KarthikRao1995
    @KarthikRao1995 4 года назад

    Can you please make a video on what happens after the IP is recieved from the DNS server on how that IP is found on the internet

  • @theVoyager2080
    @theVoyager2080 4 года назад

    His accent is British! So wonderful!

  • @matthewsjc1
    @matthewsjc1 Год назад

    DNS is the Saul Goodman of the internet.

  • @siwiskate
    @siwiskate 4 года назад +1

    Cloudflare: Hold my beer...

  • @PetrSojnek
    @PetrSojnek 4 года назад

    It would be interesting to know what happens if the domain name doesn't exist. Is it number of bounces related, timeout related? Also what if the server IP does change. How does it work so this domain name is updated, or do you have to wait say 24 hours till the cache in all DNS servers get invalidated?

  • @rsage_
    @rsage_ 4 года назад

    "Is Your Mama a Llama," adapted for computer folks... By Dr. Pound.

  • @play_sports_and_read_books
    @play_sports_and_read_books 4 года назад

    So, is that similar to how google search works?

  • @muhammadfakhrurrozi9613
    @muhammadfakhrurrozi9613 4 года назад

    This morning I’ve just read about DNS. Now, RUclips recommend me this video.

  • @aaronwilliams7062
    @aaronwilliams7062 4 года назад +1

    Mike for president!!!

  • @pikachu-fe7tx
    @pikachu-fe7tx 4 года назад +59

    "IP addresses to domain names" hmm

    •  4 года назад +23

      In fact, it does both - IP to dname and vice-versa

    • @juld55
      @juld55 4 года назад +5

      PTR record

    • @maflones
      @maflones 4 года назад +7

      @ Lookup and resolving is two different things. A DNS server resolves domain names into an IP, and it looks up any records connected to an IP.

    • @KieranDevvs
      @KieranDevvs 4 года назад +3

      ​@@maflones I mean, they're not. You're just being semantic.

    • @maflones
      @maflones 4 года назад +1

      @@KieranDevvs Your beliefs are not interesting.

  • @danilofuchs1234
    @danilofuchs1234 4 года назад

    I wonder how DNS domain name invalidation works. Cloudflare, for instance, can change the mapping instantly, but my country's record takes hours (registro.br)

  • @phs125
    @phs125 4 года назад

    I know less about DNS than I knew before watching this...

  • @bradleysnay2223
    @bradleysnay2223 4 года назад

    What happens when an IP address changes for a given domain name? Is there some cascading update for all the dns caches? Seems a bit inefficient unless there's some clever way that the caches are updated.

    • @RottenMuLoT
      @RottenMuLoT Год назад

      nope. you have to wait sometimes a couple of hours for the propagation to happen.