How DNS and DHCP Servers Communicate (With wireshark)

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 มิ.ย. 2024
  • In this video I explain how DHCP work and how it updates DNS entries for new hosts joining the network. I'll also mention Zero Config
    0:00 Intro
    1:00 the Network configuration
    6:00 Showing DHCP in Wireshark
    6:30 DHCP Discover
    14:40 DHCP Offer
    19:00 DHCP Request
    21:30 DHCP ACK
    22:00 How DHCP Updates DNS
    26:15 Zero Configuration (mDNS, Link-local)
    Resources
    Dhcp datatracker.ietf.org/doc/html...
    Dynamic updates , dhcp RFC2136
    datatracker.ietf.org/doc/html...
    www.cisco.com/c/en/us/td/docs...
    RFC 1497
    www.rfc-editor.org/rfc/rfc149...
    www.rfc-editor.org/rfc/rfc676...
    Link-local
    www.rfc-editor.org/rfc/rfc3927
    Fundamentals of Backend Engineering Design patterns udemy course (link redirects to udemy with coupon)
    backend.husseinnasser.com
    Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)
    network.husseinnasser.com
    Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
    database.husseinnasser.com
    Introduction to NGINX (link redirects to udemy with coupon)
    nginx.husseinnasser.com
    Python on the Backend (link redirects to udemy with coupon)
    python.husseinnasser.com
    Become a Member on TH-cam
    / @hnasr
    Buy me a coffee if you liked this
    www.buymeacoffee.com/hnasr
    Arabic Software Engineering Channel
    / @husseinnasser
    🔥 Members Only Content
    • Members-only videos
    🏭 Backend Engineering Videos in Order
    backend.husseinnasser.com
    💾 Database Engineering Videos
    • Database Engineering
    🎙️Listen to the Backend Engineering Podcast
    husseinnasser.com/podcast
    Gears and tools used on the Channel (affiliates)
    🖼️ Slides and Thumbnail Design
    Canva
    partner.canva.com/c/2766475/6...
    Stay Awesome,
    Hussein
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 18

  • @hnasr
    @hnasr  ปีที่แล้ว +1

    Get my fundamentals of network engineering course network.husseinnasser.com

  • @KaranSharma-ew7io
    @KaranSharma-ew7io ปีที่แล้ว +18

    Your talks are top notch

  • @andreffrosa
    @andreffrosa ปีที่แล้ว +3

    11:07 you can't do that by default because most home routers don't have a local DNS, they just send to you the ISP's DNS resolver (or the one you configure in the router). The reason you can do that is because yo have bonjour (on apple) or havai (on linux and maybe windows), which don't even require a local dns server and are the implementartion of mDNS which you mentioned on the last past of the video. So this only works in networks where the DCHP server and the DNS server co-exist and the DHCP server is aware of this. Good video by the way

  • @AllMightGaming-AMG
    @AllMightGaming-AMG ปีที่แล้ว +6

    I just love the way you communicate, and how you dump your whole thought process! Can you explain how public IPs work? I mean how a dedicated public address is attached to a machine behind router(s) or NAT(s)?

  • @prostem9500
    @prostem9500 ปีที่แล้ว

    Love the use of Wireshark in this video,
    It really helps understanding the subject.
    Hope you continue with it.

  • @Heyfa
    @Heyfa ปีที่แล้ว +2

    Really appreciate your content and the way you explain, and break down, concepts. Thank you so much

  • @farzadmf
    @farzadmf ปีที่แล้ว

    SUUUPER nice video, great walkthrough and explanation, LOVED it!

  • @HarshKapadia
    @HarshKapadia ปีที่แล้ว

    Really interesting! Thank you Hussein!

  • @darpanmalhotra2
    @darpanmalhotra2 ปีที่แล้ว +3

    Just to make it complete: DHCP server adds RR dynamically when lease is assigned. Also, when the lease expires (i.e. 4h in this case), DHCP server removes the same RR.

  • @matnexmix6922
    @matnexmix6922 ปีที่แล้ว

    Niceeeeee, top-notch content Hussein...
    Why did the client send a broadcast again for the DHCP Request... 🤔🤔 Since it already knows the DHCP's IP address...? I'm curious 🧐

  • @Thank_Me_Later
    @Thank_Me_Later ปีที่แล้ว

    Hi 👋 I have a confusion that should I enable or disable 'DNS Relay' option in my router ?
    What exactly it is? What is the use .... If u make a video regarding this will be helpful ❤️

  • @anushree3744
    @anushree3744 ปีที่แล้ว

    @Hussein Waiting for your explanation on the New revised architecture of twitter shared by Elon

  • @tariqosman5811
    @tariqosman5811 ปีที่แล้ว

    💚💯💯👌👌🙏

  • @esmaelmohamed8209
    @esmaelmohamed8209 ปีที่แล้ว

    How could I become a member Hussein?? I mean PayPal not working from Ethiopia

  • @karanshah838
    @karanshah838 ปีที่แล้ว

    What happens if 2 devices have the same host name ? Will the connection to the router not happen ?
    If the connection to the router happens who will the packets be sent to ?

    • @TheAddictioneer
      @TheAddictioneer ปีที่แล้ว

      I’d say it’d follow the same DNS behaviour when two A records pointing to different IP Addresses. It’ll round robin. In work environment, Server admins will be the one controlling hostnames and A records.

    • @darpanmalhotra2
      @darpanmalhotra2 ปีที่แล้ว +1

      It boils down to de-duplication policies defined on DHCP server. A simple policy could be: husseinmac2.home.local, husseinmac2-a.home.local, husseinmac2-b.home.local, husseinmac2-c.home.local

  • @abdirahmann
    @abdirahmann ปีที่แล้ว +1

    this video th-cam.com/video/4yuT5KR7TRc/w-d-xo.html will explain how a rogue dhcp attack can be prevented with a combination of port security and dhcp snooping. i really love and i respect that guy very much, he is a double CCIE. mad stuff!