New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for mDNS by allowing multicast server address #147
Comments
Attached is a somewhat larger patch diff that also supports multiple mDNS servers responding instead of only the first response. No behavior change if a unicast address is specified for the DNS server. |
Why don't you create a pull request that I could review? |
OK. I'm relatively new to github, so not familiar with that process. Will let you know when I have the branch created and pushed.
Andrew, KA2DDO
…________________________________________
From: Ingo Bauersachs <notifications@github.com>
Sent: Wednesday, January 6, 2021 10:41 AM
To: dnsjava/dnsjava
Cc: ka2ddo; Author
Subject: Re: [dnsjava/dnsjava] Add support for mDNS by allowing multicast server address (#147)
Why don't you create a pull request that I could review?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#147 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AESTBTIS3BDAQPIGGXIVEDTSYSAD3ANCNFSM4VVNMTRQ>.
|
I can't seem to push my private branch changes back to github. How do I get my private branch onto github so I can make a pull request for it?
…________________________________________
From: Ingo Bauersachs <notifications@github.com>
Sent: Wednesday, January 6, 2021 10:41 AM
To: dnsjava/dnsjava
Cc: ka2ddo; Author
Subject: Re: [dnsjava/dnsjava] Add support for mDNS by allowing multicast server address (#147)
Why don't you create a pull request that I could review?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#147 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AESTBTIS3BDAQPIGGXIVEDTSYSAD3ANCNFSM4VVNMTRQ>.
|
You need to fork the repository to your account, then push your branch there. You can create a pull request in GitHub's web ui afterwards. See e.g. this guide here: https://guides.github.com/activities/forking/ |
I have a cloned copy of your repository, I made and committed the changes on a branch named mDNS_patch_ka2ddo, and tried to push the changes upstream, but got the following error:
remote: Permission to dnsjava/dnsjava.git denied to ka2ddo.
fatal: unable to access 'https://github.com/dnsjava/dnsjava.git/': The requested URL returned error: 403
Do you need to grant me permission to push branch changes? Note that the file I attached in my second comment should easily modify an existing git checkout with my changes using the 'patch' command. Or is there a branch naming convention I have to follow to be given permission?
Andrew, KA2DDO
…________________________________________
From: Ingo Bauersachs <notifications@github.com>
Sent: Wednesday, January 6, 2021 11:51 AM
To: dnsjava/dnsjava
Cc: ka2ddo; Author
Subject: Re: [dnsjava/dnsjava] Add support for mDNS by allowing multicast server address (#147)
You need to fork the repository to your account, then push your branch there. You can create a pull request in GitHub's web ui afterwards. See e.g. this guide here: https://guides.github.com/activities/forking/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#147 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AESTBTKTD5XNQMDCJU77Y2LSYSIHRANCNFSM4VVNMTRQ>.
|
You need to fork the repository to your account so that it appears here: https://github.com/ka2ddo?tab=repositories Then change the origin of your local clone, push and create the pull request. It's all explained in the link I posted before. I don't have my devenv with me atm, so I can't even look at the patch. And a PR would automatically run all tests and checks :-) |
Pull request now available. |
The present version of the NioUdpClient code in dnsjava does not support specifying the mDNS multicast address (224.0.0.251 or [FF02::FB]) and port 5353 for the DNS server address, because the UDP socket is connected to the remote address, which will never be seen in a reply to a multicast query. Included is the diff of a proposed change to allow receiving data from the first mDNS server to respond (the most minimal form of an mDNS client, as defined by RFC6762), where the DatagramChannel is not connected to the remote address if the remote address is multicast, so that any mDNS server's unicast reply packet can be accepted.
The text was updated successfully, but these errors were encountered: