Skip to content

Instantly share code, notes, and snippets.

@thorsummoner
Last active August 25, 2016 05:34
Show Gist options
  • Select an option

  • Save thorsummoner/61d08448f48ebe017f5cf7718ff667e8 to your computer and use it in GitHub Desktop.

Select an option

Save thorsummoner/61d08448f48ebe017f5cf7718ff667e8 to your computer and use it in GitHub Desktop.
apt-fast with squid-dep-proxy over zeroconf/avahi/bonjore
# Given your quid-deb-proxy is using the hostname `apt` and has avahi-daemon installed
# Change /etc/apt-fast.conf to include `--async-dns=false --http-proxy=apt.local`
_DOWNLOADER='aria2c -c -j ${_MAXNUM} --async-dns=false --http-proxy=apt.local -i ${DLLIST} --connect-timeout=600 --timeout=600 -m0'
# Using aysnc-dns will hit this line in aria2c:
# https://github.com/aria2/aria2/blob/a1ce6d2e7f8824b1c1cd18d4e531d84ba58a07df/src/AbstractCommand.cc#L788
# Due to this behavor getting set:
# https://github.com/aria2/aria2/blob/a1ce6d2e7f8824b1c1cd18d4e531d84ba58a07df/src/AbstractCommand.cc#L788
#
# Whereas synchornus dns will resolve the .local domain correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment