{"id":1280,"date":"2011-02-18T14:52:21","date_gmt":"2011-02-18T18:52:21","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1280"},"modified":"2013-03-20T08:43:56","modified_gmt":"2013-03-20T12:43:56","slug":"nslookup-host-dig-command-not-found-in-linux","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/nslookup-host-dig-command-not-found-in-linux","title":{"rendered":"nslookup \/ host \/ dig Command Not Found in Linux"},"content":{"rendered":"<p><strong>How to install the nslookup, host OR dig commands in Linux?<\/strong><\/p>\n<p>Sometimes you are unable to use the nslookup, host OR dig command on your Linux server and receives the following message<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">-bash: nslookup: command not found <\/span>\r\n<span style=\"color: #0000ff;\">-bash: host: command not found <\/span>\r\n<span style=\"color: #0000ff;\">-bash: dig: command not found<\/span><\/pre>\n<\/blockquote>\n<p>This indicates that the DNS package &#8220;bind-utils&#8221; isn&#8217;t installed during the OS installation. The &#8216;bind-utils&#8217; package install nslookup, host, dig and other DNS related commands.<strong><br \/>\n<\/strong><\/p>\n<p><strong>Installation:<\/strong><br \/>\nSSH to your server as root and execute<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># yum install bind-utils<\/span><\/pre>\n<\/blockquote>\n<p>Once done, you will be able to use host, nslookup etc<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># host domain.tld<\/span><\/pre>\n<pre>  domain.tld has address 1.1.1.1<\/pre>\n<\/blockquote>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># nslookup domain.tld<\/span><\/pre>\n<pre>  Name: domain.tld Address: 1.1.1.1<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>How to install the nslookup, host OR dig commands in Linux?<br \/>\nSometimes you are unable to use the nslookup, host OR dig command on your Linux server and receives the following message<\/p>\n<p>-bash: nslookup: command not found<br \/>\n-bash: host: command not found<br \/>\n-bash: dig: command not found<\/p>\n<p>This indicates that the DNS package &#8220;bind-utils&#8221; isn&#8217;t installed during the OS installation. The &#8216;bind-utils&#8217; package install nslookup, host, dig and other DNS related commands.<\/p>\n<p>Installation:<br \/>\nSSH to your server as root and execute<\/p>\n<p># yum install bind-utils<\/p>\n<p>Once done, you will be able to use host, nslookup [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1190,1189,1193,1192,1191,1195,1194,1188],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1280"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1280"}],"version-history":[{"count":8,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1280\/revisions"}],"predecessor-version":[{"id":2263,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1280\/revisions\/2263"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}