Resolving IP addresses with Bonjour and mDNS

Wednesday, November 3, 2010


OS X uses this strange mDNS thing that I haven't studied much, but what I have gathered is that host and nslookup don't work for resolving hostnames over mDNS. The way to do this is to use dns-sd -G, like:

$ dns-sd -G v4 foobar.local

Tags: bonjour, dns, ip, mdns, resolve | Posted at 17:37 | Comments (5)


Comments

Max on Tuesday, June 3, 2014 at 04:33

Excelent! Note that you might want your command window 101 characters wide. Example output:

Timestamp A/R Flags if Hostname Address TTL

12:32:23.921 Add 2 12 unitname.local. 192.168.111.9 120

You will need to use CTRL+C to exit.

Nickolas Clemmons on Sunday, April 27, 2025 at 20:56

Is your dzhang.com website getting the traffic it deserves? Many websites miss out on thousands of visitors daily due to low visibility. With our intelligent traffic solution, you can unlock a much larger audience.

To show you the impact, we’re offering a free trial that delivers 4,000 highly targeted visitors to your website. See the results firsthand, and then scale up to 400,000 visitors per month with our advanced packages. Let’s supercharge your website’s traffic and turn visitors into growth. Get more info here: https://cutt.ly/Hrjf2i0J

Penelope Hooley on Monday, April 28, 2025 at 18:46

Is your dzhang.com website harnessing its full potential? Many websites overlook thousands of visitors daily due to low visibility. With our AI-powered traffic solution, you can reach a much larger audience.

To show you the impact, we’re offering a complimentary trial that delivers 4,000 highly targeted visitors to your website. See the results firsthand, and then scale up to 350K visitors per month with our advanced packages. Let’s supercharge your website’s traffic and turn visitors into growth. Get more info here: https://ow.ly/MO9n50VyczH

Kaitlyn Sommer on Wednesday, April 30, 2025 at 15:45

Ever thought how dzhang.com could tap into TikTok for genuine leads? Our AI-driven growth service targets the ideal users—based on hashtags they’re into and profiles they’re following—to supercharge your reach and drive traffic back to you. We’ve had similar websites see 100+ leads in 30 days.
Ready to make TikTok work for dzhang.com? Test it out free for a week here: https://www.youtube.com/shorts/sfVup2NhPQ4

Kazuko Hocking on Wednesday, April 30, 2025 at 21:38

Capture increased leads for your dzhang.com website by using AI on Instagram. If you're looking to drive more traffic, produce leads, and expand your brand's reach, you can find more information and start a free trial here: https://ow.ly/k4Tf50VycPZ

This is an AI-powered Instagram growth service that:
-Grows followers with focused, top-tier audiences.
-Enhances engagement through intelligent AI algorithms.
-Aims at users based on hashtags and accounts they follow.
-Saves time by automating repetitive Instagram tasks.

Our service emphasizes on authentic, organic growth—no bots, without fake followers. It’s perfect for brands like yours that want to turn Instagram into a lead generation powerhouse. Better yet, our service is provided on a monthly subscription basis so you can opt out whenever you like. No contracts and a one-week no-cost trial.

Add a comment

Name:
Email: (optional, not displayed to public)
URL: (do not fill this in — leave blank!)

Comment: