Sponsored Content
Full Discussion: I need help with...<various>
Top Forums Shell Programming and Scripting I need help with...<various> Post 302228212 by era on Saturday 23rd of August 2008 01:06:55 PM
Old 08-23-2008
I think you're getting the wrong result somehow; at least for me, b.iana-servers.net is 193.0.0.236 -- you're querying for $dom which is wrong, you should be querying for $server, but there can be other complications, too.

dig and host are not part of coreutils; on Ubuntu, at least, they're in the dnsutils and host packages, respectively, and there's also a separate bind9-host package which I believe contains a different version of host (hence, different output formats; originally host was also part of the dnsutils package, but many people wanted the Bind version, so they split it out).

Last edited by era; 08-23-2008 at 02:11 PM.. Reason: Observe that $dom should be $server
 
yppoll(8)						      System Manager's Manual							 yppoll(8)

NAME
yppoll - return version and master server of a NIS map SYNOPSYS
yppoll [ -h host ] [ -d domain ] mapname DESCRIPTION
yppoll OPTIONS
-h host Ask the NIS server process running on host for information about mapname. If host is not specified, the server polled is the default server returned by ypwhich(1). -d domain Specify a domain other than the default domain as returned by domainname(1). SEE ALSO
domainname(8), ypbind(8), ypcat(8), ypmatch(1), ypserv(8), yset(8), ypwhich(1) AUTHOR
yppoll is part of the yp-tools package, which was written by Thorsten Kukuk <kukuk@suse.de>. YP Tools 2.7 May 1998 yppoll(8)
All times are GMT -4. The time now is 07:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy