How DNS and DHCP Servers Communicate (With wireshark)
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 https://datatracker.ietf.org/doc/html/rfc1541
Dynamic updates , dhcp RFC2136
https://datatracker.ietf.org/doc/html/rfc2136
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dhcp/configuration/xe-3se/3850/dhcp-xe-3se-3850-book/dhcp-client-option-12.pdf
RFC 1497
https://www.rfc-editor.org/rfc/rfc1497.html
https://www.rfc-editor.org/rfc/rfc6762#ref-Zeroconf
Link-local
https://www.rfc-editor.org/rfc/rfc3927
Fundamentals of Backend Engineering Design patterns udemy course (link redirects to udemy with coupon)
https://backend.husseinnasser.com
Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)
https://network.husseinnasser.com
Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
https://database.husseinnasser.com
Introduction to NGINX (link redirects to udemy with coupon)
https://nginx.husseinnasser.com
Python on the Backend (link redirects to udemy with coupon)
https://python.husseinnasser.com
Become a Member on YouTube
https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join
Buy me a coffee if you liked this
https://www.buymeacoffee.com/hnasr
Arabic Software Engineering Channel
https://www.youtube.com/channel/UChWZsjdoRvZ0T9QWZOD6UpA
🔥 Members Only Content
🏭 Backend Engineering Videos in Order
https://backend.husseinnasser.com
💾 Database Engineering Videos
🎙️Listen to the Backend Engineering Podcast
https://husseinnasser.com/podcast
Gears and tools used on the Channel (affiliates)
🖼️ Slides and Thumbnail Design
Canva
https://partner.canva.com/c/2766475/647168/10068
Stay Awesome,
Hussein
by Hussein Nasser
linux dhcp server
Get my fundamentals of network engineering course https://network.husseinnasser.com
How could I become a member Hussein?? I mean PayPal not working from Ethiopia
💚💯💯👌👌🙏
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 ❤️
this video https://www.youtube.com/watch?v=4yuT5KR7TRc 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!
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 🧐
@Hussein Waiting for your explanation on the New revised architecture of twitter shared by Elon
Love the use of Wireshark in this video,
It really helps understanding the subject.
Hope you continue with it.
Really interesting! Thank you Hussein!
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
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.
SUUUPER nice video, great walkthrough and explanation, LOVED it!
Really appreciate your content and the way you explain, and break down, concepts. Thank you so much
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 ?
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)?
Your talks are top notch