Deutsch English Français Italiano |
<61710a48$0$5960$426a74cc@news.free.fr> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp1-2.free.fr!not-for-mail Subject: Re: arp -n ? Newsgroups: fr.comp.os.linux.configuration References: <slrnsl465s.163kj.lulu042@valentino.Rock-n-Roll.org> <sit7lu$bqd$1@shakotay.alphanet.ch> <slrnsn0lgj.fsn3.lulu042@valentino.Rock-n-Roll.org> <skpq5a$u7f$1@shakotay.alphanet.ch> <6170f955$0$1347$426a74cc@news.free.fr> From: Pascal Hambourg <pascal@plouf.fr.eu.org> Date: Thu, 21 Oct 2021 08:35:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <6170f955$0$1347$426a74cc@news.free.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Lines: 23 Message-ID: <61710a48$0$5960$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 21 Oct 2021 08:35:52 CEST NNTP-Posting-Host: 213.41.155.166 X-Trace: 1634798152 news-2.free.fr 5960 213.41.155.166:53030 X-Complaints-To: abuse@proxad.net Bytes: 1981 Le 21/10/2021 à 07:23, Sergio a écrit : > Le 20/10/2021 à 21:20, Marc SCHAEFER a écrit : > >> Dans ce cas /etc/hosts peut être utilisé pour pouvoir faire >> >> ping toto >> >> plutôt que >> >> ping 192.168.1.42 > > ping est à éviter pour simplement récupérer une IP (ou le contraire). Le contraire de quoi ? Ne pas récupérer une adresse IP ? > On lui préférera host (ou nslookup sous W***) Contrairement à ping qui utilise le résolveur système, host et nslookup (et dig) ont l'inconvénient de n'utiliser que la résolution DNS, et non les autres sources de résolution de nom disponibles (/etc/hosts, multicast DNS, NBNS, DoH, DoT...) On peut plutôt utiliser getent(1).