git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git_inetd_server: run git-http-backend using inetd

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 17, 2014, 22:10 UTC
Message-ID
<20140717221056.GO12427@google.com>
In-Reply-To
<43923BC7-08AF-4900-AC5E-B2F0FE7CD5AC@gmail.com>
Hi,
Kyle J. McKay wrote:
Show 5 quoted lines
> When I then try to fetch using a "git://host/..." URL where "host"
> is an mDNS host name, the 0010 patch causes git to attempt to lookup
> a DNS SRV record on the non-mDNS regular DNS service (a violation of
> RFC 6762 [4] section 22) and this is what has to time out before the
> real fetch can start.

That patch uses res_query from libresolv to do the lookup. It doesn't know what DNS server to use and relies on system libraries to get it right.

It was added to respond to a feature request within Debian but it is intended to eventually go upstream. I'm glad you found this issue before that could happen. :)

Should git automatically disable the SRV lookups when it sees one of the six domains named in RFC6762, or is there some system library call that can use mDNS when appropriate automatically (or get partway there without having to hard-code the domains)?

Thanks, Jonathan

Previous: Kyle J. McKayNext: Kyle J. McKay
Message 2 of 13 in “git_inetd_server: run git-http-backend using inetd”
  1. Kyle J. McKayJul 17, 2014
  2. Jonathan NiederJul 17, 2014
  3. Kyle J. McKayJul 17, 2014
  4. Jonathan NiederJul 18, 2014
  5. Kyle J. McKayJul 18, 2014
  6. Jonathan NiederJul 18, 2014
  7. Kyle J. McKayJul 19, 2014
  8. Jonathan NiederJul 19, 2014
  9. Kyle J. McKayJul 19, 2014
  10. Torsten BögershausenJul 19, 2014
  11. Jonathan NiederJul 19, 2014
  12. Torsten BögershausenJul 20, 2014
  13. Torsten BögershausenJul 20, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.