<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Urban Cetinski &#187; and host</title>
	<atom:link href="http://urban.spletno-mesto.com/tag/and-host/feed/" rel="self" type="application/rss+xml" />
	<link>http://urban.spletno-mesto.com</link>
	<description>PHP, MySQL, jQuery, CSS, Zend Framework, Urban Cetinski</description>
	<lastBuildDate>Sat, 12 Mar 2011 09:57:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Using nslookup, dig, and host</title>
		<link>http://urban.spletno-mesto.com/using-nslookup-dig-and-host/</link>
		<comments>http://urban.spletno-mesto.com/using-nslookup-dig-and-host/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 08:03:48 +0000</pubDate>
		<dc:creator>Urban</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Računalništvo]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[and host]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[Using nslookup]]></category>

		<guid isPermaLink="false">http://urban.spletno-mesto.com/?p=903</guid>
		<description><![CDATA[Configuring Domain Name System (DNS) servers Using nslookup, dig, and host nslookup, dig, and host are useful commands that allow you to perform DNS queries, and to test out your DNS configuration. You can use the nslookup command interactively to enter a shell from which you can change servers, set query options, and debug DNS. You can also use nslookup non-interactively from the command line to issue simple queries. See nslookup(1Mtcp) for more information. dig [...]]]></description>
			<content:encoded><![CDATA[<div><em><a onclick="parent.nodebar.contents()" href="http://docsrv.sco.com/NET_tcpip/CTOC-dnsN.main.html" target="navlist" class="broken_link">Configuring Domain  Name System (DNS) servers</a></em></div>
<h1><a href="http://urban.spletno-mesto.com/tag/using-nslookup/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Using nslookup">Using nslookup</a>, <a href="http://urban.spletno-mesto.com/tag/dig/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dig">dig</a>, <a href="http://urban.spletno-mesto.com/tag/and-host/" class="st_tag internal_tag" rel="tag" title="Posts tagged with and host">and host</a></h1>
<p><strong>nslookup</strong>, <strong><a href="http://urban.spletno-mesto.com/tag/dig/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dig">dig</a></strong>, and <strong>host</strong> are useful commands that allow you to perform DNS queries, and to test out your DNS configuration.</p>
<p>You can use the <strong>nslookup</strong> command <a href="http://docsrv.sco.com/NET_tcpip/dnsC.nslook.html#dnsT.nsint" class="broken_link">interactively</a> to enter a shell from which you can change servers, set query options, and debug DNS. You can also use <strong>nslookup</strong> <a href="http://docsrv.sco.com/NET_tcpip/dnsC.nslook.html#dnsT.nsnint" class="broken_link">non-interactively</a> from the command line to issue simple queries. See <a href="http://docsrv.sco.com/cgi-bin/man/man?nslookup+1Mtcp" class="broken_link"><strong>nslookup</strong>(1Mtcp)</a> for more information.</p>
<p><a href="http://docsrv.sco.com/NET_tcpip/dnsC.nslook.html#dnsT.use_dig" class="broken_link"><strong>dig</strong></a> is another useful command line tool which you can use to gather information from DNS servers. See <a href="http://docsrv.sco.com/cgi-bin/man/man?dig+1Mtcp" class="broken_link"><strong>dig</strong>(1Mtcp)</a> for more information.</p>
<p>Finally, you can use the <a href="http://docsrv.sco.com/NET_tcpip/dnsC.nslook.html#dnsT.use_host" class="broken_link"><strong>host</strong></a> command to provide answers to simple host queries. See <a href="http://docsrv.sco.com/cgi-bin/man/man?host+1Mtcp" class="broken_link"><strong>host</strong>(1Mtcp)</a> for more information.</p>
<h2><a href="http://urban.spletno-mesto.com/tag/using-nslookup/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Using nslookup">Using nslookup</a> interactively</h2>
<ol>
<li> Enter <strong>nslookup</strong> at the command line. The <strong>nslookup</strong> prompt appears.</li>
<li> View the current options by entering <strong>set all</strong>.</li>
<li> Change any desired options by entering <strong>set</strong> <em>option</em>.</li>
<li> Issue <strong>nslookup</strong> commands.</li>
<li> Enter <strong>exit</strong> to leave <strong>nslookup</strong>.</li>
</ol>
<p>For a list of sample commands, see <a href="http://docsrv.sco.com/NET_tcpip/dnsC.nslook.html#dnsD.nsicom" class="broken_link">&#8220;nslookup  interactive commands&#8221;</a>. For a list of options, see <a href="http://docsrv.sco.com/NET_tcpip/dnsC.nslook.html#dnsD.nsopts" class="broken_link">&#8220;nslookup  interactive options&#8221;</a>.</p>
<h3>nslookup interactive commands</h3>
<p>These sample commands are available from the <strong>nslookup</strong> shell:</p>
<dl>
<dt><strong>volga</strong></dt>
<dd> Return the IP address of <em>volga</em>. </dd>
<dt><strong>172.16.118.1</strong></dt>
<dd> Return the name matching the IP address you enter. </dd>
<dt><strong>set querytype=ns</strong></dt>
<dd> Set the query type to the Name Server record. Future queries of names and IP addresses return the NS record from that host. </dd>
<dt><strong>set querytype=a</strong></dt>
<dd> Restore the query type to the Address record. </dd>
<dt><strong>server </strong><strong><em>server</em></strong></dt>
<dd> Make <strong><em>server</em></strong> the default server that is queried. </dd>
</dl>
<h3>nslookup interactive options</h3>
<p>Here are the commonly used options of <strong>nslookup</strong>. For a complete list, see the manual page for <a href="http://docsrv.sco.com/cgi-bin/man/man?nslookup+1Mtcp" class="broken_link"><strong>nslookup</strong>(1Mtcp)</a>.</p>
<dl>
<dt><strong>[no]recurse</strong></dt>
<dd> Sets the query type to recursive. When toggled to norecurse, <strong>nslookup</strong> performs iterative queries. </dd>
<dt><strong>querytype=</strong><strong><em>type</em></strong></dt>
<dd> Sets the query type to the DNS data type specified. Common types include <strong>a</strong> (Address), <strong>any</strong> (any data type), <strong>mx</strong> (Mail Exchanger), and <strong>ns</strong> (Name Server). </dd>
<dt><strong>retry=</strong><strong><em>n</em></strong></dt>
<dd> Resends the query <strong><em>n</em></strong> times before giving up. </dd>
<dt><strong>root=</strong><strong><em>root server</em></strong></dt>
<dd> Sets the root server to the server you enter. </dd>
<dt><strong>timeout=</strong><strong><em>n</em></strong></dt>
<dd> The period of time <strong>nslookup</strong> waits for a response after the query  is sent. This period doubles between each retry. </dd>
</dl>
<p>You can save any of these options in a <em>.nslookuprc</em> file  in your home directory. The format of this file, which is searched for each time you invoke <strong>nslookup</strong>, is one <strong>set</strong> command per line. Here is an example, which sets the query type to address  records, the domain to <em>mynet.com</em>, and sets the timeout on requests to 10 seconds:</p>
<pre>   set querytype=a
   set domain=mynet.com
   set timeout=10</pre>
<h2>Querying a single name or address</h2>
<p>To issue a simple query from the command line, use one of the following forms of the command:</p>
<p><strong>nslookup</strong> <strong><em>name</em></strong></p>
<p><strong>nslookup</strong> <strong><em>IP_address</em></strong></p>
<p><strong>nslookup</strong> should return the desired answer by querying the default server. To query a different server, enter one of the following forms of the command:</p>
<p><strong>nslookup</strong> <strong><em>name</em></strong> <strong><em>server</em></strong></p>
<p><strong>nslookup</strong> <strong><em>IP_address</em></strong> <strong><em>server</em></strong></p>
<h2>Examples of using the <a href="http://urban.spletno-mesto.com/tag/dig/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dig">dig</a> command</h2>
<p>Obtain the latest list of root domain servers:</p>
<p><strong><a href="http://urban.spletno-mesto.com/tag/dig/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dig">dig</a> . ns</strong></p>
<p>Find out the name servers for a zone:</p>
<p><strong><a href="http://urban.spletno-mesto.com/tag/dig/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dig">dig</a> @</strong><strong><em>server domain</em></strong><strong> ns</strong></p>
<p>Request all records for a zone from an authoritative server:</p>
<p><strong><a href="http://urban.spletno-mesto.com/tag/dig/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dig">dig</a> @</strong><strong><em>server domain</em></strong><strong> axfr</strong></p>
<hr /><strong>NOTE:</strong> This command requires a zone transfer which the server may disallow.</p>
<hr />Look up the domain name corresponding to the IP address 172.16.118.1:</p>
<p><strong><a href="http://urban.spletno-mesto.com/tag/dig/" class="st_tag internal_tag" rel="tag" title="Posts tagged with dig">dig</a> -x 172.16.118.1</strong></p>
<h2>Examples of using the host command</h2>
<p>Use <strong>host</strong> to find all the host records for a zone:</p>
<p><strong>host -l </strong><strong><em>domain</em></strong></p>
<p>Use <strong>host</strong> to request all the records for a zone:</p>
<p><strong>host -lv -t any </strong><strong><em>domain</em></strong></p>
<hr /><strong>NOTE:</strong> These commands require a zone transfer which the server may disallow.</p>
<hr />
<hr /><em> <small> <a href="http://docsrv.sco.com/NET_tcpip/COPYRIGHT.html" class="broken_link">© 1999 The  Santa Cruz Operation, Inc.  All rights reserved.</a><br />
UnixWare 7 Release 7.1.1 &#8211; 5 November 1999<br />
</small> </em></p>
<p>Link :http://docsrv.sco.com/NET_tcpip/dnsC.nslook.html</p>
]]></content:encoded>
			<wfw:commentRss>http://urban.spletno-mesto.com/using-nslookup-dig-and-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

