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

Re: "su" - timeout for dbus/system_bus_socket if $DISPLAY set but unreachable



Sven Uhlig wrote:
> Bob Proulx wrote:
> > getent baldur.asgard
>
> That is why I used C's getnameinfo().
> 
> How should getent work?
> 
> # getent baldur.asgard
> Unknown database: baldur.asgard

Sorry.  That was a bad example on my part.  The first parameter is the
map name and the second is the key to look up in it.

  getent hosts baldur.asgard

Other uses are for looking up passwd, group, aliases, and so forth.
Here are some additional examples of usage.

  $ getent aliases root
  root:           bob@proulx.com

  $ getent passwd rwp
  rwp:x:1000:1000:Bob Proulx:/home/bob:/bin/bash

  $ getent group staff
  staff:x:50:rwp

  $ getent hosts www.example.com
  2001:500:88:200::10 www.example.com

IPv6.  I guess I should have specified one of these:

  $ getent ahosts www.example.com
  192.0.43.10     STREAM www.example.com
  192.0.43.10     DGRAM  
  192.0.43.10     RAW    
  2001:500:88:200::10 STREAM 
  2001:500:88:200::10 DGRAM  
  2001:500:88:200::10 RAW    

  $ getent ahostsv4 www.example.com
  192.0.43.10     STREAM 43-10.any.icann.org
  192.0.43.10     DGRAM  
  192.0.43.10     RAW    

  $ getent ahostsv6 www.example.com
  2001:500:88:200::10 STREAM www.example.com
  2001:500:88:200::10 DGRAM  
  2001:500:88:200::10 RAW    

For just normal use I prefer the bind9-host command version of host
for the most friendly lookup format.

  $ host www.example.com
  www.example.com has address 192.0.43.10
  www.example.com has IPv6 address 2001:500:88:200::10

  $ host -t a www.example.com
  www.example.com has address 192.0.43.10

> Nevermind, my problem is solved, see mail by Clive Standbridge. :)

Yay!

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: