{"id":614,"date":"2019-06-12T10:14:39","date_gmt":"2019-06-12T10:14:39","guid":{"rendered":"https:\/\/hostry.com\/blog\/?p=614"},"modified":"2019-06-12T10:17:41","modified_gmt":"2019-06-12T10:17:41","slug":"what-is-dns","status":"publish","type":"post","link":"https:\/\/hostry.com\/blog\/what-is-dns\/","title":{"rendered":"What is DNS and what is it used for?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"470\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_4-1024x470.png\" alt=\"\" class=\"wp-image-634\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_4-1024x470.png 1024w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_4-450x207.png 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_4-300x138.png 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_4-768x353.png 768w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_4.png 1113w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What Is DNS <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>DNS<\/strong> is a domain name recognition system for obtaining information about domain names. The domain name system is mainly used to find out the IP address of a domain name, mail routing, as well as information recognition regarding data in <strong>DNS<\/strong> resource records. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Based on the work of the <strong>DNS<\/strong> server, the work of almost the entire Internet is built. The domain name system is set up to simplify the writing and memorization of devices. That is, instead of a hard-to-remember <strong>IP<\/strong>, a domain name is assigned to it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Previously, the <strong>HOSTS <\/strong>file was responsible for this, all Internet hosts were registered there. Since the expansion of the Internet, this is not enough, and it was intended to prescribe <strong>DNS<\/strong> records, create a domain name system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Very important!<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is worth taking care that the DNS is properly configured, because in turn this will adversely affect the performance of the site, and for a long period of time. Changing the DNS is not done immediately, it usually takes 72 hours, so then when you make changes, add a new one, or register a new DNS server, you should be very careful and responsible. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Special! If your site has a certain stream of customers who leave their data, because they, like you, are first and foremost important for the site to work correctly and quickly!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Here is the work of the DNS server<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"743\" height=\"343\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/How_DNS_works.png\" alt=\"How DNS Works\" class=\"wp-image-737\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/How_DNS_works.png 743w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/How_DNS_works-450x208.png 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/How_DNS_works-300x138.png 300w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Hostry DNS <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can configure the <strong>DNS<\/strong> server yourself. Hostry offers its own DNS server and settings for it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can find the DNS and set the appropriate values \u200b\u200bfor each record. If you do not have domain name services, we offer you to take advantage of this opportunity for free by clicking on the link:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/hostry.com\/products\/dns\/\"><strong>https:\/\/hostry.com\/products\/dns\/<\/strong><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"361\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-1-1024x361.png\" alt=\"\" class=\"wp-image-623\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-1-1024x361.png 1024w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-1-450x159.png 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-1-300x106.png 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-1-768x271.png 768w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-1.png 1919w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">DNS Records <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/dns-records-1024x538.jpg\" alt=\"\" class=\"wp-image-655\" width=\"588\" height=\"308\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/dns-records-1024x538.jpg 1024w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/dns-records-450x236.jpg 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/dns-records-300x158.jpg 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/dns-records-768x403.jpg 768w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/dns-records.jpg 1200w\" sizes=\"auto, (max-width: 588px) 100vw, 588px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_DNS_record_types\" rel=\"nofollow noopener\" target=\"_blank\">DNS records<\/a> have in themselves certain values \u200b\u200bthat you need to register. Each DNS record is unique and special, so then when you register them, make sure that you do everything correctly so that later certain errors cannot occur! DNS resource records are records that correspond to the name and service information in the domain name system (for example, the match of the hosting provider and the domain name, the correspondence of the IP address and the domain name, etc.)<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Next, we consider what types of resource records DNS are, what they mean and what values \u200b\u200bneed to be entered there<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0410 &#8211; Record<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"850\" height=\"638\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/A-\u0437\u0430\u043f\u0438\u0441\u0438.jpg\" alt=\"\" class=\"wp-image-637\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/A-\u0437\u0430\u043f\u0438\u0441\u0438.jpg 850w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/A-\u0437\u0430\u043f\u0438\u0441\u0438-450x338.jpg 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/A-\u0437\u0430\u043f\u0438\u0441\u0438-300x225.jpg 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/A-\u0437\u0430\u043f\u0438\u0441\u0438-768x576.jpg 768w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A record is a <strong>DNS<\/strong> address record that is a pointer or a guide for the correspondence between an <strong>IP address (IPv4)<\/strong> and a domain name. This entry is one of the most frequently used and popular domain names in the system. On a virtual server, you can register several A records at a time if there are several servers that fulfill the request and process information for only one domain name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>IMPORTANT<\/strong>! While A record is not registered, the site will not work.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"925\" height=\"190\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2.png\" alt=\"\" class=\"wp-image-641\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2.png 925w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-450x92.png 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-300x62.png 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-768x158.png 768w\" sizes=\"auto, (max-width: 925px) 100vw, 925px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">AAAA &#8211; Record<\/h2>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/AAAA.jpg\" alt=\"\" class=\"wp-image-643\" width=\"582\" height=\"452\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/AAAA.jpg 480w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/AAAA-450x350.jpg 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/AAAA-300x233.jpg 300w\" sizes=\"auto, (max-width: 582px) 100vw, 582px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>AAAA<\/strong> records assign the IP address to the domain name as well, but not IPv4 but <strong>IPv6<\/strong>! Each host can also have several such AAAA records.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_5-1024x216.png\" alt=\"\" class=\"wp-image-647\" width=\"591\" height=\"124\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_5-1024x216.png 1024w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_5-450x95.png 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_5-300x63.png 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_5-768x162.png 768w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_5.png 1228w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">CNAME &#8211; Record<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"670\" height=\"335\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/CNAME.jpg\" alt=\"\" class=\"wp-image-651\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/CNAME.jpg 670w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/CNAME-450x225.jpg 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/CNAME-300x150.jpg 300w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Today\none-level domain forwarding is very widely used in the domain name system!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This record allows one host name to assign another, that is, it gives a certain &#8220;<strong>alias<\/strong>&#8221; to the domain name. This canonical domain name is used to redirect or redirect the domain. For example, when making a request to <strong>www.hostry.com,<\/strong> the site hostry.com is opened, you need to create an entry <strong>www.hostry.com<\/strong> <strong>CNAME<\/strong> for the domain hostry.com. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"198\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_7-1-1024x198.png\" alt=\"\" class=\"wp-image-653\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_7-1-1024x198.png 1024w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_7-1-450x87.png 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_7-1-300x58.png 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_7-1-768x148.png 768w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_7-1.png 1128w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">MX &#8211; Record<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"153\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/mx-records-direct.jpg\" alt=\"\" class=\"wp-image-656\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/mx-records-direct.jpg 616w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/mx-records-direct-450x112.jpg 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/mx-records-direct-300x75.jpg 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MX<\/strong> records in the domain name system are provided and are responsible for the server through which mail will work. <strong>MX records are VERY important for mail operation<\/strong>, because it is thanks to them that the sender understands and knows which server to send mail for the domain to.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This record should consist of two parts: the first part is the priority (the larger the number, the lower the priority), and the node address. If, for example, mail is served by several servers at once, then the mail will be sent to that server, whose priority is correspondingly lower. If this server is unavailable for some reason, a request is sent to the next one, but with a low priority. <\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-1-1024x283.png\" alt=\"\" class=\"wp-image-660\" width=\"540\" height=\"149\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-1-1024x283.png 1024w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-1-450x124.png 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-1-300x83.png 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-1-768x212.png 768w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-1.png 1713w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">TXT &#8211; Record<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"274\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1.jpg\" alt=\"\" class=\"wp-image-663\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1.jpg 748w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-450x165.jpg 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-300x110.jpg 300w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This\ntype of record keeps all the textual information about the domain name. TXT\nrecords are used for various purposes:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Email Security;<\/strong><\/li><li><strong>Proof of use and ownership of the domain name;<\/strong><\/li><li><strong>Confirmation of the site security certificate;<\/strong><\/li><li><strong>Verify Domain Information<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Also in the TXT records can be used to specify the STP-domain records<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">NS &#8211; Record<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"325\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2.jpg\" alt=\"\" class=\"wp-image-667\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2.jpg 800w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-450x183.jpg 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-300x122.jpg 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_2-768x312.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The function of <strong>NS <\/strong>records in the domain name system is pointing to the <strong>DNS<\/strong> server that serves this domain. This type is very important for the domain name system to function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This type of record is responsible for storing the remaining resource records. The total number of <strong>NS records must necessarily strictly<\/strong> <strong>correspond<\/strong> <strong>to the number of servers serving it. <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_3-1024x272.png\" alt=\"\" class=\"wp-image-669\" width=\"583\" height=\"155\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_3-1024x272.png 1024w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_3-450x120.png 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_3-300x80.png 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_3-768x204.png 768w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_3.png 1113w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to configure the DNS server<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"526\" src=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-3-1024x526.png\" alt=\"\" class=\"wp-image-672\" srcset=\"https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-3-1024x526.png 1024w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-3-450x231.png 450w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-3-300x154.png 300w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-3-768x394.png 768w, https:\/\/hostry.com\/blog\/wp-content\/uploads\/2019\/06\/Screenshot_1-3.png 1245w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Debian DNS Setup<\/strong> <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, you need to <strong>instal<\/strong>l <strong>bind9<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>apt-get install bind9<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then, Edit the <strong>\/etc\/bind\/named.conf<\/strong> file to add a description of your zone (For Example,domain <strong>hostry.com<\/strong>) <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">zone \"<strong>hostry.com<\/strong>\" {\n        type master;\n        file \"\/etc\/bind\/<strong>hostry.com<\/strong>\";\n};<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It is necessary to edit the file<strong> \/etc\/bind\/hostry.com<\/strong> while adding the lines:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> $TTL    3600\n @  IN      SOA     ns1.<strong>hostry.com<\/strong>. root.<strong>hostry.com<\/strong> . (2012000001 10800 3600 604800 86400) \n\n @  IN      NS      ns1 \n @  IN      NS      ns2 \n\n ns1     IN      A       10.10.10.10 \n ns2     IN      A       192.168.1.1  <\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">@       IN      A       10.10.10.10\nwww     IN      A       10.10.10.10<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After re-read the DNS server configuration <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>rndc reload<\/strong><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Ubuntu DNS Setup<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"> Since the bind9 package is already installed, you need to start it:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> <strong>\/etc\/init.d\/bind9 start\n update-rc.d bind9 start 15 2 3 4 5 .  stop 70 0 1 6 <\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Further configuration is performed in the same way as in Debian<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CentOS DNS Setup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Since\nthe centos DNS template is already pre-installed in the centos software\ntemplate, it should be further configured and run.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do this, you need to edit the file <strong>\/etc\/named.conf<\/strong>, you should delete and replace with the characters of the line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>listen-on port 53 { 127.0.0.1; };\nallow-query     { localhost; };<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next, you need to install <strong>rndc.key. <\/strong>You can create (<strong>\/etc\/rndc.key<\/strong>)<strong> <\/strong>using the command <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>rndc-confgen -a<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then, add the following values \u200b\u200bto \/etc\/named.conf: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>key \"rndc-key\" {\n      algorithm hmac-md5;\n      secret \"sUUony71pdPDHSZjNrkDFQ==\";\n};\n\n controls {        inet 127.0.0.1 port 953        allow { 127.0.0.1; } keys { \"rndc-key\"; }; }; <\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>**secret \"sUUony71pdPDHSZjNrkDFQ==\";<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>**<\/strong>This value needs to be taken from the \/etc\/rndc.key file. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After you need to run named and add it to auto run<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\/etc\/init.d\/named start\nchkconfig named --level 2345 on<\/strong><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Recommendations<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Hostry recommends registering a domain name<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/hostry.com\/products\/domains\/\">https:\/\/hostry.com\/products\/domains\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, register the DNS records that are necessary for its proper operation<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/hostry.com\/products\/dns\/\">https:\/\/hostry.com\/products\/dns\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Thank you for choosing our service!<\/strong> <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>What Is DNS DNS is a domain name recognition system for obtaining information about domain names. The domain name system is mainly used to find out th&#8230;<\/p>\n","protected":false},"author":1,"featured_media":740,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[43,44],"class_list":["post-614","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system-admin","tag-dns","tag-dns-record"],"read_time":6,"_links":{"self":[{"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/posts\/614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/comments?post=614"}],"version-history":[{"count":63,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/posts\/614\/revisions"}],"predecessor-version":[{"id":739,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/posts\/614\/revisions\/739"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/media\/740"}],"wp:attachment":[{"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/media?parent=614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/categories?post=614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostry.com\/blog\/wp-json\/wp\/v2\/tags?post=614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}