Armon Dadgar
317513147d
Merge pull request #21 from gonzojive/handle-query
...
Make mDNS server response more compatible with RFC 6762 spec.
2014-11-03 12:53:43 -08:00
Armon Dadgar
40f4a787fc
Merge pull request #18 from gonzojive/hostname-questions
...
Make MDNSService respond to questions for A/AAAA records about its hostname.
2014-11-03 12:08:13 -08:00
Armon Dadgar
827e8b390b
Merge pull request #17 from gonzojive/refactor-zone
...
Refactor mdns.MDNSService API in zone.go.
2014-11-03 12:07:28 -08:00
Armon Dadgar
b720948f88
Merge pull request #23 from ryanuber/fork-net
...
Switch to fork of go.net
2014-11-03 11:42:22 -08:00
Ryan Uber
d83f28beed
Switch to fork of go.net
2014-11-03 11:36:47 -08:00
Armon Dadgar
075c214825
Merge pull request #19 from gonzojive/default-ttl
...
Update defaultTTL to 120 seconds.
2014-10-20 10:56:37 -07:00
Red Daly
1ec3c33419
Merge branch 'master' of github.com:armon/mdns into refactor-zone
2014-10-17 15:50:33 -07:00
Red Daly
68622dea49
Make mDNS server response more compatible with RFC 6762 spec.
...
- dns.Msg construction is now explicit, with comments pointing to the RFC about
the values of each field.
- dns.Msg responses no longer contain a Question section, which is not allowed
according to the spec.
- handleQuestion's interface returns both unicast and multicast answer records.
(Note: These are not yet treated differently by the sendResponse method.)
- removed unused error return value of handleQuestion
2014-10-17 15:42:54 -07:00
Red Daly
4585af0093
Update defaultTTL to 120 seconds.
2014-10-17 13:54:08 -07:00
Red Daly
5699c717d1
Make MDNSService respond to questions for A/AAAA records about its hostname.
2014-10-16 14:34:25 -07:00
Red Daly
68fbdf7e65
Fix compilation problem with zone_test.go (s/test.Domain/test.domain/).
2014-10-16 14:01:13 -07:00
Armon Dadgar
6c44326b32
Merge pull request #15 from gonzojive/refactor-client
...
Refactor client.go.
2014-10-16 10:39:12 -07:00
Red Daly
e39d11792c
Refactor mdns.MDNSService API in zone.go.
...
- Change API for constructing an MDNSService: use NewMDNSService func instead of
creating an MDNSService struct and calling its Init method.
- Allow full specification of the host name and IP addresses of an MDNSService
instead of relying on the net package to infer them from the OS.
- Remove deprecated Addr member of MDNSService.
- Modify tests to comply with new API.
2014-10-16 10:38:12 -07:00
Red Daly
6f752e8251
Refactor client.go.
...
- Add WantUnicastResponse to allow sending mDNS queries that desire unicast
responses (see section 5.4 in RFC6762).
- Listen for UDP packets sent to the mDNS multicast addresses ("ipv4:
224.0.0.251", ipv6: "ff02::fb")
- Fix bug on line 177 of client.go: Ignored error during sendQuery.
- Add TODO comments regarding unimplemented features of mDNS protocol.
- Add error logging statement when DNS packet parsing failed.
2014-10-15 14:49:00 -07:00
Armon Dadgar
f5542c2469
Merge pull request #12 from richtr/improved_dns_srv_formatting
...
Pull request for issue #4
2014-09-13 15:38:04 -07:00
Armon Dadgar
3e798410dc
Merge pull request #11 from richtr/no_ipbind_warning_on_success
...
Add IP binding suppression if at least one UDP listener is registered
2014-09-13 15:35:21 -07:00
Armon Dadgar
c4aa495dc0
Merge pull request #10 from richtr/no_recursive_dns
...
Suppress recursive mDNS queries and query for PTR records only
2014-09-13 15:34:53 -07:00
Armon Dadgar
66d411ff65
Merge pull request #9 from richtr/handle_multiple_mdns_questions
...
Handle multiple mDNS questions as allowed in RFC6762
2014-09-13 15:34:14 -07:00
richtr
28988a0358
General bug fixes to pass tests
2014-09-11 14:32:24 +02:00
richtr
0ae91b08c8
Update example in README
2014-09-11 14:18:46 +02:00
richtr
2f2002e875
Update tests to incorporate the latest library changes
2014-09-11 14:18:27 +02:00
richtr
a8a4397315
General updates to DNS SRV handling and decreased reliance on IP addressing (use FQDNs where we can)
2014-09-11 14:16:20 +02:00
richtr
095233e3dc
Add IP binding suppression if at least one listener is registered
2014-09-11 13:31:19 +02:00
richtr
256fad4daf
Suppress recursive mDNS queries and query for PTR records only
2014-09-11 13:29:21 +02:00
richtr
4719107d49
Handle multiple mDNS questions as allowed in RFC6762
2014-09-11 13:26:27 +02:00
Armon Dadgar
decec489d7
Fixing issue with query flooding
2014-07-10 10:58:39 -07:00
Armon Dadgar
70462deb06
Increase default TTL to 10 seconds. Fixes #3 .
2014-05-23 10:34:25 -07:00
Armon Dadgar
847afc6720
Re-write the name of the service for correct lookups
2014-05-22 10:51:59 -07:00
Armon Dadgar
4cb233f48b
Fixing aliasing issues
2014-05-20 11:38:15 -07:00
Armon Dadgar
8be7e3ac4e
Client sets the default domain if not provided
2014-02-25 14:19:05 -08:00
Armon Dadgar
9215784091
Adding ability to set multicast query interface
2014-02-25 14:16:06 -08:00
Armon Dadgar
dab97f2090
Support providing a binding interface
2014-02-24 11:41:03 -08:00
Armon Dadgar
17be83de46
Remove the extremely verbose log messages
2014-01-29 17:31:54 -08:00
Armon Dadgar
4d2ea38ee8
Updating gitignore
2014-01-29 16:17:00 -08:00
Armon Dadgar
03bba8e79f
Filling in the readme
2014-01-29 16:16:47 -08:00
Armon Dadgar
de767a076b
Fixing bugs, adding a lookup test
2014-01-29 15:58:17 -08:00
Armon Dadgar
c1e906499b
Adding a simple client
2014-01-29 15:57:37 -08:00
Armon Dadgar
f02b38e239
Adding mdns server
2014-01-29 14:36:46 -08:00
Armon Dadgar
60a10ee1d7
Adding zones with tests
2014-01-29 14:28:46 -08:00
Armon Dadgar
a26d5c2b94
Initial commit
2014-01-29 11:39:18 -08:00