{"id":1153,"date":"2014-04-14T08:53:58","date_gmt":"2014-04-14T06:53:58","guid":{"rendered":"http:\/\/clark.tipistrani.it\/?p=1153"},"modified":"2020-06-05T07:58:21","modified_gmt":"2020-06-05T05:58:21","slug":"come-convincere-apt-get-non-usare-risoluzione-dei-nomi-in-ipv6","status":"publish","type":"post","link":"http:\/\/clark.tipistrani.it\/?p=1153","title":{"rendered":"Come convincere apt-get a non usare la risoluzione dei nomi in IPV6"},"content":{"rendered":"<p>Da qualche tempo IPV6 \u00e8 pesantemente entrato nella vita quotidiana dei sistemisti, come era prevedibile non \u00e8 stata una cosa soft, e i problemi sono per ora\u00a0 pi\u00f9 dei benefici, il caso tipico \u00e8 l&#8217;aggiornamento di una Debian con:<\/p>\n<p>perseo:\/etc# apt-get update<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy Release.gpg<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates Release.gpg<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy Release<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates Release<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy\/main Sources<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy\/non-free Sources<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy\/contrib Sources<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy\/main amd64 Packages<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy\/non-free amd64 Packages<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy\/contrib amd64 Packages<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy\/contrib Translation-en<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy\/main Translation-it<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy\/main Translation-en<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy\/non-free Translation-en<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates\/main Sources<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates\/contrib Sources<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates\/non-free Sources<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates\/main amd64 Packages\/DiffIndex<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates\/contrib amd64 Packages<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates\/non-free amd64 Packages<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates\/contrib Translation-en<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates\/main Translation-en\/DiffIndex<br \/>\nTrovato http:\/\/debian.dynamica.it wheezy-updates\/non-free Translation-en<br \/>\n89% [Connessione a security.debian.org (2001:8d8:580:400:6564:a62:0:2)] [Connessione a ftp.debian.org (2001:610:1908:b000::148:12)]<\/p>\n<p>che a questo punto si pianta e ci resta per dei minuti anche 4 o 5 a volte, cosa che per certo non \u00e8 simpatica.<br \/>\nStufo di questo stato di cose ho cercato una soluzione e ho trovato questo workaround<br \/>\nEditando \/etc\/gai.conf si puo&#8217; in sostanza (e semplificando in modo esagerato)\u00a0 modificare l&#8217;ordine con cui le chiamate a getaddressinfo vengono eseguite in modo tale che la risposta col pi\u00f9 alto tasso di successo sia la prima.<br \/>\nPer ottenere questo risultato scommentare la riga:<\/p>\n<p class=\"bash\" style=\"font-family: monospace;\">precedence ::ffff:<span style=\"color: #ffffff;\">0:0<span style=\"font-weight: bold;\">\/<\/span>96 100<br \/>\nuna volta salvato e chiuso il file con apt-get update si torner\u00e0 alla normale velocit\u00e0 di aggiornamento senza pause.<br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Da qualche tempo IPV6 \u00e8 pesantemente entrato nella vita quotidiana dei sistemisti, come era prevedibile non \u00e8 stata una cosa soft, e i problemi sono per ora\u00a0 pi\u00f9 dei benefici, il caso tipico \u00e8 l&#8217;aggiornamento di una Debian con: perseo:\/etc# apt-get update Trovato http:\/\/debian.dynamica.it wheezy Release.gpg Trovato http:\/\/debian.dynamica.it wheezy-updates Release.gpg Trovato http:\/\/debian.dynamica.it wheezy Release Trovato [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,14,7,6],"tags":[178,76,32,15,75],"class_list":["post-1153","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking","category-sistemi-operativi","category-work","tag-apt","tag-apt-get","tag-debian","tag-dns","tag-ipv6"],"_links":{"self":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1153"}],"version-history":[{"count":1,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1153\/revisions"}],"predecessor-version":[{"id":1154,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1153\/revisions\/1154"}],"wp:attachment":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1153"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}