Re: How to get IP address of named host?
- From: Nix <nix-razor-pit@xxxxxxxxxxxxx>
- Date: Sat, 25 Feb 2006 15:51:28 +0000
On Sat, 25 Feb 2006, Gordon Henderson spake:
[`getent']
I've always used the 'host' command in the past for quick & dirty name
lookup (after nslookup went out of fashion!) Eg:
getent's job is not to do DNS lookups but rather to do lookups using NSS
in exactly the same way the libc would do it.
e.g. on my system:
nix@hades 177 /tmp% getent hosts loki.local
192.168.14.16 loki.local
nix@hades 178 /tmp% getent hosts loki
192.168.14.16 loki.wkstn.nix
The first of these is a lookup through Zeroconf/Avahi: the second is a
lookup via DNS. An /etc/hosts lookup, or a lookup via whatever weird new
protocol you may write NSS modules for, would work in just the same way.
--
`... follow the bouncing internment camps.' --- Peter da Silva
.
- Follow-Ups:
- Re: How to get IP address of named host?
- From: Dave Love
- Re: How to get IP address of named host?
- References:
- How to get IP address of named host?
- From: Dave Farrance
- Re: How to get IP address of named host?
- From: Jason Clifford
- Re: How to get IP address of named host?
- From: paul
- Re: How to get IP address of named host?
- From: Jason Clifford
- Re: How to get IP address of named host?
- From: Gordon Henderson
- How to get IP address of named host?
- Prev by Date: Re: How to get IP address of named host?
- Next by Date: kernel 2.6 slack 10.2 : how serious
- Previous by thread: Re: How to get IP address of named host?
- Next by thread: Re: How to get IP address of named host?
- Index(es):
Relevant Pages
|
|