<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Domain Expiration Check Shell Script</title> <atom:link href="http://www.cyberciti.biz/tips/domain-check-script.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/domain-check-script.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Rob</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-175036</link> <dc:creator>Rob</dc:creator> <pubDate>Thu, 20 Oct 2011 18:26:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-175036</guid> <description>I tried adding the support for .ca domains but now I am getting all .ca domains being expired. Here is an example
domain.ca                            Go Daddy Domains Expired  -0-         -2455855
Cira has made some changes to their DNS records. Anyone wanting to check .ca domains will need to make the following changes.
form:
tdomdate=`cat ${WHOIS_TMP} &#124; awk &#039;/Renewal date/ { print $3 }&#039;`
to:
tdomdate=`cat ${WHOIS_TMP} &#124; awk &#039;/Expiry date/ { print $3 }&#039;`</description> <content:encoded><![CDATA[<p>I tried adding the support for .ca domains but now I am getting all .ca domains being expired. Here is an example<br
/> domain.ca                            Go Daddy Domains Expired  -0-         -2455855</p><p>Cira has made some changes to their DNS records. Anyone wanting to check .ca domains will need to make the following changes.</p><p>form:<br
/> tdomdate=`cat ${WHOIS_TMP} | awk &#8216;/Renewal date/ { print $3 }&#8217;`</p><p>to:<br
/> tdomdate=`cat ${WHOIS_TMP} | awk &#8216;/Expiry date/ { print $3 }&#8217;`</p> ]]></content:encoded> </item> <item><title>By: Simon</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-174239</link> <dc:creator>Simon</dc:creator> <pubDate>Thu, 22 Sep 2011 14:08:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-174239</guid> <description>Can this script work on FreeBSD server?
Can you give me more explain how to work with this script? What to do with domain-check-2.txt, where i need to put this file?</description> <content:encoded><![CDATA[<p>Can this script work on FreeBSD server?<br
/> Can you give me more explain how to work with this script? What to do with domain-check-2.txt, where i need to put this file?</p> ]]></content:encoded> </item> <item><title>By: Willem Kossen</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-174170</link> <dc:creator>Willem Kossen</dc:creator> <pubDate>Tue, 20 Sep 2011 15:58:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-174170</guid> <description>Hi,
I would appreciate if you could add support for .nl domains.
In fact, wouldn&#039;t it be easier to add a configuration file with country specific code so the script itself wouldn&#039;t be so bulky? Or at least, put the code for each country together. That would make it a whole lot shorter without all the repeated ifs / elifs., just my two cents...
I can simply add the section to add the dutch whois server, but the regular expression to make sense of the output is beyond me (i&#039;m no scripting guru you know). I suppose this something like the next part would work
elif [ &quot;${TLDTYPE}&quot;  == &quot;nl&quot; ]; # Netherlands
then
${WHOIS} -h &quot;whois.domain-registry.nl&quot; &quot;${1}&quot; &gt; ${WHOIS_TMP}
one problem is that the dutch whois won&#039;t accept many request per IP so some error-handling would be needed...
Thanks for providing a useful script!</description> <content:encoded><![CDATA[<p>Hi,<br
/> I would appreciate if you could add support for .nl domains.</p><p>In fact, wouldn&#8217;t it be easier to add a configuration file with country specific code so the script itself wouldn&#8217;t be so bulky? Or at least, put the code for each country together. That would make it a whole lot shorter without all the repeated ifs / elifs., just my two cents&#8230;</p><p>I can simply add the section to add the dutch whois server, but the regular expression to make sense of the output is beyond me (i&#8217;m no scripting guru you know). I suppose this something like the next part would work</p><p>elif [ "${TLDTYPE}"  == "nl" ]; # Netherlands<br
/> then<br
/> ${WHOIS} -h &#8220;whois.domain-registry.nl&#8221; &#8220;${1}&#8221; &gt; ${WHOIS_TMP}</p><p>one problem is that the dutch whois won&#8217;t accept many request per IP so some error-handling would be needed&#8230;</p><p>Thanks for providing a useful script!</p> ]]></content:encoded> </item> <item><title>By: Nathan</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-173567</link> <dc:creator>Nathan</dc:creator> <pubDate>Fri, 26 Aug 2011 14:27:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-173567</guid> <description>I was getting the following error while checking .uk domains:
&lt;blockquote&gt;syntax error: invalid arithmetic operator&lt;/blockquote&gt;
Fixed it by adding the following line after the WHOIS command is run:
&lt;blockquote&gt;dos2unix -q ${WHOIS_TMP}&lt;/blockquote&gt;</description> <content:encoded><![CDATA[<p>I was getting the following error while checking .uk domains:</p><blockquote><p>syntax error: invalid arithmetic operator</p></blockquote><p>Fixed it by adding the following line after the WHOIS command is run:</p><blockquote><p>dos2unix -q ${WHOIS_TMP}</p></blockquote> ]]></content:encoded> </item> <item><title>By: Isidora</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-173482</link> <dc:creator>Isidora</dc:creator> <pubDate>Mon, 22 Aug 2011 13:24:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-173482</guid> <description>Does it work for .de domains?</description> <content:encoded><![CDATA[<p>Does it work for .de domains?</p> ]]></content:encoded> </item> <item><title>By: bogati</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-172283</link> <dc:creator>bogati</dc:creator> <pubDate>Tue, 05 Jul 2011 04:01:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-172283</guid> <description>why there is error in freebsd?
./domain-check -d vivekgite.com
Domain                              Registrar         Status   Expires     Days Left
----------------------------------- ----------------- -------- ----------- ---------
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
[: unexpected operator
vivekgite.com                       GODADDY.COM, INC. Valid    18-aug-2014   1140</description> <content:encoded><![CDATA[<p>why there is error in freebsd?</p><p>./domain-check -d vivekgite.com</p><p>Domain                              Registrar         Status   Expires     Days Left<br
/> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> [: unexpected operator<br
/> vivekgite.com                       GODADDY.COM, INC. Valid    18-aug-2014   1140</p> ]]></content:encoded> </item> <item><title>By: Adrian</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-160917</link> <dc:creator>Adrian</dc:creator> <pubDate>Wed, 10 Nov 2010 10:14:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-160917</guid> <description>hy there the new whois servers are whit CAPCHA any change to pass them?</description> <content:encoded><![CDATA[<p>hy there the new whois servers are whit CAPCHA any change to pass them?</p> ]]></content:encoded> </item> <item><title>By: Max</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-159252</link> <dc:creator>Max</dc:creator> <pubDate>Mon, 30 Aug 2010 20:39:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-159252</guid> <description>Hello,
Can you please tell me what to do if I want to know *any* names from .IN domain expiration ? is there a way to do that ?
Example: I don&#039;t want to search for the name and put in the .txt file .. I want it do automatic list out any expiration domain from .IN .</description> <content:encoded><![CDATA[<p>Hello,</p><p>Can you please tell me what to do if I want to know *any* names from .IN domain expiration ? is there a way to do that ?</p><p>Example: I don&#8217;t want to search for the name and put in the .txt file .. I want it do automatic list out any expiration domain from .IN .</p> ]]></content:encoded> </item> <item><title>By: AJ</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-159076</link> <dc:creator>AJ</dc:creator> <pubDate>Fri, 20 Aug 2010 18:19:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-159076</guid> <description>To add .ca domains:
&lt;pre&gt;
elif [ &quot;${TLDTYPE}&quot; == &quot;ca&quot; ];
then
REGISTRAR=`cat ${WHOIS_TMP} &#124; ${AWK}  -F: &#039;/Registrar:/ {getline; REGISTRAR=substr($2,14,17); print REGISTRAR }&#039;`
and then later when it needs the date:
elif [ &quot;${TLDTYPE}&quot; == &quot;ca&quot; ]; # for .ca 2010/04/30
then
tdomdate=`cat ${WHOIS_TMP} &#124; awk &#039;/Renewal date/ { print $3 }&#039;`
tyear=`echo ${tdomdate} &#124; cut -d&#039;/&#039; -f1`
tmon=`echo ${tdomdate} &#124; cut -d&#039;/&#039; -f2`
case ${tmon} in
1&#124;01) tmonth=jan ;;
2&#124;02) tmonth=feb ;;
3&#124;03) tmonth=mar ;;
4&#124;04) tmonth=apr ;;
5&#124;05) tmonth=may ;;
6&#124;06) tmonth=jun ;;
7&#124;07) tmonth=jul ;;
8&#124;08) tmonth=aug ;;
9&#124;09) tmonth=sep ;;
10)tmonth=oct ;;
11) tmonth=nov ;;
12) tmonth=dec ;;
*) tmonth=0 ;;
esac
tday=`echo ${tdomdate} &#124; cut -d&#039;/&#039; -f3`
DOMAINDATE=`echo $tday-$tmonth-$tyear`
&lt;/pre&gt;
Edited by admin to add pre tags.</description> <content:encoded><![CDATA[<p>To add .ca domains:</p><pre>
  elif [ "${TLDTYPE}" == "ca" ];
    then
        REGISTRAR=`cat ${WHOIS_TMP} | ${AWK}  -F: '/Registrar:/ {getline; REGISTRAR=substr($2,14,17); print REGISTRAR }'`
and then later when it needs the date:
    elif [ "${TLDTYPE}" == "ca" ]; # for .ca 2010/04/30
    then
            tdomdate=`cat ${WHOIS_TMP} | awk '/Renewal date/ { print $3 }'`
            tyear=`echo ${tdomdate} | cut -d'/' -f1`
            tmon=`echo ${tdomdate} | cut -d'/' -f2`
               case ${tmon} in
                     1|01) tmonth=jan ;;
                     2|02) tmonth=feb ;;
                     3|03) tmonth=mar ;;
                     4|04) tmonth=apr ;;
                     5|05) tmonth=may ;;
                     6|06) tmonth=jun ;;
                     7|07) tmonth=jul ;;
                     8|08) tmonth=aug ;;
                     9|09) tmonth=sep ;;
                     10)tmonth=oct ;;
                     11) tmonth=nov ;;
                     12) tmonth=dec ;;
                      *) tmonth=0 ;;
                esac
            tday=`echo ${tdomdate} | cut -d'/' -f3`
            DOMAINDATE=`echo $tday-$tmonth-$tyear`
</pre><p>Edited by admin to add pre tags.</p> ]]></content:encoded> </item> <item><title>By: Nicole Brustvergrößerung</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-158644</link> <dc:creator>Nicole Brustvergrößerung</dc:creator> <pubDate>Mon, 02 Aug 2010 03:16:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-158644</guid> <description>Very Nice Script,
i will try it with .de domains.
Thanks for good tutorial.</description> <content:encoded><![CDATA[<p>Very Nice Script,<br
/> i will try it with .de domains.<br
/> Thanks for good tutorial.</p> ]]></content:encoded> </item> <item><title>By: Justin</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-152456</link> <dc:creator>Justin</dc:creator> <pubDate>Thu, 24 Dec 2009 12:40:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-152456</guid> <description>Hello, when i am use the code for a file then i get this message:
whois: biz\r.whois-servers.net: nodename nor servname provided, or not known
I am use a mac for this script, maybe you can help me :-)
Merry Christmas :-)</description> <content:encoded><![CDATA[<p>Hello, when i am use the code for a file then i get this message:</p><p>whois: biz\r.whois-servers.net: nodename nor servname provided, or not known</p><p>I am use a mac for this script, maybe you can help me :-)</p><p>Merry Christmas :-)</p> ]]></content:encoded> </item> <item><title>By: RoyWikan</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-152337</link> <dc:creator>RoyWikan</dc:creator> <pubDate>Thu, 17 Dec 2009 17:48:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-152337</guid> <description>As always you wrote a very good tutorial. Thanks for this great script, it makes my life lot easier! GBU Vivek!</description> <content:encoded><![CDATA[<p>As always you wrote a very good tutorial. Thanks for this great script, it makes my life lot easier! GBU Vivek!</p> ]]></content:encoded> </item> <item><title>By: Rik D</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-151360</link> <dc:creator>Rik D</dc:creator> <pubDate>Fri, 30 Oct 2009 11:48:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-151360</guid> <description>Hello ZlayaZhaba,
you are correct there is no expiration date, the registration in the Netherland is normaly one year. That would be  Record last updatedpdated + 1 Year = expiration date.
Can you help me ?
Rik</description> <content:encoded><![CDATA[<p>Hello ZlayaZhaba,<br
/> you are correct there is no expiration date, the registration in the Netherland is normaly one year. That would be  Record last updatedpdated + 1 Year = expiration date.<br
/> Can you help me ?<br
/> Rik</p> ]]></content:encoded> </item> <item><title>By: ZlayaZhaba</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-151358</link> <dc:creator>ZlayaZhaba</dc:creator> <pubDate>Fri, 30 Oct 2009 11:19:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-151358</guid> <description>to: Rik D
&lt;cite&gt;I would like to check .NL domains ( Netherlands ) I tried to change Whois server into “whois.domain-registry.nl” but i get on every output “Unknown”...&lt;/cite&gt;
Very funny zone!
As i see in answer of whois it has only two fields:
- Date registered:
- Record last updated:
And nothing like expiration date! Probably it must be calculated manually on base of last update?</description> <content:encoded><![CDATA[<p>to: Rik D<br
/><cite>I would like to check .NL domains ( Netherlands ) I tried to change Whois server into “whois.domain-registry.nl” but i get on every output “Unknown”&#8230;</cite><br
/> Very funny zone!<br
/> As i see in answer of whois it has only two fields:<br
/> - Date registered:<br
/> - Record last updated:<br
/> And nothing like expiration date! Probably it must be calculated manually on base of last update?</p> ]]></content:encoded> </item> <item><title>By: Rik D</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-151355</link> <dc:creator>Rik D</dc:creator> <pubDate>Fri, 30 Oct 2009 10:23:16 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-151355</guid> <description>Hello,
I would like to check .NL domains ( Netherlands ) I tried to change Whois server into &quot;whois.domain-registry.nl&quot;  but i get on every output &quot;Unknown&quot;
Who can help me ?
Thanks in advance
Rik</description> <content:encoded><![CDATA[<p>Hello,<br
/> I would like to check .NL domains ( Netherlands ) I tried to change Whois server into &#8220;whois.domain-registry.nl&#8221;  but i get on every output &#8220;Unknown&#8221;<br
/> Who can help me ?<br
/> Thanks in advance<br
/> Rik</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-150886</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Thu, 01 Oct 2009 12:55:10 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-150886</guid> <description>Thanks for the heads up!</description> <content:encoded><![CDATA[<p>Thanks for the heads up!</p> ]]></content:encoded> </item> <item><title>By: ZlayaZhaba</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-150884</link> <dc:creator>ZlayaZhaba</dc:creator> <pubDate>Thu, 01 Oct 2009 11:57:20 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-150884</guid> <description>Nice modification of original script, man, thanks.
But looks like you forgot about variable MAIL ;)</description> <content:encoded><![CDATA[<p>Nice modification of original script, man, thanks.<br
/> But looks like you forgot about variable MAIL ;)</p> ]]></content:encoded> </item> <item><title>By: Noah J.</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-149260</link> <dc:creator>Noah J.</dc:creator> <pubDate>Wed, 01 Jul 2009 15:18:11 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-149260</guid> <description>For some reason this script will only output &quot;UNKNOWN&quot; to all fields when using a large list/batch mode. It seems that any more than 5 domains in a list cause this (at least for me). Any thoughts as to why this might be?</description> <content:encoded><![CDATA[<p>For some reason this script will only output &#8220;UNKNOWN&#8221; to all fields when using a large list/batch mode. It seems that any more than 5 domains in a list cause this (at least for me). Any thoughts as to why this might be?</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-149137</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Thu, 25 Jun 2009 20:47:09 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-149137</guid> <description>You can use -s option to set another whois server
&lt;code&gt;/script.name -d example.com -s whois.isp.com&lt;/code&gt;</description> <content:encoded><![CDATA[<p>You can use -s option to set another whois server<br
/> <code>/script.name -d example.com -s whois.isp.com</code></p> ]]></content:encoded> </item> <item><title>By: cypher</title><link>http://www.cyberciti.biz/tips/domain-check-script.html#comment-149135</link> <dc:creator>cypher</dc:creator> <pubDate>Thu, 25 Jun 2009 19:27:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/domain-check-script.html#comment-149135</guid> <description>never mind i glanced over it:
&quot;whois.pir.org&quot;
&quot;whois.registry.in&quot;
&quot;whois.nic.uk&quot;
&quot;whois.neulevel.biz&quot;
&quot;whois.afilias.info&quot;
&quot;whois.jprs.jp&quot;</description> <content:encoded><![CDATA[<p>never mind i glanced over it:</p><p>&#8220;whois.pir.org&#8221;<br
/> &#8220;whois.registry.in&#8221;<br
/> &#8220;whois.nic.uk&#8221;<br
/> &#8220;whois.neulevel.biz&#8221;<br
/> &#8220;whois.afilias.info&#8221;<br
/> &#8220;whois.jprs.jp&#8221;</p> ]]></content:encoded> </item> </channel> </rss>
