[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: besides ping/nslookup, any other tools to resolve a hostname?



Greg Wooledge (12023-03-03):
> Dedicated lookup tools:
> 
> getent hosts
> host
> dnsqr

It is important to know that host and dnsqr do actual DNS requests, and
therefore ignore local configuration about other means of resolving
hosts, including /etc/hosts.

getent hosts is the dedicated command, the one that matches directly the
libc API that is used by most applications.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: PGP signature


Reply to: