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(1M)						  System Administration Commands						yppoll(1M)

NAME
yppoll - return current version of a NIS map at a NIS server host SYNOPSIS
/usr/sbin/yppoll [-d ypdomain] [-h host] mapname DESCRIPTION
The yppoll command asks a ypserv() process what the order number is, and which host is the master NIS server for the named map. OPTIONS
-d ypdomain Use ypdomain instead of the default domain. -h host Ask the ypserv process at host about the map parameters. If host is not specified, the NIS server for the local host is used. That is, the default host is the one returned by ypwhich(1). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWnisu | +-----------------------------+-----------------------------+ SEE ALSO
ypwhich(1), ypfiles(4), attributes(5) SunOS 5.10 14 Sep 1992 yppoll(1M)
All times are GMT -4. The time now is 10:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy