Domain Name Server (DNS) Configuration in Redhat Enterprise Linux 7/8
ฝัง
- เผยแพร่เมื่อ 27 ส.ค. 2024
- DNS: (Domain Name System/Server)
Domain Name System is a service to resolve the Name to IP Address and IP Address to Name.
The domain is the particular name of the website which is used to host/publish on the server
The server is just like a hard disk or global store management.
Different Types of DNS:
1. Primary DNS Server:
A primary DNS server is responsible for reading data related to the domain zone. The primary server is also responsible for communicating with the secondary server. Data pertaining to the domain zone is specifically designated by server administrators, who instruct the server on how to communicate and interact with other web servers.
2. Secondary DNS Server:
A secondary DNS server, also commonly referred to as a slave server, is responsible for obtaining zone data from the primary DNS server immediately after being set up. Each time a secondary DNS server functions it receives information from the primary DNS server.
--------------
How to configure the DNS:
The configuration is always on the server side
In the Linux server BIND (Berkely Internet Name Domain) package should be install. It Works on Port 53
Working of DNS:
A resolving name server is provided by your ISP (internet service provider) or your organization’s network admin. Which convey your request.
A root server is a name server for the root zone of the Domain Name System (DNS) of the Internet. It directly answers requests for records in the root zone and answers other requests by returning a list of the authoritative name servers for the appropriate top-level domain (TLD).
DNS Records:
There are 2 Type of records Static and Dynamic DNS Records
1. Static Records are the records which are manually created by the entries
2. Dynamic Records are created automatically by the system or DHCP itself
Zone Files:
The data is served by the DNS system. Zone file contains the DNS Records
Round Robin DNS:
It is a type of DNS which are used for the load balancing. The server admin can assign the multiple IP’s to a single domain.
Different type of records in DNS:
SOA (Start of Authority): It’s a first resource record in any DNS zone file. It determines the name server that is an authoritative source of information for the particular domain.
NS (Name Server): It is a process of link the registrar to the hosting service provider. In the simple since it is a process of link the domain name to the hosting server.
A: Maps the hostname to the IP address.
PTR (Pointer): Creates a pointer that maps an IP address to a hostname for reverse lookups.
CNAME (Canonical Name): Sets an alias for a host name. Record pointing to different record like facebook.com can have an alias as Log In or Sign Up, so both the records are pointing to the same page.
MX (Mail Exchanger): Specifies a mail exchange server for the domain, used for mail delivery which allows mail to be delivered to the correct mail servers.
TXT (Textual Info): It is used for the textual information regarding the records.
RP(Contact person for this zone): Contains the information regarding the person who creates the records.
==============================================
YUM Configuration in RHEL 7:
• Configure Local Yum Re...
YUM/DNF Configuration in RHEL 8:
• Configure Local DNF / ...
=====================================================
Thanks for watching the video. Please like our videos, share with your friends and feel free to ask anything, post your queries in comments section. We will feel glad to answer your question. And don't forget to subscribe the channel.
==================================================
Complete File Permissions in Linux (RHEL) including advance file permissions and ACL:
• Learn Complete File Pe...
LVM Snapshot in RHEL:
• Session-30 | Logical V...
Reset Root Password in RHEL 8:
• Reset Forgotten Root U...
Logical Volume Management in RHEL 8:
• Logical Volume Managem...
Configure VNC in RHEL:
• Configure VNC (Virtual...
Create Swap File in RHEL 8:
• Create Swap File in Re...
====================================================
Contact Us:
To Follow Vikas Nehra's Twitter Handle:👇
bit.ly/VikasNeh...
For Registration:👇
bit.ly/NehraCla...
To Follow Our Twitter Handle:👇
bit.ly/NehraCla...
To Visit Our Facebook Page:👇
nehraclasses
To Follow Nehra Classes on Instagram:👇
/ nehraclasses
To Our Visit Our Webpage:👇
bit.ly/NehraCla...
Join Us on Telegram App: 👇
t.me/NehraClasses
WhatsApp Us: 👇
bit.ly/2Kpqp5z
Email Us:👇
Email: nehraclasses@gmail.com
====================================================
©COPYRIGHT. ALL RIGHTS RESERVED.
Thank you Nehra. I have tried several time before configuring dns, but could not make it work. After this lesson, I get it right. Everything works smoothly.
Thank you Nehra Ji...very well explained
good video to configure DNS. You have to change in /etc/resolv.conf file also in order to get update the DNS.
thanks explained each file entry properly
Thank you very much sir for sharing this video
Thank You Sir...
you should have also mentioned the entries of /etc/resolv.conf and /etc/hosts. Thanks
Thanks a lot for your valuable suggestion, will make another video with in depth details of DNS including these file configurations. This session was just for the basic users and my trainees.
Can you any one explain me how to set priority 5 in mx record for a domain?
To set a priority of 5 for an MX (Mail Exchange) record for a domain, you need access to the domain's DNS (Domain Name System) settings. Here's a general guide on how to do it:
Access your DNS management interface: This could be provided by your domain registrar, web hosting provider, or DNS service provider.
Locate the DNS settings: Look for the section where you can manage your domain's DNS records. This might be called something like "DNS Management", "DNS Settings", or "Manage Domains".
Locate the MX records: MX records specify the mail servers responsible for receiving email on behalf of your domain. Find the existing MX records or add a new one if necessary.
Add or edit the MX record: You should see fields for the mail server hostname and its priority. Set the priority to 5 and enter the hostname of the mail server. The hostname typically looks like "mail.example.com" or "smtp.example.com".
Save your changes: After entering the details, save your changes. Depending on your DNS provider, there might be a "Save", "Update", or "Apply Changes" button.
Verify the changes: DNS changes may take some time to propagate across the internet. You can use online DNS lookup tools to verify that your MX record with priority 5 has been correctly set up.
Remember that specific instructions may vary depending on your DNS provider's interface. If you're unsure about making these changes, it's a good idea to consult with your domain registrar or DNS provider for assistance. Making incorrect changes to your DNS settings can potentially disrupt your domain's functionality.
I did the same all files rv fw shows ok but when i did dig command it show 0 authority and 0 answer
Please share the error screenshots in telegram group.
Thanks a lot
Amazing vedio 🤩
Thanks ☺️
Need help for extracting dns log for a particular date say 3rd jan from dns log file
please provide us all the details in our telegram channel.
Hello sir.. I have mistakenly removed AAA text from DNS record.. Will it affect my website? Plzz reply me Sir
Have you configured it in Linux server?
Sir, ay practical karne ke liye mere pas domain hona chahiye???
Nahi,
Thank you sir for replay.
HA Proxy, nginx web server, apache tomcat server, Hmail Server , os ticket par depth tutorial bnaye, thanks
Thanks for your suggestions, will definitely make videos on these topics.
Hi, Amandeep Singh
I have prepared a video on tomcat today, will upload it soon. I request you to watch it completely and share it with your friends as well. 🙏
Video on tomcat apache has been uploaded please watch, share and do subscribe to our TH-cam Channel 🙏
@@NehraClasses Already Subscribed Sir, thanks very much
Dynamic IP per dns ko kase configure krta hain
Will upload the video soon.
What is IP of Client?
[root@primary-dns ~]# nslookup google.com
;; Got SERVFAIL reply from 127.0.0.1, trying next server
Server: ::1
Address: ::1#53
** server can't find google.com: SERVFAIL
[root@primary-dns ~]#
i am getting like this please let me know where i made mistake sir