SlideShare a Scribd company logo
ReversePrimary DNS for PTR type record ipv6
with forwarders
1. A primary DNS server is responsible for reading data related to the domain zone and respond to
Ip address of that Fully Qualified Domain Name (FQDN) and vice-versa means take Ip address
respond to Fully Qualified Domain Name (FQDN).
2. But here we have used PTR record so FQDN to Ip address.
3. Primary DNS is only One But Secondary can be multiple in numbers.
4. The connection between Client and Primary DNS is through 53/UDP port.
5. The connection between Primary DNS ans Secondary DNS is through 53/TCP port.
6. We can query for ip from primary DNS only means we can’t query from secondary DNS
7. The primary server is also responsible for communicating with the secondary server for
recovery purpose..
8. The process of a primary web server communicating with the secondary server is known as a
zone transfer, as zone data is being sent from a DNS server to another.
9. Each domain name is assigned to DNS servers for redundancy, and to simplify the process of
server administration. If a primary server already contains the zone data for a domain, this data
does not need to be replicated because the primary and secondary server continuously share
zone data.
➔ Creating Own Primary DNS on Linux using bind pakage For Rhel or CentOs
➔ Installing Software packages bind (it helps us create to primary dns)
[root@piyush Desktop]# yum install bind -y
➔ To see the confriguration file bind
[root@piyush Desktop]# rpm -qc bind
/etc/logrotate.d/named
/etc/named.conf
/etc/named.iscdlv.key
/etc/named.rfc1912.zones
/etc/named.root.key
/etc/rndc.conf
/etc/rndc.key
/etc/sysconfig/named
/var/named/named.ca
/var/named/named.empty
/var/named/named.localhost
/var/named/named.loopback
➔ Now takes backup of named.conf file as named.conf.bak
➔ named.conf looks like this
➔ [root@piyush etc]# vim named.conf
➔ Now empty the content of file.
[root@piyush etc]# echo > named.conf
Now creating the Zone for a particular domain
[root@piyush etc]# vim named.conf
● In Image :-
Note:- Ends every line in named.conf with “;”
options :- provides you option where to create zone file and Forwarder DNS
directory :- where you want to create your Zone File gives the path here
forwarders :- It is written because if local unable to resolve the it will pass query to
DNS given in forwarders like 8.8.8.8 or 8.8.4.4 (google DNS).
For every network create Zone block
zone :- for creating zone for different Network having different Ip address Pool
"0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa" :- Ip address Pool of network “2000:0db8:0000.”
in reverse order.
master :- is for Primary DNS
0000.8bd0.1002.revdns :- Zone file Name (name can be any thing but for convenience use
name as Network address )
➔ similarly for Network “4003:71ba:0000:0000:0000:0000.0000” create zone.
➔ Now create the zone file ( 0000.8bd0.1002.revdns and
0000.0000.0000.0000.0000.ab17.3004.revdns )
[root@piyush etc]# cd /var/named/
[root@piyush named]# ls
data dynamic named.ca named.empty named.localhost named.loopback slaves
➔ Firstly copy the content of named.localhost in the file 0000.8bd0.1002.revdns and
0000.0000.0000.0000.0000.ab17.3004.revdns (Zone file)
[root@piyush named]# cat named.localhost
[root@piyush named]# cp named.localhost 0000.8bd0.1002.revdns
[root@piyush named]# cp named.localhost 0000.0000.0000.0000.0000.ab17.3004.revdns
➔ Make the owner and group of file to named
[root@piyush named]#chown named:named 0000.8bd0.1002.revdns
[root@piyush named]#chown named:named 0000.0000.0000.0000.0000.pk17.3004.revdns
➔ Now editing the files according to the requirement
[root@piyush named]# vim 0000.8bd0.1002.revdns
● In image :-
FQDN: = Fully Qualified Domain Name hostname.domainname.topleveldomain
hostname.subdomainname.domainname.topleveldomain
Note :-
If you writing FQDN them put “.” Dot at end otherwise if you wrinting only hostname
no need to put Dot at end.
Not necessary to write TTL
Entry Format:- RemainingOctetOfIpaddr TTL IN Record_Type FQDN
2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b :- Remaining Octet of Ip Address other than in zone
(host ip)
IN :- Internet
abc.piyush.com. :- FQDN
RECORD_TYPE
PTR :- For Ip address to FQDN conversion
CNAME :- Canonical name means here abc.piyush.com. Points to
same Ip addresses 2001:0db8:0000:b000::0002 ,
2001:0db8:0000:b000::0022 and 2001:0db8:0000:b000::3322
➔ Similarly for Network 4003:71ba:0000:0000:0000:0000:0000
[root@piyush named]# vim 0000.0000.0000.0000.0000.ab17.3004.revdns
● In image :-
Note:-
If firewall is running add dns to firewalld service or flush the firewalld as you wish
➔ Now restart the service if no error in syntax , the service get restart without error
[root@piyush Desktop]# systemctl restart named
[root@piyush Desktop]# systemctl enable --now named
Now Time For doing Query from DNS
➔ Now move to another pc or client to check
➔ Firstly adding nameserver as ip of DNS server.
root@piyush Desktop]#vim /etc/resolv.conf
Now do query :-
IPv6 of Outer Domain
As we have use forwarders in options section of named.conf file your DNS can resolve domain
name whose entry are not mentioned in named.conf file.
Now checking ipv6 of google whose entry is not present in local DNS
6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder

More Related Content

What's hot

Dns centos
Dns centosDns centos
Dns centos
Bung Densol
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command Reference
Sumankumar Panchal
 
Dns
DnsDns
Linux Addministration
Linux AddministrationLinux Addministration
Linux Addministration
PandeyABHISHEK1
 
Unix Command-Line Cheat Sheet BTI2014
Unix Command-Line Cheat Sheet BTI2014Unix Command-Line Cheat Sheet BTI2014
Unix Command-Line Cheat Sheet BTI2014
Noé Fernández-Pozo
 
linux networking commands short
linux networking commands shortlinux networking commands short
linux networking commands short
Sayed Ahmed
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
swtjerin4u
 
Linux networking commands short
Linux networking commands shortLinux networking commands short
Linux networking commands short
Sayed Ahmed
 
Linux networking commands
Linux networking commandsLinux networking commands
Linux networking commands
Sayed Ahmed
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014
Peter Martin
 
Dns server setup on ubuntu vps (master+slave)
Dns server setup on ubuntu vps (master+slave)Dns server setup on ubuntu vps (master+slave)
Dns server setup on ubuntu vps (master+slave)
Vijay Sharma
 
DNS server configurationDns server configuration
DNS server configurationDns server configurationDNS server configurationDns server configuration
DNS server configurationDns server configuration
Thamizharasan P
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands
Raghav Arora
 
Dns
DnsDns
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
Craig Cannon
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
Davide Ciambelli
 
Basic commands
Basic commandsBasic commands
Basic commands
anamichintu
 
DNS Configuration
DNS ConfigurationDNS Configuration
DNS Configuration
Vinod Gour
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manual
dummy
 

What's hot (19)

Dns centos
Dns centosDns centos
Dns centos
 
Unix / Linux Command Reference
Unix / Linux Command ReferenceUnix / Linux Command Reference
Unix / Linux Command Reference
 
Dns
DnsDns
Dns
 
Linux Addministration
Linux AddministrationLinux Addministration
Linux Addministration
 
Unix Command-Line Cheat Sheet BTI2014
Unix Command-Line Cheat Sheet BTI2014Unix Command-Line Cheat Sheet BTI2014
Unix Command-Line Cheat Sheet BTI2014
 
linux networking commands short
linux networking commands shortlinux networking commands short
linux networking commands short
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Linux networking commands short
Linux networking commands shortLinux networking commands short
Linux networking commands short
 
Linux networking commands
Linux networking commandsLinux networking commands
Linux networking commands
 
linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014linux-commandline-magic-Joomla-World-Conference-2014
linux-commandline-magic-Joomla-World-Conference-2014
 
Dns server setup on ubuntu vps (master+slave)
Dns server setup on ubuntu vps (master+slave)Dns server setup on ubuntu vps (master+slave)
Dns server setup on ubuntu vps (master+slave)
 
DNS server configurationDns server configuration
DNS server configurationDns server configurationDNS server configurationDns server configuration
DNS server configurationDns server configuration
 
Basic linux commands
Basic linux commands Basic linux commands
Basic linux commands
 
Dns
DnsDns
Dns
 
Linux cheat-sheet
Linux cheat-sheetLinux cheat-sheet
Linux cheat-sheet
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
 
Basic commands
Basic commandsBasic commands
Basic commands
 
DNS Configuration
DNS ConfigurationDNS Configuration
DNS Configuration
 
One Page Linux Manual
One Page Linux ManualOne Page Linux Manual
One Page Linux Manual
 

Similar to 6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder

1. primary dns using bind for a and cname record for ipv4 and ipv6
1. primary dns using bind for a and cname record for ipv4 and ipv61. primary dns using bind for a and cname record for ipv4 and ipv6
1. primary dns using bind for a and cname record for ipv4 and ipv6
Piyush Kumar
 
DNS windows server(2008R2) & linux(SLES 11)
DNS windows server(2008R2) & linux(SLES 11)DNS windows server(2008R2) & linux(SLES 11)
DNS windows server(2008R2) & linux(SLES 11)
Tola LENG
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configuration
Sanguine_Eva
 
main
mainmain
DNS,SMTP and POP3
DNS,SMTP and POP3DNS,SMTP and POP3
DNS,SMTP and POP3
Omar Faruk Sazib
 
DOMAIN NAME
DOMAIN NAMEDOMAIN NAME
DOMAIN NAME
Javed Ahmed
 
DNSPresentation.pptx
DNSPresentation.pptxDNSPresentation.pptx
DNSPresentation.pptx
KailashTayde
 
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAILDNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
Utah Networxs Consultoria e Treinamento
 
15 Setup BIND 9
15 Setup BIND 915 Setup BIND 9
15 Setup BIND 9
Hameda Hurmat
 
Domain Name Service
Domain Name ServiceDomain Name Service
Domain Name Service
webhostingguy
 
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Edureka!
 
1.1 DNS.ppt.ppt
1.1 DNS.ppt.ppt1.1 DNS.ppt.ppt
1.1 DNS.ppt.ppt
KirthiKanthN
 
Dns server
Dns serverDns server
Dns server
Muuluu
 
Implementing DNS in Samba PDC
Implementing DNS in Samba PDCImplementing DNS in Samba PDC
Implementing DNS in Samba PDC
Jalpa Soni
 
Linux networking commands
Linux networking commandsLinux networking commands
Linux networking commands
Sayed Ahmed
 
Linux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiLinux corporate-training-in-mumbai
Linux corporate-training-in-mumbai
Unmesh Baile
 
server notes for beginners
server notes for beginners server notes for beginners
server notes for beginners
Abhishek Maurya
 
Modul server debian 5
Modul server debian 5Modul server debian 5
Modul server debian 5
UNISKA, SMK Telkom Banjarbaru
 
DNS SERVER
DNS SERVERDNS SERVER
DNS SERVER
MOHSIN HASAN
 
DNS
DNSDNS

Similar to 6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder (20)

1. primary dns using bind for a and cname record for ipv4 and ipv6
1. primary dns using bind for a and cname record for ipv4 and ipv61. primary dns using bind for a and cname record for ipv4 and ipv6
1. primary dns using bind for a and cname record for ipv4 and ipv6
 
DNS windows server(2008R2) & linux(SLES 11)
DNS windows server(2008R2) & linux(SLES 11)DNS windows server(2008R2) & linux(SLES 11)
DNS windows server(2008R2) & linux(SLES 11)
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configuration
 
main
mainmain
main
 
DNS,SMTP and POP3
DNS,SMTP and POP3DNS,SMTP and POP3
DNS,SMTP and POP3
 
DOMAIN NAME
DOMAIN NAMEDOMAIN NAME
DOMAIN NAME
 
DNSPresentation.pptx
DNSPresentation.pptxDNSPresentation.pptx
DNSPresentation.pptx
 
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAILDNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
 
15 Setup BIND 9
15 Setup BIND 915 Setup BIND 9
15 Setup BIND 9
 
Domain Name Service
Domain Name ServiceDomain Name Service
Domain Name Service
 
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
 
1.1 DNS.ppt.ppt
1.1 DNS.ppt.ppt1.1 DNS.ppt.ppt
1.1 DNS.ppt.ppt
 
Dns server
Dns serverDns server
Dns server
 
Implementing DNS in Samba PDC
Implementing DNS in Samba PDCImplementing DNS in Samba PDC
Implementing DNS in Samba PDC
 
Linux networking commands
Linux networking commandsLinux networking commands
Linux networking commands
 
Linux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiLinux corporate-training-in-mumbai
Linux corporate-training-in-mumbai
 
server notes for beginners
server notes for beginners server notes for beginners
server notes for beginners
 
Modul server debian 5
Modul server debian 5Modul server debian 5
Modul server debian 5
 
DNS SERVER
DNS SERVERDNS SERVER
DNS SERVER
 
DNS
DNSDNS
DNS
 

Recently uploaded

20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 

Recently uploaded (20)

20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 

6. reverse primarydns using bind for ptr and cname record ipv6 with forwarder

  • 1. ReversePrimary DNS for PTR type record ipv6 with forwarders 1. A primary DNS server is responsible for reading data related to the domain zone and respond to Ip address of that Fully Qualified Domain Name (FQDN) and vice-versa means take Ip address respond to Fully Qualified Domain Name (FQDN). 2. But here we have used PTR record so FQDN to Ip address. 3. Primary DNS is only One But Secondary can be multiple in numbers. 4. The connection between Client and Primary DNS is through 53/UDP port. 5. The connection between Primary DNS ans Secondary DNS is through 53/TCP port. 6. We can query for ip from primary DNS only means we can’t query from secondary DNS 7. The primary server is also responsible for communicating with the secondary server for recovery purpose.. 8. The process of a primary web server communicating with the secondary server is known as a zone transfer, as zone data is being sent from a DNS server to another. 9. Each domain name is assigned to DNS servers for redundancy, and to simplify the process of server administration. If a primary server already contains the zone data for a domain, this data does not need to be replicated because the primary and secondary server continuously share zone data. ➔ Creating Own Primary DNS on Linux using bind pakage For Rhel or CentOs ➔ Installing Software packages bind (it helps us create to primary dns) [root@piyush Desktop]# yum install bind -y
  • 2. ➔ To see the confriguration file bind [root@piyush Desktop]# rpm -qc bind /etc/logrotate.d/named /etc/named.conf /etc/named.iscdlv.key /etc/named.rfc1912.zones /etc/named.root.key /etc/rndc.conf /etc/rndc.key /etc/sysconfig/named /var/named/named.ca /var/named/named.empty /var/named/named.localhost /var/named/named.loopback ➔ Now takes backup of named.conf file as named.conf.bak ➔ named.conf looks like this ➔ [root@piyush etc]# vim named.conf ➔ Now empty the content of file. [root@piyush etc]# echo > named.conf Now creating the Zone for a particular domain [root@piyush etc]# vim named.conf ● In Image :-
  • 3. Note:- Ends every line in named.conf with “;” options :- provides you option where to create zone file and Forwarder DNS directory :- where you want to create your Zone File gives the path here forwarders :- It is written because if local unable to resolve the it will pass query to DNS given in forwarders like 8.8.8.8 or 8.8.4.4 (google DNS). For every network create Zone block zone :- for creating zone for different Network having different Ip address Pool "0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa" :- Ip address Pool of network “2000:0db8:0000.” in reverse order. master :- is for Primary DNS 0000.8bd0.1002.revdns :- Zone file Name (name can be any thing but for convenience use name as Network address ) ➔ similarly for Network “4003:71ba:0000:0000:0000:0000.0000” create zone. ➔ Now create the zone file ( 0000.8bd0.1002.revdns and 0000.0000.0000.0000.0000.ab17.3004.revdns ) [root@piyush etc]# cd /var/named/ [root@piyush named]# ls data dynamic named.ca named.empty named.localhost named.loopback slaves ➔ Firstly copy the content of named.localhost in the file 0000.8bd0.1002.revdns and 0000.0000.0000.0000.0000.ab17.3004.revdns (Zone file) [root@piyush named]# cat named.localhost
  • 4. [root@piyush named]# cp named.localhost 0000.8bd0.1002.revdns [root@piyush named]# cp named.localhost 0000.0000.0000.0000.0000.ab17.3004.revdns ➔ Make the owner and group of file to named [root@piyush named]#chown named:named 0000.8bd0.1002.revdns [root@piyush named]#chown named:named 0000.0000.0000.0000.0000.pk17.3004.revdns ➔ Now editing the files according to the requirement [root@piyush named]# vim 0000.8bd0.1002.revdns ● In image :-
  • 5. FQDN: = Fully Qualified Domain Name hostname.domainname.topleveldomain hostname.subdomainname.domainname.topleveldomain Note :- If you writing FQDN them put “.” Dot at end otherwise if you wrinting only hostname no need to put Dot at end. Not necessary to write TTL Entry Format:- RemainingOctetOfIpaddr TTL IN Record_Type FQDN 2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b :- Remaining Octet of Ip Address other than in zone (host ip) IN :- Internet abc.piyush.com. :- FQDN RECORD_TYPE PTR :- For Ip address to FQDN conversion CNAME :- Canonical name means here abc.piyush.com. Points to same Ip addresses 2001:0db8:0000:b000::0002 , 2001:0db8:0000:b000::0022 and 2001:0db8:0000:b000::3322 ➔ Similarly for Network 4003:71ba:0000:0000:0000:0000:0000 [root@piyush named]# vim 0000.0000.0000.0000.0000.ab17.3004.revdns ● In image :-
  • 6. Note:- If firewall is running add dns to firewalld service or flush the firewalld as you wish ➔ Now restart the service if no error in syntax , the service get restart without error [root@piyush Desktop]# systemctl restart named [root@piyush Desktop]# systemctl enable --now named Now Time For doing Query from DNS ➔ Now move to another pc or client to check ➔ Firstly adding nameserver as ip of DNS server. root@piyush Desktop]#vim /etc/resolv.conf Now do query :-
  • 7.
  • 8. IPv6 of Outer Domain As we have use forwarders in options section of named.conf file your DNS can resolve domain name whose entry are not mentioned in named.conf file. Now checking ipv6 of google whose entry is not present in local DNS