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.

Katrina Giles on Saturday, February 1, 2025 at 17:40

Your website, dzhang.com, might be reaching so many more people! On average, sites like yours could attract over 1,000 visitors per day. That’s where our AI-powered traffic system makes a difference—it’s designed to drive relevant visitors straight to your site.

Take the first step with a free trial of 4,000 visitors to experience the impact firsthand. Afterward, our plans offer up to 350K, helping your website expand its audience and engagement effortlessly. Get more information here: https://ow.ly/NW5o50Urka4

Lien Salo on Wednesday, February 5, 2025 at 07:37

What if your website dzhang.com could see a significant boost in traffic starting today? Many sites unknowingly miss out on hundreds—even thousands—of potential visitors daily. Our AI-powered solution helps you don’t fall into that category.

Get started with a complimentary 4,000 targeted so you can see the results firsthand. Beyond the trial, we offer plans for up to 350K visitors monthly, all targeted to align with your niche. Let’s expand your site’s reach together. Get more information here: http://lxq.pl/y3H8F

Elizbeth Ashcraft on Wednesday, February 5, 2025 at 19:42

Get more leads for your dzhang.com website by using AI on Instagram. If you're looking to drive more traffic, generate leads, and grow your brand's reach, you can get more information and start a free trial here: https://tinyurl.com/y4ykacff

This is an AI-powered Instagram growth service that:
-Increases followers with targeted, high-quality audiences.
-Boosts engagement through smart AI algorithms.
-Targets users based on hashtags and accounts they follow.
-Saves you time by automating tedious Instagram tasks.

Our service focuses on real, organic growth—no bots, no 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 month-by-month subscription basis so you can cancel any time you like. No contracts and a 7 day free trial.

Chelsey Refshauge on Saturday, February 8, 2025 at 09:22

Your website, dzhang.com, could be reaching so many more people! On average, sites like yours could attract over a thousand potential visitors daily. That’s where our AI-powered traffic system makes a difference—it’s designed to attract targeted users straight to your site.

Take the first step with a free trial of 4,000 visitors to realize the impact firsthand. Afterward, our plans offer up to 350,000, helping your website expand its audience and engagement effortlessly. Get more information here: https://2one.in/6RTxrQ

Add a comment

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

Comment: