Comments (3)
The register
example does not register a hostname. It uses the local hostname instead. That's why resolving the hostname test.local
doesn't work.
from dnssd.
Oh ok... any example code I could use to register a hostname? I have an application I'd like to announce to the world its IP address, with name resolution via mDNS.
from dnssd.
I figured it out!
cfg := dnssd.Config{
Name: *instanceFlag,
Type: *serviceFlag,
Domain: *domainFlag,
Port: *portFlag,
Ifaces: ifaces,
IPs: []net.IP{net.ParseIP("127.0.0.1")},
Host: "test", //added this line...
}
from dnssd.
Related Issues (20)
- Rediscovery services and mdns HOT 5
- Question: Service on same IP (cmd/register) is not found by cmd/browse HOT 4
- Fix IP address of a service is published on all network interfaces
- Requested unicast responses are never received
- TXT record updates are not published on all network interfaces
- Lookup services will fail to list ips if the service name contains more than one dot HOT 7
- Publish service on loopback network interface
- Howto: query meta service _services._dns-sd._udp.local HOT 6
- panic (sigsegv) in dnssd.probeAtInterface() HOT 2
- by default listens on port 5353 HOT 3
- Question: Refactoring branch HOT 3
- G601: Implicit memory aliasing in for loop. (gosec) HOT 2
- Browse in refactoring branch is broken for windows HOT 3
- How to get hostname and port from a browse? HOT 2
- mdnsConn.readInto() high cpu usage HOT 1
- Publish service on provided interfaces only HOT 3
- Panic when request interfaces are nil HOT 6
- #35 fix code not int tag v1.2.3 HOT 1
- Browse example only works with full service strings HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dnssd.