<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Imdad Rind</title>
    <description>The latest articles on DEV Community by Imdad Rind (@emdadr).</description>
    <link>https://dev.to/emdadr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1206951%2F5a188b1c-a5d3-4d27-8ac0-4fe07358345a.jpg</url>
      <title>DEV Community: Imdad Rind</title>
      <link>https://dev.to/emdadr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/emdadr"/>
    <language>en</language>
    <item>
      <title>A New Open Source Platform for people to share their links of Favorite content over the internet</title>
      <dc:creator>Imdad Rind</dc:creator>
      <pubDate>Sat, 13 Jul 2024 07:08:57 +0000</pubDate>
      <link>https://dev.to/emdadr/a-new-open-source-platform-for-people-to-share-their-links-of-favorite-content-over-the-internet-1hm2</link>
      <guid>https://dev.to/emdadr/a-new-open-source-platform-for-people-to-share-their-links-of-favorite-content-over-the-internet-1hm2</guid>
      <description>&lt;p&gt;I have Created an open source Platform where a user can share the links of their favorite content over the internet like (Insat reels, TikTok, Youtube vids, Facebook posts, Twitter/X Tweet/Post, Sub-Reddits, anything) &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxxtjbq0ghkazj33suoh9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxxtjbq0ghkazj33suoh9.png" alt="homne page" width="800" height="450"&gt;&lt;/a&gt; &lt;/p&gt;




&lt;p&gt;on it you can create an account and post your favorite content's link &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0mjwxnzjenhp1otesbdq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0mjwxnzjenhp1otesbdq.png" alt="sign up" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;(this one the upload page where user share the link 👇)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fold1bb5it09gczdzu6r4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fold1bb5it09gczdzu6r4.png" alt="Upload" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;You can follow and unfollow people and can see the public post of your following&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fumzegz0wuvfi71bmqgnn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fumzegz0wuvfi71bmqgnn.png" alt="follow peole" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;you can have your post to be public or private&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffti8fjh7hl6kf59k6d2v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffti8fjh7hl6kf59k6d2v.png" alt="pub pri" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;there is also a an explore page where users get see all the public post around the world .&lt;/p&gt;

&lt;p&gt;There is much more to know but i would like you see it yourself it would be nice.&lt;/p&gt;




&lt;p&gt;But the only problem is that it is still incomplete i have worked on all the core features but i am struggling with UI or Frontend as you might see i am more fond of Backend .&lt;/p&gt;

&lt;p&gt;That's why i need some help with the Frontend if anyone is welling to work on it i will be grateful.&lt;/p&gt;

&lt;p&gt;i am using ASP.NET Core MVC for this project and Tailwind CSS on frontend &lt;/p&gt;

&lt;p&gt;this is a community own project and it will be always and when it is almost complete we can host it and let people enjoy .&lt;/p&gt;




&lt;p&gt;Thank You ❤️&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>opensource</category>
      <category>dotnet</category>
      <category>csharp</category>
    </item>
    <item>
      <title>Install Oh-My-Posh On Windows Command Prompt (cmd) Via Clink</title>
      <dc:creator>Imdad Rind</dc:creator>
      <pubDate>Thu, 14 Mar 2024 11:39:31 +0000</pubDate>
      <link>https://dev.to/emdadr/install-oh-my-posh-with-windows-command-prompt-cmd-via-clink-1483</link>
      <guid>https://dev.to/emdadr/install-oh-my-posh-with-windows-command-prompt-cmd-via-clink-1483</guid>
      <description>&lt;p&gt;If you are a fan of CMD and want the beauty of oh-my-posh but you do not want to switch to Windows PowerShell so you on the right place &lt;/p&gt;

&lt;p&gt;The problem is that CMD directly does not support oh-my-posh on it so that's why we need to do via Clink &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fehkojnvdo5g2gesmgxk8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fehkojnvdo5g2gesmgxk8.png" alt="plan old CMD" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Let's Start 😺:
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Step : 1
&lt;/h2&gt;

&lt;p&gt;First of all we need to install &lt;strong&gt;oh-my-posh&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;winget install JanDeDobbeleer.OhMyPosh -s winget
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;this commdand will install these things&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;oh-my-posh.exe - Windows executable&lt;br&gt;
 themes - The latest Oh My Posh&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;after installing &lt;strong&gt;oh-my-posh&lt;/strong&gt; you should restart your Terminal for the path to be set&lt;/p&gt;

&lt;p&gt;if the path does not automatically set you can do manual by copying the &lt;strong&gt;bin&lt;/strong&gt; path  of oh-my-posh and adding it as new path in &lt;strong&gt;Edit the system environment variables&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2 :
&lt;/h2&gt;

&lt;p&gt;Now Download &amp;amp; Install CLink from&lt;br&gt;
&lt;a href="https://chrisant996.github.io/clink/" rel="noopener noreferrer"&gt;Clink&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;after installing clink open new Terminal you see some Changes&lt;/p&gt;

&lt;p&gt;As you know that cmd directly does not support oh-my-posh on it &lt;br&gt;
so Clink 👍&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 3 :
&lt;/h2&gt;

&lt;p&gt;Now we need find the path to &lt;strong&gt;Clink scripts directory&lt;/strong&gt; which we can do by running this command &lt;/p&gt;

&lt;p&gt;&lt;code&gt;clink info&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;after running this you will get path to a lot of Clink associated but you need to select the path script &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwphae4eh3ujmcn404j7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwphae4eh3ujmcn404j7.png" alt="Path to Clink scripts directory" width="800" height="688"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;in the case of this image &lt;strong&gt;C:\User\WS\AppDate\Local\Clink&lt;/strong&gt; is the path to scripts directory yours will be something similar&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 4 :
&lt;/h2&gt;

&lt;p&gt;Opening or going to Clink scripts directory&lt;/p&gt;

&lt;p&gt;there you need to create a file named &lt;strong&gt;&lt;em&gt;oh-my-posh.lua&lt;/em&gt;&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxlu0aksawttr5wsjtp4m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxlu0aksawttr5wsjtp4m.png" alt="oh-my-posh lua file" width="800" height="363"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 5 :
&lt;/h2&gt;

&lt;p&gt;Open that file and and write or copy &amp;amp; past the following&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;load(io.popen('oh-my-posh.exe --config="C:/Users/me/jandedobbeleer.omp.json" --init --shell cmd'):read("*a"))()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;here you should replace this &lt;strong&gt;C:/Users/me/jandedobbeleer.omp.json&lt;/strong&gt; config with your own configuration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 6 :
&lt;/h2&gt;

&lt;p&gt;Restart you terminal or cmd then your good to go&lt;/p&gt;

&lt;p&gt;you might not have the best experiences with but it is something or you might do it better than me  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F62qjy4diuenj09vhnnx3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F62qjy4diuenj09vhnnx3.png" alt="omp with cmd" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Thank You ❤️
&lt;/h2&gt;

&lt;p&gt;Thank you for giving me the honor to let you know how to do the thing i am very grateful to you&lt;/p&gt;

&lt;h2&gt;
  
  
  Reference 😊
&lt;/h2&gt;

&lt;p&gt;And am thankful to all the people who worked on the product, documents and the problems &amp;amp; issues with it&lt;/p&gt;

&lt;p&gt;&lt;a href="https://ohmyposh.dev/docs/installation/windows" rel="noopener noreferrer"&gt;Oh-My-posh Windows install&lt;/a&gt;&lt;br&gt;
&lt;a href="https://chrisant996.github.io/clink/" rel="noopener noreferrer"&gt;Clink downalond link&lt;/a&gt;&lt;br&gt;
&lt;a href="https://ohmyposh.dev/docs/installation/prompt" rel="noopener noreferrer"&gt;Change your prompt from PowerShell to CMD&lt;/a&gt;&lt;br&gt;
&lt;a href="https://chrisant996.github.io/clink/clink.html#oh-my-posh" rel="noopener noreferrer"&gt;config oh-my-posh with Clink&lt;/a&gt;&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/71563215/using-git-posh-or-and-oh-my-posh-with-command-promptcmd-not-powershell-inside" rel="noopener noreferrer"&gt;using git-posh or/and oh-my-posh with Command Prompt(cmd, not Powershell) inside windows terminal&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/JanDeDobbeleer/oh-my-posh/issues/21" rel="noopener noreferrer"&gt;oh-my-posh Support for CMD&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cmd</category>
      <category>windows</category>
      <category>ohmyposh</category>
      <category>clink</category>
    </item>
    <item>
      <title>Configure a Private DNS on Debian</title>
      <dc:creator>Imdad Rind</dc:creator>
      <pubDate>Wed, 22 Nov 2023 17:57:29 +0000</pubDate>
      <link>https://dev.to/emdadr/configure-a-private-dns-on-debian-284i</link>
      <guid>https://dev.to/emdadr/configure-a-private-dns-on-debian-284i</guid>
      <description>&lt;p&gt;note : i am doing this on Debian 10 (buster) and running it on virtual machine and i am using the root or am the root user . so use &lt;code&gt;sudo&lt;/code&gt; befour every command&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Get important tools&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First of all we need some important tools for configure a private DNS so Install Bind9 and tools&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; sudo apt install bind9 bind9utils bind9-doc -y
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Configure DNS&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After installing Bind we can proceed to our main objective to configure a DNS&lt;/p&gt;

&lt;p&gt;First open the name.conf.options&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; nano /etc/bind/named.conf.options
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;After opening the file Edit the file to add a acl ( access control list) and in it write your server ip address and clint ip address&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;acl “trusted” {
    192.168.18.1; 
    192.168.18.11;
 };
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In this acl section first ip &lt;code&gt;192.168.18.1&lt;/code&gt; is our server ip and &lt;code&gt;192.168.18.11&lt;/code&gt; is our client&lt;/p&gt;

&lt;p&gt;After that in the option section write the following&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;recursion yes;
Allow-recursion {trusted;};
listen-on {192.168.18.1};
allow-transfer {none;};
forwarders {
    8.8.8.8;
    8.8.4.4;
};

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1wgd3g0cefcngvoaefit.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1wgd3g0cefcngvoaefit.png" alt="named.conf.options" width="800" height="442"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3 :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now open named.conf.local for defining zones.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; nano /etc/bind/named.conf.local
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In this file we define our forward and backward zones&lt;/p&gt;

&lt;p&gt;In forward zone we write out domain name in the name section and we provide and path to the forward zone file&lt;/p&gt;

&lt;p&gt;And in backward zone we do similar things but in the name section we write our revers ip , in my case it is  &lt;code&gt;“18.168.192”&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fchlfh7lliurtjq79cfxz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fchlfh7lliurtjq79cfxz.png" alt="zones" width="799" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4 :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now we need to create a folder for our zones&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; mkdir /etc/bind/zones
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Step 4.1&lt;/strong&gt;&lt;br&gt;
    Copy db.local for making forward zone and name after your domain name&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo cp /etc/bind/db.local /etc/bind/zones/db.hello.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Step 4.2&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Copy db.127 for creating reverse zone and name it&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; sudo cp /etc/bind/db.127 /etc/bind/zones/db.192.168.18
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Step 5&lt;/strong&gt;&lt;br&gt;
     Open forward zone file&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; nano /etc/bind/zones/db.hello.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;After opening the forward zone do the following&lt;/p&gt;

&lt;p&gt;First, you will want to edit the SOA record. Replace the first “localhost” with ns’s FQDN, then replace “root.localhost” with &lt;code&gt;“admin.hello.com”&lt;/code&gt;. Every time you edit a zone file, you need to increment the serial value before you restart the named process. We will increment it to &lt;code&gt;“3”&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjdyvbcqyrbnx6yuicdxh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjdyvbcqyrbnx6yuicdxh.png" alt="forward zone" width="800" height="297"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, delete the three records at the end of the file (after the SOA record).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fan5iw6bvwninvwaw4v12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fan5iw6bvwninvwaw4v12.png" alt="delete soa" width="677" height="131"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, add the A records for your server &amp;amp; hosts that belong in this zone. This includes any server whose name we want to end with &lt;code&gt;“.hello.com.”&lt;/code&gt; (substitute the names and private IP addresses).&lt;/p&gt;

&lt;p&gt;Befour that add NS Record for you server&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdwibyxlkomlfyywrgjca.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdwibyxlkomlfyywrgjca.png" alt="nsRecord" width="507" height="215"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Save and close the db.hello.com file.&lt;br&gt;
Final result&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcyl1eltxywzcke9y0ay3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcyl1eltxywzcke9y0ay3.png" alt="db.hello" width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now open reverse zone file &lt;/p&gt;

&lt;p&gt;Reverse zone files are where we define DNS PTR records for reverse DNS lookups. Each reverse zone specified in the named.conf.local file, create a reverse zone file. We will base our reverse zone file(s) on the sample db.127 zone file. Copy it to the proper location with the following commands (substituting the destination filename so it matches your reverse zone definition):&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nano /etc/bind/zones/db.192.168.18
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In the same manner as the forward zone file, you will want to edit the SOA record and increment the serial value.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcg9cu7iadlvz8hoknvza.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcg9cu7iadlvz8hoknvza.png" alt="reverse soa" width="651" height="147"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now delete the two records at the end of the file (after the SOA record). If you’re not sure which lines to delete, they are marked with a “delete this line” comment below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd32qs7a9t3dpbvi57uga.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd32qs7a9t3dpbvi57uga.png" alt="deletw line" width="670" height="115"&gt;&lt;/a&gt;&lt;br&gt;
 At the end of the file, add your name server records with the following lines (replace the names with your own). &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3sawmp1z1bw17wxkjorj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3sawmp1z1bw17wxkjorj.png" alt="ptr record" width="454" height="149"&gt;&lt;/a&gt;&lt;br&gt;
 Note that the first column consists of the last two octets of your servers’ private IP addresses in reversed order.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvh7v4ayz7pwo6m3mjbzb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvh7v4ayz7pwo6m3mjbzb.png" alt="db.192.168.18" width="786" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Remember to check your conf and zone for errors file by following command &lt;/p&gt;

&lt;p&gt;Named-checkconf&lt;br&gt;
Named-checkzone&lt;/p&gt;

&lt;p&gt;Google it to know how to use&lt;/p&gt;

&lt;p&gt;Or let me be generous &lt;/p&gt;

&lt;p&gt;Run the following command to check the syntax of the named.conf* files:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;named-checkconf   &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;eg,:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;named-checkconf /etc/bind/named.conf.options
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;To check the “hello.com” forward zone configuration, run the following command:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;named-checkzone hello.com /etc/bind/zones/db.hello com  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;And to check the “18.168.192.in-addr.arpa” reverse zone configuration, run the following command:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo named-checkzone 18.168.192.in-addr.arpa /etc/bind/zones/db.192.168.18  
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Step 8:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Restart the Bind by this command&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; systemctl restart bind9
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Step 9:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open network interface file for adding dns name and ip&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; nano /etc/network/interfaces
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqxu86bs8cge9bx6uonzd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqxu86bs8cge9bx6uonzd.png" alt="dns search" width="383" height="69"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Add the following and remember to change the address to you ones&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 10:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Install resolvconf&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install resolvconf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Step 10.1&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Restart your networking services, applying the new changes with the following commands&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ifdown --force eth1 &amp;amp;&amp;amp; sudo ip addr flush dev eth1 &amp;amp;&amp;amp; sudo ifup --force eth1

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Step 10.2&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; cat /etc/resolv.conf

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;To check the settings for dns&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 11&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Final step to check if domain name or dns is working &lt;br&gt;
Open your bowser and your url&lt;br&gt;
In my case which is &lt;/p&gt;

&lt;p&gt;&lt;code&gt;http://hello.com&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Thank You ❤️
&lt;/h2&gt;

&lt;p&gt;thank you for reading this far if there is any problem or any suggestion or anything just contact me&lt;/p&gt;
&lt;h2&gt;
  
  
  Reference
&lt;/h2&gt;

&lt;p&gt;How To Configure BIND as a Private Network DNS Server on Debian 9&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;a href="https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-a-private-network-dns-server-on-debian-9" rel="noopener noreferrer"&gt;
      digitalocean.com
    &lt;/a&gt;
&lt;/div&gt;



</description>
      <category>linux</category>
      <category>debian</category>
      <category>dns</category>
    </item>
    <item>
      <title>Install SNMP &amp; MRTG on Debian 10 (buster)</title>
      <dc:creator>Imdad Rind</dc:creator>
      <pubDate>Fri, 10 Nov 2023 20:06:54 +0000</pubDate>
      <link>https://dev.to/emdadr/install-snmp-mrtg-on-debian-10-buster-1go5</link>
      <guid>https://dev.to/emdadr/install-snmp-mrtg-on-debian-10-buster-1go5</guid>
      <description>&lt;p&gt;Note : this document is only for debian 10 or maybe 9. The process for debian 12 is somewhat different maybe also for 11 too and also i am doing it on VirtualBox &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 0:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Install the following which are needed to setup snamp&lt;/p&gt;

&lt;p&gt;&lt;code&gt;apt install apache2&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In my case these were not needed&lt;/p&gt;

&lt;p&gt;&lt;code&gt;apt install php7.3 php7.3-gd php7.3-cli&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open your terminal and enter the following&lt;/p&gt;

&lt;p&gt;&lt;code&gt;apt install snmp snmpd -y&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When snmp and snmpd are installed successfully then open flowing file &lt;/p&gt;

&lt;p&gt;&lt;code&gt;nano /etc/snmp/snmp.comf&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After opening the file scroll down and do these&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Uncomment&lt;/strong&gt; &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;rocommunity public localhost&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Edit and write&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Write the location of the system like “ rack , city, country”&lt;br&gt;
&lt;code&gt;sysLocation "Turbat, Balochistan"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Write the information of admin&lt;br&gt;
&lt;code&gt;sysContact "emdadR, 1103852@stud.uot.edu.pk"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Restart snmp&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Service snmp restart&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now type to retrieve information from an snmp agent for…&lt;/p&gt;

&lt;p&gt;&lt;code&gt;snmpwalk -v1 -c public localhost&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6 :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;On this step we need to install “mrtg”&lt;/p&gt;

&lt;p&gt;&lt;code&gt;apt install mrtg&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7:&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;At the step we need to make a folder in “ /var/www/html ” for mrtg files and webpages&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mkdir /var/www/html/mrtg&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create config file for mrtg&lt;/p&gt;

&lt;p&gt;&lt;code&gt;cfgmaker public@localhost  &amp;gt; /etc/mrtg.cfg&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 9 :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open “ mrtg.cfg “ file for making some changes &lt;/p&gt;

&lt;p&gt;&lt;code&gt;nano /etc/mrtg.cfg&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 10 :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Scroll down and find &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“ # for Debian&lt;br&gt;
WorkDir: /var/www/mrtg&lt;br&gt;
”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And edit it to &lt;/p&gt;

&lt;p&gt;&lt;code&gt;WorkDir: /var/www/html/mrtg&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 11:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create a index file for mrtg Graph &lt;/p&gt;

&lt;p&gt;&lt;code&gt;Indexmaker /etc/mrtg.cfg &amp;gt; /var/www/html/mrtg/index.html&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 12:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open the your browser to see the data traffic with mrtg&lt;/p&gt;

&lt;p&gt;When you open your browse and enter the following in URL section &lt;/p&gt;

&lt;p&gt;Your machine IP Address where apache is installed &lt;br&gt;
Like in my case it installed on my client machine&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`192.168.18.11/mrtg
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;`&lt;br&gt;
Or &lt;/p&gt;

&lt;p&gt;Your dns name &lt;br&gt;
    Like in my case it is &lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;`http://hello.com/mrtg`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;note : i have configured a private DNS on another machine  that i have &lt;br&gt;
that's whay i have this .&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;hello.com&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  ThankYou ❤️
&lt;/h2&gt;

&lt;p&gt;thank for getting this far&lt;/p&gt;
&lt;h3&gt;
  
  
  Reference
&lt;/h3&gt;

&lt;p&gt;Billy R  Install SNMP &amp;amp; MRTG Debian 10 - YouTube&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/_kQKbMT8mfc"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

</description>
      <category>linux</category>
      <category>debian</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
