* Joseph Kotran <[email protected]> [2009-01-16 03:34]:
> Dear OpenSolaris Community,
> 
>       I need your help.  I am unable to search IPS repositories via `pkg
> search -r vino` when my IP is statically assigned.  When I run this command
> it returns:
> 
> [r...@prime ~]% pkg search -r vino
> Some servers failed to respond:
>      http://pkg.opensolaris.org/contrib/: node name or service name not known
>      http://pkg.opensolaris.org/release/: node name or service name not known
>      https://pkg.sun.com/opensolaris/extra/: node name or service name not
> known
> 
>       I very recently changed my computer to use a static IP via the Gnome
> GUI.  That is when the problem presented itself.  When I reverted to a DHCP
> issued IP my pkg searches are successful.
> 
>       While on a static IP I can DNS resolve these repos:
> 
> [r...@prime ~]% host pkg.opensolaris.org
> pkg.opensolaris.org has address 72.5.123.21
> [r...@prime ~]% host pkg.sun.com
> pkg.sun.com is an alias for pkg-na-1.sun.com.
> pkg-na-1.sun.com has address 72.5.123.35
> 
>       Also, while on static, I can list and install packages.  Please help
> me.

  I suspect that host(1) doesn't use the getXbyY() routines for
  resolving hostnames, but uses DNS directly.  pkg(1) does--meaning that
  the contents of /etc/nsswitch.conf are consulted.  I suspect your
  /etc/nsswitch.conf has something like

  hosts: files

  in the static IP configuration.  (You can test if this is true by
  issuing "getent hosts pkg.opensolaris.org", because getent(1) uses the
  getXbyY() routines...)  You'll want to edit this to

  hosts: files dns

  so that the name service switch ("nsswitch") knows to contact DNS for
  host name lookups as well.

>       Finally, thank you for reenvigorating my enthusiasm in Operating
> Systems and in Solaris in particular.  I am heartened to see the
> improvements that you are making.

  Keep the feedback coming.

  Thanks
  Stephen

-- 
[email protected]  http://blogs.sun.com/sch/
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to