SlideShare a Scribd company logo
Chacón Chávez María Guadalupe
Ing. Desarrollo de Software
2014.Mar.11
UBUNTU DNS CACHING CONFIGURATION
First, inorder tounderstand the activity that we will be performing,we needtounderstand what
is exactly a DNS server and why are we changing it to a caching server.
Domain Name Service (DNS) is an Internet service that maps IP addresses and fully qualified
domain names (FQDN) to one another. In this way, DNS alleviates the need to remember IP
addresses. Computers that run DNS are called name servers. Ubuntu ships with BIND (Berkley
Internet Naming Daemon), the most widely deployed DNS server.
Installing Bind9
To install bind9 we run the command sudo apt-get install bind9 for whichit will asks us for root
administrator login and password.
Once installed it will display the unpackaging of the features, and It will display as replacement
of the files if Bind was previously installed in that machine
Once the bind process has been started,we access the configurationfiles which are located at
etc/bind9 for which we will also need to log in as root users.
Within the configurationfiles we will access sudo /etc/bind/named.conf.options to edit the
forwarders address withour ownloopback default gateway fromourISP.
To obtainthe loopback ipaddress we run the command ifconfig to display all the network
information,basedonthe example below we see that the loopback ipaddress forthis
computeris 127.0.0.1
`
We edit the default forwarders that we had,whichwere 8.8.8.8 andwe instead replace them
with 127.0.0.1 andsave the changes.
It is also very important to restart the bind daemon by using sudo /etc/init.d/bind9/restart
Afterthat we cantest the response time afterwe have changedourdns server to caching,by
using the command dig –x 127.0.0.1 andwe shouldget the Query time result which in this
case is 117msec.
Dig canalso work ondomains andprovide us with the query time as well, the following
example below,shows the query time forfacebook.cominits first try which resultedin
113msec.
In our third attempt we got for query time 47 msec indicatingthe fast response fromthe
server afterchangingit as caching.
CONCLUSION
The mainobjective of goingthroughthis process is simply to avoidDNS latency whichcancause
slow browsing andperformance when accessingthe internet, network congestion and also to
prevent bottle necks by shorteningthe query time and the TTL andRTT of the DNS server itself.
Also is especially beneficial for environments that have a large amount of resolver calls where
the majority of those calls are repetitive and the DNS information doesn’t change very
frequently. Resolving with caching resulted in a higher performance rate as previously
mentioned due to less processor use which also benefits the hardware’s life spam and usage.

More Related Content

What's hot

Puppet
PuppetPuppet
LSA2 - 02 Control Groups
LSA2 - 02   Control GroupsLSA2 - 02   Control Groups
LSA2 - 02 Control Groups
Marian Marinov
 
Ftp configuration
Ftp configurationFtp configuration
Ftp configuration
Himanshu Bhardwaj
 
От sysV к systemd
От sysV к systemdОт sysV к systemd
От sysV к systemd
Denis Kovalev
 
Linux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiLinux corporate-training-in-mumbai
Linux corporate-training-in-mumbai
Unmesh Baile
 
Habilitar repositorio EPEL RHEL
Habilitar repositorio EPEL RHELHabilitar repositorio EPEL RHEL
Habilitar repositorio EPEL RHEL
Moisés Elías Araya
 
Rhel3
Rhel3Rhel3
LSA2 - PostgreSQL
LSA2 - PostgreSQLLSA2 - PostgreSQL
LSA2 - PostgreSQL
Marian Marinov
 
Tutorial : Zimbra on BlankOn
Tutorial : Zimbra on BlankOnTutorial : Zimbra on BlankOn
Tutorial : Zimbra on BlankOn
princeofgiri
 
testing-nfs
testing-nfstesting-nfs
testing-nfs
guest4e525f
 
Presentation Linux Server setup Advance Networking
Presentation   Linux Server setup Advance NetworkingPresentation   Linux Server setup Advance Networking
Presentation Linux Server setup Advance Networking
Tariqul Islam Shohag
 
DNS (BIND) on CentOS
DNS (BIND) on CentOSDNS (BIND) on CentOS
DNS (BIND) on CentOS
Md Tanjil Islam Bappi
 
Logical volume manager xfs
Logical volume manager xfsLogical volume manager xfs
Logical volume manager xfs
Sarwar Javaid
 
Samba
SambaSamba
Samba
Md Shihab
 
Linux LVM Logical Volume Management
Linux LVM Logical Volume ManagementLinux LVM Logical Volume Management
Linux LVM Logical Volume Management
Manolis Kartsonakis
 
Haproxy - zastosowania
Haproxy - zastosowaniaHaproxy - zastosowania
Haproxy - zastosowania
Łukasz Jagiełło
 
Dns
DnsDns
Hadoop Cluster - Basic OS Setup Insights
Hadoop Cluster - Basic OS Setup InsightsHadoop Cluster - Basic OS Setup Insights
Hadoop Cluster - Basic OS Setup Insights
Sruthi Kumar Annamnidu
 
Comparison of foss distributed storage
Comparison of foss distributed storageComparison of foss distributed storage
Comparison of foss distributed storage
Marian Marinov
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
عطاءالمنعم اثیل شیخ
 

What's hot (20)

Puppet
PuppetPuppet
Puppet
 
LSA2 - 02 Control Groups
LSA2 - 02   Control GroupsLSA2 - 02   Control Groups
LSA2 - 02 Control Groups
 
Ftp configuration
Ftp configurationFtp configuration
Ftp configuration
 
От sysV к systemd
От sysV к systemdОт sysV к systemd
От sysV к systemd
 
Linux corporate-training-in-mumbai
Linux corporate-training-in-mumbaiLinux corporate-training-in-mumbai
Linux corporate-training-in-mumbai
 
Habilitar repositorio EPEL RHEL
Habilitar repositorio EPEL RHELHabilitar repositorio EPEL RHEL
Habilitar repositorio EPEL RHEL
 
Rhel3
Rhel3Rhel3
Rhel3
 
LSA2 - PostgreSQL
LSA2 - PostgreSQLLSA2 - PostgreSQL
LSA2 - PostgreSQL
 
Tutorial : Zimbra on BlankOn
Tutorial : Zimbra on BlankOnTutorial : Zimbra on BlankOn
Tutorial : Zimbra on BlankOn
 
testing-nfs
testing-nfstesting-nfs
testing-nfs
 
Presentation Linux Server setup Advance Networking
Presentation   Linux Server setup Advance NetworkingPresentation   Linux Server setup Advance Networking
Presentation Linux Server setup Advance Networking
 
DNS (BIND) on CentOS
DNS (BIND) on CentOSDNS (BIND) on CentOS
DNS (BIND) on CentOS
 
Logical volume manager xfs
Logical volume manager xfsLogical volume manager xfs
Logical volume manager xfs
 
Samba
SambaSamba
Samba
 
Linux LVM Logical Volume Management
Linux LVM Logical Volume ManagementLinux LVM Logical Volume Management
Linux LVM Logical Volume Management
 
Haproxy - zastosowania
Haproxy - zastosowaniaHaproxy - zastosowania
Haproxy - zastosowania
 
Dns
DnsDns
Dns
 
Hadoop Cluster - Basic OS Setup Insights
Hadoop Cluster - Basic OS Setup InsightsHadoop Cluster - Basic OS Setup Insights
Hadoop Cluster - Basic OS Setup Insights
 
Comparison of foss distributed storage
Comparison of foss distributed storageComparison of foss distributed storage
Comparison of foss distributed storage
 
Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9Installing lemp with ssl and varnish on Debian 9
Installing lemp with ssl and varnish on Debian 9
 

Similar to Configuracion de red en ubuntu

Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk Webhosting
Beni Krisbiantoro
 
Modul server debian 5
Modul server debian 5Modul server debian 5
Modul server debian 5
UNISKA, SMK Telkom Banjarbaru
 
Implementing DNS in Samba PDC
Implementing DNS in Samba PDCImplementing DNS in Samba PDC
Implementing DNS in Samba PDC
Jalpa Soni
 
15 Setup BIND 9
15 Setup BIND 915 Setup BIND 9
15 Setup BIND 9
Hameda Hurmat
 
main
mainmain
DNS,SMTP and POP3
DNS,SMTP and POP3DNS,SMTP and POP3
DNS,SMTP and POP3
Omar Faruk Sazib
 
Windows 2003 Server
Windows 2003 ServerWindows 2003 Server
Windows 2003 Server
Teja Bheemanapally
 
Rhel4
Rhel4Rhel4
Install nagios
Install nagiosInstall nagios
Install nagios
hassandb
 
Install nagios
Install nagiosInstall nagios
Install nagios
hassandb
 
Install nagios
Install nagiosInstall nagios
Install nagios
hassandb
 
configure a DHCP server on Fedora.pdf
configure a DHCP server on Fedora.pdfconfigure a DHCP server on Fedora.pdf
configure a DHCP server on Fedora.pdf
Hussein Younis
 
Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8
Kaan Aslandağ
 
Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2
benjaminwootton
 
Linux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guideLinux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guide
jasembo
 
z/OS Communications Server: z/OS Resolver
z/OS Communications Server: z/OS Resolverz/OS Communications Server: z/OS Resolver
z/OS Communications Server: z/OS Resolver
zOSCommserver
 
Sharing your-internet-connection-on-linux
Sharing your-internet-connection-on-linuxSharing your-internet-connection-on-linux
Sharing your-internet-connection-on-linux
jasembo
 
Kickstart
KickstartKickstart
Applications.docx
Applications.docxApplications.docx
Applications.docx
ssuserf7cd2b
 
Drupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The BasicsDrupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The Basics
John Smith
 

Similar to Configuracion de red en ubuntu (20)

Tutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk WebhostingTutorial CentOS 5 untuk Webhosting
Tutorial CentOS 5 untuk Webhosting
 
Modul server debian 5
Modul server debian 5Modul server debian 5
Modul server debian 5
 
Implementing DNS in Samba PDC
Implementing DNS in Samba PDCImplementing DNS in Samba PDC
Implementing DNS in Samba PDC
 
15 Setup BIND 9
15 Setup BIND 915 Setup BIND 9
15 Setup BIND 9
 
main
mainmain
main
 
DNS,SMTP and POP3
DNS,SMTP and POP3DNS,SMTP and POP3
DNS,SMTP and POP3
 
Windows 2003 Server
Windows 2003 ServerWindows 2003 Server
Windows 2003 Server
 
Rhel4
Rhel4Rhel4
Rhel4
 
Install nagios
Install nagiosInstall nagios
Install nagios
 
Install nagios
Install nagiosInstall nagios
Install nagios
 
Install nagios
Install nagiosInstall nagios
Install nagios
 
configure a DHCP server on Fedora.pdf
configure a DHCP server on Fedora.pdfconfigure a DHCP server on Fedora.pdf
configure a DHCP server on Fedora.pdf
 
Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8Configuration of BIND DNS Server On CentOS 8
Configuration of BIND DNS Server On CentOS 8
 
Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2Configuring Your First Hadoop Cluster On EC2
Configuring Your First Hadoop Cluster On EC2
 
Linux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guideLinux hpc-cluster-setup-guide
Linux hpc-cluster-setup-guide
 
z/OS Communications Server: z/OS Resolver
z/OS Communications Server: z/OS Resolverz/OS Communications Server: z/OS Resolver
z/OS Communications Server: z/OS Resolver
 
Sharing your-internet-connection-on-linux
Sharing your-internet-connection-on-linuxSharing your-internet-connection-on-linux
Sharing your-internet-connection-on-linux
 
Kickstart
KickstartKickstart
Kickstart
 
Applications.docx
Applications.docxApplications.docx
Applications.docx
 
Drupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The BasicsDrupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The Basics
 

Configuracion de red en ubuntu

  • 1. Chacón Chávez María Guadalupe Ing. Desarrollo de Software 2014.Mar.11 UBUNTU DNS CACHING CONFIGURATION First, inorder tounderstand the activity that we will be performing,we needtounderstand what is exactly a DNS server and why are we changing it to a caching server. Domain Name Service (DNS) is an Internet service that maps IP addresses and fully qualified domain names (FQDN) to one another. In this way, DNS alleviates the need to remember IP addresses. Computers that run DNS are called name servers. Ubuntu ships with BIND (Berkley Internet Naming Daemon), the most widely deployed DNS server. Installing Bind9 To install bind9 we run the command sudo apt-get install bind9 for whichit will asks us for root administrator login and password.
  • 2. Once installed it will display the unpackaging of the features, and It will display as replacement of the files if Bind was previously installed in that machine
  • 3. Once the bind process has been started,we access the configurationfiles which are located at etc/bind9 for which we will also need to log in as root users.
  • 4. Within the configurationfiles we will access sudo /etc/bind/named.conf.options to edit the forwarders address withour ownloopback default gateway fromourISP.
  • 5. To obtainthe loopback ipaddress we run the command ifconfig to display all the network information,basedonthe example below we see that the loopback ipaddress forthis computeris 127.0.0.1 `
  • 6. We edit the default forwarders that we had,whichwere 8.8.8.8 andwe instead replace them with 127.0.0.1 andsave the changes.
  • 7. It is also very important to restart the bind daemon by using sudo /etc/init.d/bind9/restart
  • 8. Afterthat we cantest the response time afterwe have changedourdns server to caching,by using the command dig –x 127.0.0.1 andwe shouldget the Query time result which in this case is 117msec.
  • 9. Dig canalso work ondomains andprovide us with the query time as well, the following example below,shows the query time forfacebook.cominits first try which resultedin 113msec.
  • 10. In our third attempt we got for query time 47 msec indicatingthe fast response fromthe server afterchangingit as caching.
  • 11. CONCLUSION The mainobjective of goingthroughthis process is simply to avoidDNS latency whichcancause slow browsing andperformance when accessingthe internet, network congestion and also to prevent bottle necks by shorteningthe query time and the TTL andRTT of the DNS server itself. Also is especially beneficial for environments that have a large amount of resolver calls where the majority of those calls are repetitive and the DNS information doesn’t change very frequently. Resolving with caching resulted in a higher performance rate as previously mentioned due to less processor use which also benefits the hardware’s life spam and usage.