Commit Graph

79 Commits

Author SHA1 Message Date
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