DNS Explained. Hentzenwerke Whitepaper Series. By Whil Hentzen

Size: px
Start display at page:

Download "DNS Explained. Hentzenwerke Whitepaper Series. By Whil Hentzen"

Transcription

1 HentzenwerkeWhitepaperSeries DNSExplained ByWhilHentzen DNS. In a general sense, it's what tells your computer that is attached to , so that you can enter ' YoucanlivealongtimewithoutknowinganythingaboutDNS,and,ina perfectworld,that'showitshouldbe,justasyoudon'thavetoknowthe mixoffueltooxygenthatyourcarburetordeliverstoletyourcarengine run. But it's not a perfect world, not quite yet, and so there are times, particularlyasawebsitedeveloper,thatyou'llneedtoknowabit,oralot, aboutdns.

2 Page2 DNSExplained 1.Preface 1.1Copyright Copyright2006WhilHentzen.Somerightsreserved.ThisworkislicensedundertheCreativeCommonsAttribution NonCommercial NoDerivsLicense,whichbasicallymeansthatyoucancopy,distribute,anddisplayonlyunalteredcopies ofthiswork,butinreturn,youmustgivetheoriginalauthorcredit,youmaynotdistributetheworkforcommercialgain, norcreatederivativeworksbasedonitwithoutfirstlicensingthoserightsfromtheauthor.toviewacopyofthislicense, visithttp://creativecommons.org/licenses/by nc nd/2.0/. 1.2Revisions 1.2.1History Version Date Synopsis Author /11/21 Original WH 1.2.2Newversion Thenewestversionofthisdocumentwillbefoundatwww.hentzenwerke.com Feedbackandcorrections Ifyouhavequestions,comments,orcorrectionsaboutthisdocument,pleasefeelfreeto meat 1.3Referencesandacknowledgments ThankstothefolksontheMilwaukeeLinuxUserGrouplist( reviewedmultiplecopiesofthisdocument,aswellasallthatamazingstuffthatonecanfindontheinternet. 1.4Disclaimer Nowarranty!Thismaterialisprovidedasis,withnowarrantyoffitnessforanyparticularpurpose.Usetheconcepts, examplesandothercontentatyourownrisk.theremaybeerrorsandinaccuraciesthatinsomeconfigurationsmaybe damagingtoyoursystem.theauthor(s)disavowsallliabilityforthecontentsofthisdocument. Beforemakinganychangestoyoursystem,ensurethatyouhavebackupsandotherresourcestorestorethesystemto itsstatebeforemakingthosechanges. Allcopyrightsareheldbytheirrespectiveowners,unlessspecificallynotedotherwise.Useofaterminthisdocument shouldnotberegardedasaffectingthevalidityofanytrademarkorservicemark.namingofparticularproductsorbrands shouldnotbeseenasendorsements. 1.5Prerequisites ThisdocumentwaswrittenforfolkswhowanttodevelopWebsitesandputthemontheInternet.Itisnotintendedforfolks whowouldbeadministeringadnsserver,say,foranisp.rather,itprovidesahigh leveloverviewofthetechnologyand whatawebsitedeveloperneedstoknow.assuch,itglossesoversomeofthein depthtechnicalissuesandsimplifies others,eliminatingdetailsthatareunimportantforthislevelofdiscussion.

3 DNSExplained Page3 2.ThefourplayersintheDNSarchitecture Strictlyspeaking,DNS=DomainNameService,thearchitectureformappingIPaddressestohostnames.Unfortunately, sloppiness,slang,andjargonhasusurpedthetermtomeaneverythingfromthearchitecturetothesoftwarethatimplements thearchitecturetothedatabasethatholdstheactualhostname IPaddressmappings. Thereareseveralplayersinvolvedinthearchitecture thednsdatabase,adnsserver,andadnsclient. Thefirstplayeristhe"DNSdatabase",thedatabasewheretheactualmappingsofhostnamesandIPaddressesare stored.thesecondplayerisadnsserver,thesoftwarethatdishesoutinfofromthednsdatabasewhenasked.thedns databaseandthednsserversoftwarebothreside,obviously,onadnsservermachine.thednsclientistheprogram(in aloosesenseoftheword)thatsitsonanend user'scomputerthatdoestheaskingofadnsserverwhentheend useris tryingtoconnecttoanothercomputer. 2.1DNSdatabase Eachmappingisstoredina(verylarge)databasethatisdistributedacrossacollectionofspecialserversconnectedtothe Internet,sothatonlypartofthedatabaseisonanyoneserver.TheseserversarecalledDNSservers,or,sometimes,DNS nameservers.therearedifferentdnsserversfordifferenttopleveldomains thoseendingin'.com'arelocatedinone database,forexample,whilethoseendingin'.edu'arelocatedinanotherdatabase.whenyouwanttoaccesscontenton example.com,you'lltypethaturlintoyourbrowser.yourbrowserlooksuptheipaddressofexample.com'shostviathe appropriatednsdatabase.thisprocessiscalled'resolving'anaddress.ifeverythingworks(allthecorrectdataisfound), voila,yourbrowserisnowdisplayingdatasentfromexample.com'swebserversoftware. IntheearlydaysoftheInternet,therewereonlyafewDNSservers.TheentirelistofdomainnamesandIPaddresses wascontainedinasimpletextfile,andeverycomputerontheinternethadacopyofthattextfile.itwasrelativelyeasyto keepallofthecopiesofthistextfileinsync.decadeslater,however,thingshadgottenbusier.imagineifthetensof millionsofdomainsontheinternetwerealllistedinasingletextfile,andeveryoneofthe"billyunsandbillyuns"of computersontheinternethadtokeepanup to datecopyofthatenormoustextfile. 2.2DNSserver architecture EvenaftersplittinguptheDNSdatabaseintosubsetsforthevariousdomains,itcouldgetverycrowdedateachoftheDNS serversiftherewasonlyoneset particularlyiftherewasonlyonednsserverfor.comdomains!inaddition,havingallof thednsinformationinoneplacewouldcreateasinglepointoffailurethat,ifitdidindeedfail,wouldbringtheentire Internettoacrashinghalt.Asaresult,thearchitectsoftheInternetcreatedtheabilityformultiplecopiesoftheDNS databasestobeavailabletousersaroundtheworld.thatmeanstherearemanydnsserversscatteredaroundtheinternet. SowhenyourcomputertriestoresolveaURL,itlikelyusesacopy(or'mirror',or'slave')oftheprimaryDNSserverforthe typeofdomaininquestion,insteadofgoingtothemastercopy.thissystemofmultiplednsserversalsoprovides redundancy ifoneofthemgoesdown,yourcomputercanuseadifferentdnsserverinsteadofgettingstalled.kindof likehavingasparecopyofthephonebookathomewhenthemastercopyhasdisappearedsomewhereinyourteenager's room. TherearelogicallytwotypesofDNSservers authoritativeandcaching(alsoknownas'recursive').asinglephysical DNSservercanservebothrolesatonce,butforsimplicity'ssake,let'sassumethatahostisoneortheother Authoritative AuthoritativeserversaretheDNSserversoflastresort,sotospeak.Apurelyauthoritativeservergetsenteredwithdata abouthostname IPaddressmappings(called'zonefiles',whichI'lldiscussshortly)andthenrespondstorequestsforthat information itneverreliesonotherdnsserversforinformationthatitismissing.twospecialcasesofauthoritative serversarerootandtldservers. TherootserversformwhatyoumightthinkofastheapexoftheDNSpyramidofservers.Theycontaininformation aboutthetld topleveldomain servers.thenextlevelaretheparent,ortld topleveldomain servers.eachofthese

4 DNSExplained Page4 isauthoritativeforoneormoretopleveldomains.forexample,.comand.netarebothhandledby*.gtld servers.net.when youregisteryourdomain,oneofthetldserverswillknowwheretofindinformationforyourdomain Caching Caching/recursiveservers,ontheotherhand,arethetypethatgetlistedasnameserversonanend user(client)computer. WhenyousetupyourInternetconnection,youlikelyhavetoentertwoormore"DNSserver"or"nameserver"addresses. Thesecachingserverscanbethoughtofastheworkerbees millionsofmachinesscatteredacrosstheglobewherethe actualdnsmappingsofhostnamesandipaddressesarestored.manyarehostedatispsandsimilarlysecureandreliable locations,buttheycouldalsobeatprivatelyowned"dns'rus"typecompanies,locatedinatrailerparkskirtinga downtown'sredlightdistrict.youcanevenrunacachingserveronyourowncomputer. Roughlyspeaking,theTLDserverspointtothese'workerbee'DNSserverswhenaskedwhereyourdomain's informationis. 2.3DNSserver software DNSserversoftwareisaprogramrunningonacomputerthatgetsqueries(intheformofURLs)fromfolkslookingfor yourdomainanddishesoutresponses(intheformofipaddresses)inreturn,usingoneofthose'workerbee'dns databases.yourfriend'bob'hearsyouhaveawebsite, WebbrowserlooksuptheDNSserversthatheenteredinhisnetworkcardsettings,andasksoneofthemwhattheIP addressforyourwebsiteis.ifthatdnsserverhasthemappingforwww.example.com,it'lllookitupandreturntheip address, insomecases,thednsserverheisusingwon'thavewww.example.cominitsowndatabase,butit knowswheretogolook thetldserverthatfor'.com'. ThisDNSserversoftwareprogramisrunningconstantly,andistypicallyconfiguredtobea'service',sothatitstartsup whenthecomputerisstarted.thisissimilartoadatabaseserverorawebserver(bothofwhich,interestinglyenough,also lieinwaitforrequestsfromusersandthendishoutresponsesinreturn.)therearespecificinstancesofdnsprograms,just liketherearespecificinstancesofdatabaseservers(mysql,postgresql,oracle)andwebservers(apache,iis,etc.). CommonDNSprogramsincludeBIND,tinydns,anddjbdns. 2.4DNSclient ThethirdplayerinthisschemeisaDNS'client'.Youcanthinkofthisclientasaprogramrunningonyourdesktop(laptop) computerthatfetchestheipaddressfromadnsserver.whenyouenteraurlintoyourbrowser,yourbrowserthentalks toyourdnsclient,whichthengoesoutontotheinternettofindoneofthednsserversthatwereidentifiedinthenetwork cardsettingsonyourcomputer.whenthednsclientgetsananswer,itthenreturnsthatanswerbacktowhoeverrequested it,suchasthewebbrowser. Strictlyspeaking,theDNSclientisn'tactuallyaseparateprogramonyourcomputer,likeaWebbrowseroran client.instead,it'samoduleorpartofalargerprogram oftentheoperatingsystem thathandlesthework.thereisn'ta separateprogramthatcanbestartedupandshutdown.awebbrowser,forinstance,wouldjustasktheostodothe lookup. 2.5Zonefile Finally,althoughIsaid,'three',there'sonemoreplayerthatIshouldmentionnow thezonefile.thednsdatabaseconsists ofmillionsofhostname IPaddressmappings.Atfirstglance,youmightthinktheDNSdatabasejustlookslikethis: anacondasteel.com bestbuy.com crazyeddie.com digg.com example.com ford.com

5 Page5 DNSExplained Inreality,thedatabaseisconsiderablymorecomplexthanthis.AdomainhasmorethanjusttheIPaddressfortheWeb server.therecouldbeotherserversinvolved,suchasanftpserveroramailserver.therecouldbesubdomains(the ' eachdomainhasasetofrecordsthattogetherarecalleda'zonefile'.asinglezonefilelookssomethinglikethis: $TTL SOAns1.example.com ;serial 3H;refresh 15;retry 1w;expire 3h;minimum ) INNSns1.example.com. INNSns2.example.com. MX10mail.example.com. MX20mail.another.com. A wwwina INCNAMEwww.example.com. hostmaster.example.com.( Whilethismaylookconfusing,thisinformationrepresentswhatwouldbeneededforarathersimpledomain.Azone fileforabigdomain,suchasforfordmotorcompanyorgeneralelectric,isconsiderablymoreinvolved.thekeypointto bringawayfromthisisthatthednsrecordsforasingledomainaremoreinvolvedthanasimpleonetoonehostname IP addressmapping.additionally,nowyouknowthatthednsdatabaseisacollectionofmillionsofzonefiles. Revisitingtheterminology...yourzonefilecontainsyourDNSrecords.EachDNSrecordisforaspecificservice,such as'www'forawebserveror"mx"foramailserver.i'llusetheterms'zonefile'and'dnsrecords'somewhat interchangably,astheyrefertothesamegeneral'chunkofdata'. Let'slookatthepaththatDNSplaysbothontheendofanindividualsurfingtheWeborgettingtheir ,andasan administratorofawebsite. 3.IndividualSurfer Whenyouconfigureyourcomputer'snetworkcardormodemtoconnecttotheInternet,yourInternetServiceProvider (ISP)givesyoutheaddressesforyourDNSsettings.Typicallyyouaregivenatleasttwo,butsometimesthree.This duplicationissothatifoneofthednsserversisunreachableorslow,yourmachinewillhaveasecondchoice(andathird) totry. InWindows2000,yougettothisdialogviaStart Settings NetworkandDial upconnections Properties TCP/IP component Properties,asshowninFigure1.

6 DNSExplained Page6 Figure1.TheWindows2000dialogforenteringDNSnameservers. InFedoraCore6,yougettothedialogviaF Administration Network NetworkConfigurationdialog DNStab,as showninfigure.2. Figure2.TheFedoraCore6dialogforenteringDNSnameservers.

7 DNSExplained Page7 WhenyouenteraURLinyourWebbrowser,orconnecttoyourmailserverviayour client,orwhenyourIM programtriestoconnecttoanotherserver,yourcomputerwillsendaquerytothednsserversinyourdnssettingstolook upthedomainname.abunchofstuffhappens,andeventuallyaresponsewillcomebackwiththeipaddressofthe machineyou'retryingtoreach,andyourcomputerconnectstothatmachine.there'sobviouslyalotmoregoingonunder thehood,butforourpurposes,thisiscloseenough. SomenetworkcardconfigurationprogramscalltheDNSservera'nameserver'(typically,Linuxdistrosdo.) That'sallanend userreallyneedstoknow.let'stakealookatwhatanadministratorneedstoknow,behindthescenes. 4.SettingupaWebserver/Website SettingupaWebserverisasinvolvedasbeingacasualInternetuseriseasy.We'llstartbyassumingyoudon'tevenhavea domainnameyet. 4.1Domainname You'llneedadomainname,suchasexample.com.Youmaybeusedtothinkingofdomainnamesas' butinactuality,the'www'isanadd onthatwe'lldealwithlater.whenyougetadomainname,you'lljustbegettingthe 'example.com'part.(onceyouhavethe'example.com'part,youcansetupmultiplesites,calledsubdomains,withnames like' You'llgetadomainnamefromaregistrar.Therearemany,manyregistrarsoutthere,butmostofthemaresimply resellersfortheprimarydomainnameregistrars.primaryregistrarsincludenetworksolutions.com,register.com, godaddy.com,andsoon.forpurposesofthisarticle,i'llusegodaddy.comasthesampleregistrar,bothbecausethey'rethe oneiuse(but,no,idon'tgetacommissionforreferringthem)andbecausei'veusednetworksolutions.comand register.com,andfindthemlackinginmanysignificantareas.they'vebothbeenaroundforalongtime,butiwouldn'tever usethemagain.youmaychoosedifferently,butcaveatemptor. (Theonebigproblemwithgodaddy.comisthattheyarevery,verypushyabouttryingtosellyouextrastuffthatyou reallydon'tneed.ignoreitallforthetimebeing;youcanalwaysaddittoyoursitelaterifyouwant,andthey'reconstantly runningspecialstogiveyoudealsondoingso.) 4.2Navigatingtoabrandnewdomain OK,sonowyou'veplunkeddownyour$8.95atgodaddyandnowhaveyourveryowndomainname,say,'example.com'. Whathappenswhenyourmom,allproudthatherson/daughterhastheirveryownwebsite,typesin' intoherbrowser?absolutelynothing.that'sbecausethereisnowebsiteattachedtothatdomainnameyet,andsoyour mom'sbrowserendsupin'404 pagenotfound'land.soyouneedtodofourmoresteps.i'lldescribeingeneraltermswhat thosefourthingsare,andtheni'llwalkthroughaspecificexample. First,createawebsiteandputitonaWebserversomewhere.Second,findaDNSserver(oneofthoseauthoritative DNSserversImentionedearlier)thatyoucanuse.Third,createaDNSrecord(inyour'zonefile')thatmaps ' foundinstep2.andfourth,tellyourregistrar,godaddy.com,thatthednsserverthatcontainsyourzonefilefor Ifyouusedgodaddy.com(ormostanyotherpopularregistrar),you'llfindthattheprecedingdescriptionisn't completelyaccurate whenyourmomtyped' page.instead,shewasdirectedtoa"thissitehasrecentlybeenregistredwithgodaddy.com"page.whenyouregisteredthe domainnamewithgodaddy,theydidn'tjustletitsitoffthereintheether.theycreateadummywebpageforyourdomain ononeoftheirservers,andthentheycreateazonefilewithrecordsinitthatpointthedomaintothattemporarypage.this isbothtoinformnewvisitorsthatthesiteis,indeed,ok(elseavisitormightthinktheyjusttypedthedomainnamewrong), and,natch,toadvertisethemselvesatthesametime.inotherwords,theyprovideddefaultvaluesforsteps2,3,and4for you,andthey'llstaythatwayuntilyouchoosetochangethem.

8 DNSExplained Page8 OK,nowlets'dothissamething,butwith'realdata'. 4.3Liveexample Supposeyou'veregistered'example.com'withgodaddy.(GodaddyhasaWebserverandanauthoritativeDNSserverthat theyusefornewlyregistereddomainslikeyours.)azonefilewascreated,andthey'veputthatzonefileinapairoftheir DNSservers.They'vealsocreatedadummyWebpagefor' serversaswell.sothen,whenyou(oryourmom)navigatetowww.example.com,youarriveatthe'temporarilyparked here...'page.youcanlogintoyourgodaddyaccountandnavigatetothe'managedomains'link;doingsowilldisplaya pagethatlistsyournameservers,likeso: NameServers:(Lastupdate1/1/1980) PARK21.SECURESERVER.NET PARK22.SECURESERVER.NET ThesearethenamesforacoupleofDNSserversthatgodaddyruns.TheDNSrecordsinyourzonefileonthempoint togodaddy'swebserver.theactualwebpageforadministeringthemlookslikefigure3.youcanseethenameservers displayedintheverymiddleofthepage,slightlyunderandtheleftofthered"cancel"button. Figure3.TheGoDaddyWebpageformanagingdomainDNSinformation.

9 DNSExplained Page9 4.4Hostingyoursiteatathirdpartysite Nowwhat?First,youCANcontinuetohostyourDNSzonefileandyourWebsiteatgodaddy.UseofthegodaddyDNS servertostoreyourdnsrecordscomeswithyourregistrationfee(otherregistrarsmayormaynotincludednswiththe registration).notethattypicallyhostingyourwebsitewillcostyouacoupleofbucksextra. Ifthat'sthecase,yourjobisnearlydone.AfterpurchasingtheWebsiteoption,they'llgiveyousomespaceonaserver oftheirs.(theyhaveacresandacresofservers.)they'llalsogiveyoutheipaddressforyourspaceonthatserver.you'll createyourwebpagesandthenftpthosepagesuptotheirserver.they'llalsochangeyourzonefilesothatitpointstothe rootdirectoryofyourspaceontheserver,andyou'redone. 4.5Hostingyoursiteyourself SupposeyouwanttohostyourownWebserver.Therecanbeseveralreasonsforthis,suchastheneedtorunsoftwarethat isn'tsupportedongodaddy'sservers.inthiscase,you'dcreateyourownwebserver,installinglinuxandapache,say,onit, andthenmoveyourwebpagestothatmachine.butatthispoint,thiswebservermachineisanislandwithoutabridge connectingittotherestoftheinternet.timetogetconnected. You'llneedaconnectiontotheInternet,similartotheoneyoualreadyuse maybeeventhesameone.yourispwill giveyouapublicipaddressthatbecomesthegatewayforyourserver.(i'mtakingcomplicationslikeroutersandfirewalls outoftheequationrightforthetimebeing.)whenyourispbecameanisp(fromitshumblebeginningsasabaitandtackle shoporatelephonecompany),theyreceivedablockofipaddresses(their'netblock')thattheyinturndishouttotheir customers.theipaddressthattheygiveyouisoneoftheaddressesintheirnetblock.whileit's'your'ipaddress,they're actuallyjustlendingittoyouforaslongasyou'retheircustomer;ifyouchangeisps,you'lllosethatipaddressandneedto getonefromyournewisp.imentionthisbecausetheconceptthattheipaddressisundertheisp'scontrolwillbe importantlateron. BacktoyournewpublicIPaddressandyourWebserver.YouwouldneedtochangeyourDNSrecordsongodaddy's DNSserverstopoint' minutestothebetterpartofadayforthechangestoyourzonefiletofilterthroughoutallofthednsserversontheweb (thisiscalled'propagation'),butsoonenough,peoplesurfingto' Atthispoint,yourjobisdone.Well,exceptforthetrivialmatterofbuildingyourWebsite,garneringtraffic,thatsort ofthing.yourzonefilestillresidesongodaddy'sdnsservers,butthewebserverrecordinitpointstotheipaddressofthe Webserversittinginyourbasementorintheserverroomofyourcompany. Supposeyouhadaseparate server,runningonaboxsittingrightnexttotheWebserver?Youwouldchangeyour zonefiletopointyourmxrecordstotheipaddressforthatmachine.whatifyoudidn'thostyourown server, though?instead,youusedtheserverofan serviceprovider,suchasgodaddyoryourisp.inthosecases,themx recordinyourzonefilewouldpointtothat server'sipaddressinstead. 4.6TurningoveryourDNStoathirdparty Let'stakethingsastepfurther.Supposeyoudon'twanttokeepyourDNSzonefileongodaddy'sDNSservers?Justlikeyou aren'trequiredtohostyourwebsiteor ongodaddy'sservers,you'renotrequiredtohostyourdnsontheirservers. First,you'llneedanewDNSserver.ThiscanbeaboxofyoursrunningtheDNSserversoftware,justlikeyou'vegotabox runningwebserversoftware.oryoucouldoutsourceittoanyoneofanumberofcompaniesthatprovidednsservices, justliketherearecompaniesthatprovidewebsitehostingand services.youcanmoveyourzonefiletooneofthose companies.supposeyoudecidedtousezoneedit.comtohostyourzonefile.whenyousetupanaccountwiththem,they'll giveyouthenamesofthednsservers(muchlikegodaddy'swere"park21.secureserver.net"and "PARK22.SECURESERVER.NET"). Youjustneedtotellyourregistrar,godaddyinthiscase,thatyourdomain'snameserverisnowzoneedit.com,and changeyournameserversfrom"park21.secureserver.net"and"park22.secureserver.net"tothedns serversthatzoneedit'sgaveyou.

10 DNSExplained Page10 4.7"It'salotworsethanthat" There'smoretoDNSthanthis.TheDNSdatabaseisdistributedacrossmanyserversthroughouttheworld,andthere'sa complexandsophisticatedmechanismtokeepthemallinsync.forallpracticalpurposes,youdon'tneedtoknowanyof this.youjustneedtokeepthezonefileonyourowndnsserversetup,andyourmachinesconfiguredtouseyourdns servers,andyou'llbeok. 4.8Summaryofauthoritativeandcachingserverroles Insummary,whenyoucreateadomainname,youtellyourregistrarwheretheauthoritativeDNSserversforyourdomain are.yourzonefilesitsontheseauthoritativeservers.thiszonefileiscopied(or'propagated')tocachingserversalloverthe Internet.Thetimingvaluesinthezonefiletellsthecachingservershowoftentheyneedtorefreshtheirdata.Usermachines allovertheinternetpointtocachingservers.whenausermachinerequestsarecord,it'lllookatitscachingservers.ifthe dataisnotfound,there'saclearlydefinedpathforittolookat;thedetailsofwhicharen'timportanttous. Supposeoneofyourusermachine'scachingservershadjuststartedup,andhadn'tgoneouttopopulateitsdatabaseyet. It'llonlyknowabouttherootservers.Sointhiscase,thecachingserverwouldaskarootserverfortheinformationabout befoundattheserversforthatdomain.thecachingserverasksoneofthe.comserversfortheinformation.the.com serverrespondssayingthatitonlyknowswheretofindinformationforexample.com.iftheurlwaslongerandhadmore levels,thecachingservercontinuesonlikethatuntilitfinallygetsthealloftheinfoorendsupwithapermanenterror. Finally,thecachingserverreturnstheinfototheclientthatrequestedit. Thatsaid,it'snowtimetolookatthosezonefilesinmoredetail. 5.Zonefiles Zonefilescontroltwobasicthings themappingsofvarioustypesofservers,suchaswebservers,mailservers,ftpservers, sinceitmightnotbe onthesamemachine orinthesamecountry! thatservesupwebpagesforwww.example.com. ThesecondthingthatazonefilecontrolsishowoftenchangestothezonefilearepropagatedthroughouttheInternet. Unlessyouhavespecialneeds,thedefaultsettingsthatcamewithyourzonefilewhenitwassetupareprobablygood enough.mostpeople(particularlythefolksreadingthis)aretypicallygoingtosetuptheirzonefile,pointingtotheirweb site,mailserver,andsoon,andthenleaveitalone.ifyouwereinthebusinessofrunningmultiplewebsitesformany peopleororganizations,you'dprobablybedoingmoretweaking. Fortunately,thearcanesyntaxusedinazonefileisusuallyhiddenawayfromyou.MostDNSserverprovidersprovide aneditingfacilitythatallowsyoutomakechangesusingasimpleinterfaceasshowninfigure4.

11 Page11 DNSExplained Figure4.GoDaddy'sWebinterfaceforchangingDNSrecords. Whatyoudoneedtoknowistheconceptsbehindthechangesyou'remaking.Let'slookatourdummyzonefileagain. $TTL SOAns1.example.com ;serial 3H;refresh 15;retry 1w;expire 3h;minimum ) NSns1.example.com. NSns2.example.com. MX10mail.example.com. MX20mail.another.com. A wwwina bobina INCNAMEwww.example.com. hostmaster.example.com.(

12 DNSExplained Page12 SOAisanacronymfor"StartofAuthority".TheDNSdatabaseconsistsofzillionsofzonefiles,eachofwhichisthe responsibilityofsomeone.everythinginthatzonefileisthatperson'sresponsibility.whenyouthinkofthednsdatabase asapyramid,yourzonefilemakesuponeverysmallbrickinthatconstruction.thesoaindicateswhereinthatstackof bricksyourresponsibilitystarts.therestofthednsdatabase therootservers,tldservers,andworkerbeeserverscan onlypointtoyourzonefile.withinyourzonefile,youarethemaster.thesoarecordpointstothe'start'ofyourzonefile. thecurrentzone sortoflikeyou'repointingtoyourself.thenextimportantpieceis'ns1.example.com' it'stheprimary nameserverforyourdomain.thisentrymustbefollowedbyaperiod.andthelastpartofthelineisthe addressof period. Thesecondlineistheserialnumberofthezonefile thedatethatthezonefilewaslastupdated,followedbya sequencenumbersothatifthezonefileisupdatedmorethanonceaday,it'scleartootherserversthatgetupdatedwiththis zonefile'sinformationwhetherornottheyhavethemostrecentupdate.inotherwords,supposeyouupdateyourzonefile inthemorning.theserialnumberbecomes' '.laterthatday,thechangesyou'vemadearepropagated throughouttheinternet andnowotherdnsservershavethemostrecentdate,includingthe' 'serialnumber.if youthenupdateyourzonefileagainthatday(somepeoplecannevermakeuptheirminds...),theserialnumberbecomes ' '.Whenanotherserverchecksinonyourzonefile,itwillseethatitsserialnumberendsin'01'whileyours endsin'02'andthusknowstograbafreshcopyofyourzonefile. Thenextfourlinesinvolvetimespans.Thevaluescanbedescribedinseconds,inwhichcasenounitisneededtobe displayed,orinothertimeunits,inwhichcasetimeunits 'H'=hours,'w'=weeks,'m'=minutes arerequired.86,400= secondsinoneday,28800=8hours,604,800=1week,7200=twohours. Thethirdline,refresh,tellsanotherDNSserverhowoftenitshouldcheckyourzonefileforupdates.Thefourthline, retry,tellstheotherserverhowoftenitshouldtrytoconnecttoyourserverintheeventofaconnectionfailure.thefifth line,expiry,isthetotalamountoftimethattheotherservershouldtrycheckingbeforeitgivesup.ifitgivesup,itwillflag yourzonefileonitsdatabaseasexpiredandthenbegintoredirectrequestsforyourdnsinformationtotherootservers. Finally,thesixthline,TTL(timetolive)representstheamountoftimethatanotherserverwillcacheanswersfromyour server.asisaid,forthemostpart,you'llnotwanttomesswiththesevalues. Afterthetimespanvalues,thenextrecordsspecifythenameserversforthedomain therecordstotherightofthe'ns' recordtype.afterthatcomesan'mx'record whichstandsfor'mailexchanger'.youcanhavemorethanonemxrecord, eachofwhichpointstoadifferentmailserver.theorderinwhichmailisdirectedtoaserveriscontrolledbythetwodigit numberbetweenthe'mx'recordtypeandtheurlofth serveritself,whichthelowernumberbeingahigherpriority. TheArecordsmaphostnamestoIPaddresses.You'llusuallyhaveone'A'recordthatismappedtoa'catch all'ip address,andthen,possibly,subdomainsmappedtootheripaddresses.forexample,' ' 'while'bob.example.com'ismappedto' '.Ifyourmomtyped' browser,however,shewouldbedirectedtothe'catch all'' 'address. TheCNAMErecord(CNAMEisshortfor"canonicalname")isanaliasforanArecord. Finally,TXTrecords(notshownhere)areusedforSPF(SenderPolicyFramework)records.Thesearerecordsthat specifywhichmachinesareallowedtosendmailwiththesendersettoyourdomain.ifthesenderdomaindoesnothavean SPFrecord,orifthesenderdomainissendingfromamachinethatisnotlistedintheSPFrecord,thenth isclassified asspam.(moreinfoonspfcanbefoundatopenspf.org.) 6.ReverseDNS TheDNSrecordsallowprogramstolookuptheIPaddressfor'example.com'inallitsglory(aswellasanythingelse related,suchasftpormailservers).youmaybewonderingaboutthereverse ifyouhadanipaddress,couldyoulookup thedomainname?yes,youcould,andthisiscalled'reversedns'.thisisactuallyimportantbecausesomeprograms

13 DNSExplained Page13 (particularlymailservers)willrefuse fromdomainsifthereversednsresultsdonotmatchtheregular(alsocalled 'forward')dns. AreverseDNSrecordlookslikethis: zone" in addr.arpa"{ typemaster; file"pri in addr.arpa"; }; You'llseethatthefirstpartoftheaddress,' in addr.arpa'beginswiththereverseofthefirstthreepartsofthe example.comipaddress.thethirdlinecontainsthenameofthereversezonefile, in addr.arpa.thereversezone fileitselfcontains,insteadofaormxrecords,ptrrecords(ptrstandsfor'pointer'.) AreversezonefilewouldconsistofindividualrecordsforeachIPaddressassociatedwiththedomain.Followingour example,ourreversezonefilemightincludeptrrecordslikethis: 166PTRexample.com 167PTRns1.example.com 168PTRmail.example.com ReverseDNSissomethingthatmanyISPsdon'thaveaclearhandleon,orthattheydon'tbothertodountilyounag themto.youcantellifyourreversednsissetupthroughthelinuxcommandlinetool,'dig'.first,let'slookatadomain wherethereversednsisnotsetupproperly.findtheipaddressforanexampledomain: >digbozo_dns.com <somestuff> QUESTIONSECTION: bozo_dns.comina ANSWERSECTION: bozo_dns.com12837ina Andthen,withthe" x"switchontheipaddress,youcanseethatthereversednsisnotsetupproperly. >dig x <somestuff> QUESTIONSECTION: in addr.arpa.inptr ANSWERSECTION: in addr.arpa.inptr ded.pacbell.net. Asyoucanseefromthelastline,theIPaddressdoesnotresolvebacktothedomainname;instead,itresolvestothe ISPwhoownsthenetblock. ThisexampleshowsDNSsetupproperly: >digexample.com <somestuff> QUESTIONSECTION: example.comina ANSWERSECTION: example.com8702ina Andthen,withthe" x"switchontheipaddress,youcanseethatthereversednsissetupproperlyaswell. >dig x <somestuff>

14 Page14 DNSExplained QUESTIONSECTION: in addr.arpa.inptr ANSWERSECTION: in addr.arpa.inptrwww.example.com. ReverseDNSrecordsarestoredbyyourISPonserverssimilartotheauthoritativeDNSserverswe'vealreadylooked at,becausetheispcontrolsthenetblockofipaddresses.inordertogetreversednssetup,youhavetorequestyourispto doit,sincetheycontroltherecords.whileintheoryyoucouldhaveyourispdelegateauthorityforyourreversednsto anotherservice,mostispswon'tasamatterofconvenienceandconsistency. 7.Wheretogoformoreinformation ThisfreewhitepaperispublishedanddistributedbyHentzenwerkePublishing,Inc.Wehavethelargestlistsof Movingto Linux,OpenOffice.org,andVisualFoxProbooksontheplanet. Wealsohaveoodlesoffreewhitepapersonourwebsiteandmorearebeingaddedregularly.OurPreferredCustomer mailinglistgetsbi monthlyannouncementsofnewwhitepapers(andgetsdiscountsonourbooks,firstcrackatspecial deals,andotherstuffaswethinkofit.) Clickon YourAccount atwww.hentzenwerke.comtogetonourpreferredcustomerlist. Ifyoufoundthiswhitepaperhelpful,checkouttheseHentzenwerkePublishingbooksaswell: LinuxTransferforWindows NetworkAdmins: AroadmapforbuildingaLinuxfileandprintserver MichaelJang LinuxTransferforWindows PowerUsers: GettingstartedwithLinuxforthedesktop WhilHentzen

- Domain Name System -

- Domain Name System - 1 Name Resolution - Domain Name System - Name resolution systems provide the translation between alphanumeric names and numerical addresses, alleviating the need for users and administrators to memorize

More information

DNS based Load Balancing with Fault Tolerance

DNS based Load Balancing with Fault Tolerance DNS based Load Balancing with Fault Tolerance by Kåre Presttun, Oslo, Norway [email protected] Introduction There are several load-balancing systems on the market. They range from local switch based load

More information

DNS Session 4: Delegation and reverse DNS. Joe Abley AfNOG 2006 workshop

DNS Session 4: Delegation and reverse DNS. Joe Abley AfNOG 2006 workshop DNS Session 4: Delegation and reverse DNS Joe Abley AfNOG 2006 workshop How do you delegate a subdomain? In principle straightforward: just insert NS records for the subdomain, pointing at someone else's

More information

Creating a master/slave DNS server combination for your Grid Infrastructure

Creating a master/slave DNS server combination for your Grid Infrastructure Creating a master/slave DNS server combination for your Grid Infrastructure When doing a Grid Infrastructure installation, a DNS server is needed to resolve addresses for the cluster- scan addresses. In

More information

Advanced DNS Course. Module 4. DNS Load Balancing

Advanced DNS Course. Module 4. DNS Load Balancing Advanced DNS Course Module 4 DNS Load Balancing Services (SRV) Record The Services RR allows a service to be associated with a host name. A user or application that wishes to discover where a service

More information

How To Manage Dns On An Elfiq Link Load Balancer (Link Balancer) On A Pcode (Networking) On Ipad Or Ipad (Netware) On Your Ipad On A Ipad At A Pc Or Ipa

How To Manage Dns On An Elfiq Link Load Balancer (Link Balancer) On A Pcode (Networking) On Ipad Or Ipad (Netware) On Your Ipad On A Ipad At A Pc Or Ipa White paper The IDNS module for incoming load balancing For Elfiq Operating System (EOS) version 3.x Document Revision 1.5 October 2007 Elfiq Solutions www.elfiq.com COPYRIGHT The content of this document

More information

HTG XROADS NETWORKS. Network Appliance How To Guide: DNS Delegation. How To Guide

HTG XROADS NETWORKS. Network Appliance How To Guide: DNS Delegation. How To Guide HTG X XROADS NETWORKS Network Appliance How To Guide: DNS Delegation How To Guide DNS Delegation (The Simple Redundancy Solution) The key requirement when performing DNS based network redundancy and load

More information

DNS zone transfers from FreeIPA to non-freeipa slave servers

DNS zone transfers from FreeIPA to non-freeipa slave servers FreeIPA Training Series DNS zone transfers from FreeIPA to non-freeipa slave servers FreeIPA 3.0 and bind-dyndb-ldap 2.3 Petr Špaček 01-03-2013 Text file based

More information

Application and service delivery with the Elfiq idns module

Application and service delivery with the Elfiq idns module Technical White Paper Application and service delivery with the Elfiq idns module For Elfiq Operating System (EOS) version 3.x Document Revision 1.63 June 2012 Table of Contents 1. The IDNS module... 3

More information

DNS and BIND Primer. Pete Nesbitt pete @ linux1.ca. April 2012

DNS and BIND Primer. Pete Nesbitt pete @ linux1.ca. April 2012 DNS and BIND Primer Pete Nesbitt pete @ linux1.ca April 2012 1 When we access the Internet we typically do so by accessing systems using a somewhat meaningful hostname often in the form of a web based

More information

ECE 4321 Computer Networks. Network Programming

ECE 4321 Computer Networks. Network Programming ECE 4321 Computer Networks Network Programming Name Space System.Net Domain Name System (DNS) To resolve computer naming Host database is split up and distributed among multiple systems on the Internet

More information

Wireshark DNS. Introduction. nslookup

Wireshark DNS. Introduction. nslookup Wireshark DNS Introduction The Domain Name System (DNS) translates hostnames to IP addresses, fulfilling a critical role in the Internet infrastructure. In this lab, we ll take a closer look at the client

More information

Local DNS Attack Lab. 1 Lab Overview. 2 Lab Environment. SEED Labs Local DNS Attack Lab 1

Local DNS Attack Lab. 1 Lab Overview. 2 Lab Environment. SEED Labs Local DNS Attack Lab 1 SEED Labs Local DNS Attack Lab 1 Local DNS Attack Lab Copyright c 2006 Wenliang Du, Syracuse University. The development of this document was partially funded by the National Science Foundation s Course,

More information

DNS. Computer Networks. Seminar 12

DNS. Computer Networks. Seminar 12 DNS Computer Networks Seminar 12 DNS Introduction (Domain Name System) Naming system used in Internet Translate domain names to IP addresses and back Communication works on UDP (port 53), large requests/responses

More information

DNS/DHCP Administration Guide for Linux

DNS/DHCP Administration Guide for Linux www.novell.com/documentation DNS/DHCP Administration Guide for Linux Open Enterprise Server 2 SP3 July 31, 2013 Legal Notices Novell, Inc., makes no representations or warranties with respect to the contents

More information

DNS and BIND. David White

DNS and BIND. David White DNS and BIND David White DNS: Backbone of the Internet Translates Domains into unique IP Addresses i.e. developcents.com = 66.228.59.103 Distributed Database of Host Information Works seamlessly behind

More information

Domain Name System (DNS) Services

Domain Name System (DNS) Services 12 Domain Name System (DNS) Services Contents Overview..................................................... 12-3 Host and Domain Names.................................... 12-3 Host Tables...............................................

More information

Wireshark Lab: DNS v6.01

Wireshark Lab: DNS v6.01 Wireshark Lab: DNS v6.01 Supplement to Computer Networking: A Top-Down Approach, 6 th ed., J.F. Kurose and K.W. Ross Tell me and I forget. Show me and I remember. Involve me and I understand. Chinese proverb

More information

Wireshark Lab: DNS. 1. nslookup

Wireshark Lab: DNS. 1. nslookup Wireshark Lab: DNS Version: 2.0 2007 J.F. Kurose, K.W. Ross. All Rights Reserved Computer Networking: A Topdown Approach, 4 th edition. As described in Section 2.5 of the textbook, the Domain Name System

More information

Names vs. Addresses. Flat vs. Hierarchical Space. Domain Name System (DNS) Computer Networks. Lecture 5: Domain Name System

Names vs. Addresses. Flat vs. Hierarchical Space. Domain Name System (DNS) Computer Networks. Lecture 5: Domain Name System Names vs. Addresses Computer Networks Lecture 5: Domain Name System Names are easier for human to remember www.umich.edu vs. 141.213.4.4 Addresses can be changed without changing names move www.umich.edu

More information

Domain Name Servers. Domain Types WWW host names. Internet Names. COMP476 Networked Computer Systems. Domain Name Servers

Domain Name Servers. Domain Types WWW host names. Internet Names. COMP476 Networked Computer Systems. Domain Name Servers Domain Name Servers COMP76 Networked Computer Systems Internet Names Hierarchical starting from the right host.subnet.organization.type Names are case insensitive and can be in either upper or lower case.

More information

How to set up the Integrated DNS Server for Inbound Load Balancing

How to set up the Integrated DNS Server for Inbound Load Balancing How to set up the Integrated DNS Server for Introduction Getting Started Peplink Balance has a built-in DNS server for inbound link load balancing. You can delegate a domain s NS/SOA records, e.g. www.mycompany.com,

More information

Copyright 2013 wolfssl Inc. All rights reserved. 2

Copyright 2013 wolfssl Inc. All rights reserved. 2 - - Copyright 2013 wolfssl Inc. All rights reserved. 2 Copyright 2013 wolfssl Inc. All rights reserved. 2 Copyright 2013 wolfssl Inc. All rights reserved. 3 Copyright 2013 wolfssl Inc. All rights reserved.

More information

Configuring DNS. Finding Feature Information

Configuring DNS. Finding Feature Information The Domain Name System (DNS) is a distributed database in which you can map hostnames to IP addresses through the DNS protocol from a DNS server. Each unique IP address can have an associated hostname.

More information

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, 2011. Sample not collected

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, 2011. Sample not collected At 14:05 April 16, 2011 At 13:55 April 16, 2011 At 14:20 April 16, 2011 ND ND 3.6E-01 ND ND 3.6E-01 1.3E-01 9.1E-02 5.0E-01 ND 3.7E-02 4.5E-01 ND ND 2.2E-02 ND 3.3E-02 4.5E-01 At 11:37 April 17, 2011 At

More information

DNS/DHCP Services Administration Guide for Linux

DNS/DHCP Services Administration Guide for Linux www.novell.com/documentation DNS/DHCP Services Administration Guide for Linux Open Enterprise Server 11 SP2 January 2014 Legal Notices Novell, Inc., makes no representations or warranties with respect

More information

Domain Name Server. Training Division National Informatics Centre New Delhi

Domain Name Server. Training Division National Informatics Centre New Delhi Domain Name Server Training Division National Informatics Centre New Delhi Domain Name Service (DNS) I. History of DNS II. DNS structure and its components III. Functioning of DNS IV. Possible Configurations

More information

DNS ROUND ROBIN HIGH-AVAILABILITY LOAD SHARING

DNS ROUND ROBIN HIGH-AVAILABILITY LOAD SHARING PolyServe High-Availability Server Clustering for E-Business 918 Parker Street Berkeley, California 94710 (510) 665-2929 wwwpolyservecom Number 990903 WHITE PAPER DNS ROUND ROBIN HIGH-AVAILABILITY LOAD

More information

Domain Name System 2015-04-28 17:49:44 UTC. 2015 Citrix Systems, Inc. All rights reserved. Terms of Use Trademarks Privacy Statement

Domain Name System 2015-04-28 17:49:44 UTC. 2015 Citrix Systems, Inc. All rights reserved. Terms of Use Trademarks Privacy Statement Domain Name System 2015-04-28 17:49:44 UTC 2015 Citrix Systems, Inc. All rights reserved. Terms of Use Trademarks Privacy Statement Contents Domain Name System... 4 Domain Name System... 5 How DNS Works

More information

Reduce your downtime to the minimum with a multi-data centre concept

Reduce your downtime to the minimum with a multi-data centre concept Put your business-critical activities in good hands If your income depends on the continuous availability of your servers, you should ask your hosting provider for a high availability solution. You may

More information

H3C Firewall and UTM Devices DNS and NAT Configuration Examples (Comware V5)

H3C Firewall and UTM Devices DNS and NAT Configuration Examples (Comware V5) H3C Firewall and UTM Devices DNS and NAT Configuration Examples (Comware V5) Copyright 2015 Hangzhou H3C Technologies Co., Ltd. All rights reserved. No part of this manual may be reproduced or transmitted

More information

Understanding DNS (the Domain Name System)

Understanding DNS (the Domain Name System) Understanding DNS (the Domain Name System) A white paper by Incognito Software January, 2007 2007 Incognito Software Inc. All rights reserved. Understanding DNS (the Domain Name System) Introduction...2

More information

netkit lab Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1.

netkit lab Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1. Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group netkit lab walkthrough Version 1.3 Author(s) Massimo Rimondini E-mail Web Description [email protected]

More information

The Domain Name System

The Domain Name System The Domain Name System Antonio Carzaniga Faculty of Informatics University of Lugano October 9, 2012 2005 2007 Antonio Carzaniga 1 IP addresses and host names Outline DNS architecture DNS process DNS requests/replies

More information

How-to: DNS Enumeration

How-to: DNS Enumeration 25-04-2010 Author: Mohd Izhar Ali Email: [email protected] Website: http://johncrackernet.blogspot.com Table of Contents How-to: DNS Enumeration 1: Introduction... 3 2: DNS Enumeration... 4 3: How-to-DNS

More information

How To Create A Toecdn (Open Edge Content Delivery Network) From Scratch On A Microsoft Ipad Or Ipad (For Free) On A Pc Or Ipa (For A Free) With A Free Ipad) On An Ip

How To Create A Toecdn (Open Edge Content Delivery Network) From Scratch On A Microsoft Ipad Or Ipad (For Free) On A Pc Or Ipa (For A Free) With A Free Ipad) On An Ip The Open Edge Content Delivery Network LATEX 2ε layout from http://latextemplates.com Copyright c 2011-2013 Fredrik Danerklint bitcoin: 1toecdnToGp4QJCK5QBHiMBnLDqgufXVy The concept of The Open Edge Content

More information

Enterprise Architecture Office Resource Document Design Note - Domain Name System (DNS)

Enterprise Architecture Office Resource Document Design Note - Domain Name System (DNS) Date: 8/27/2012 Enterprise Architecture Office Resource Document Design Note - Domain Name System (DNS) Table of Contents 1 Overview...2 1.1 Other Resources...2 1.1.1 State of Minnesota Standards and Guidelines...2

More information

IPv6 support in the DNS

IPv6 support in the DNS IPv6 support in the DNS How important is the DNS? Getting the IP address of the remote endpoint is necessary for every communication between TCP/IP applications Humans are unable to memorize millions of

More information

DNS + DHCP. Michael Tsai 2015/04/27

DNS + DHCP. Michael Tsai 2015/04/27 DNS + DHCP Michael Tsai 2015/04/27 lubuntu.ova http://goo.gl/bax8b8 DNS + DHCP DNS: domain name < > IP address DHCP: gives you a IP + configuration when you joins a new network DHCP = Dynamic Host Configuration

More information

Dual DHCP/DNS Server

Dual DHCP/DNS Server Dual DHCP/DNS Server Installation and Configuration Edison 2 1 Contents 1 Contents... 2 2 Preface... 5 3 Installation... 6 3.1 Windows Installation... 6 3.2 Windows Compiling... 7 3.3 Linux Installation...

More information

The secret life of a DNS query. Igor Sviridov <[email protected]> 20120522

The secret life of a DNS query. Igor Sviridov <sia@nest.org> 20120522 The secret life of a DNS query Igor Sviridov 20120522 Preface Nowadays, when we type URL (or is it a search string? ;-) into a browser (or mobile device) many things happen. While most of

More information

Domain Name System. Heng Sovannarith [email protected]

Domain Name System. Heng Sovannarith heng_sovannarith@yahoo.com Domain Name System Heng Sovannarith [email protected] Introduc:on to DNS Domain Name System is a distributed database system that can be serve as the founda:on for name resolu:on in a TCP/IP Network.

More information

Work No. 1 Samba. What is Samba?

Work No. 1 Samba. What is Samba? Work No. 1 Samba What is Samba? Samba is an implementation of a Server Message Block (SMB) protocol server that can be run on almost every variant of UNIX in existence. Samba is an open source project,

More information

Agenda. Network Services. Domain Names. Domain Name. Domain Names Domain Name System Internationalized Domain Names. Domain Names & DNS

Agenda. Network Services. Domain Names. Domain Name. Domain Names Domain Name System Internationalized Domain Names. Domain Names & DNS Agenda Network Services Domain Names & DNS Domain Names Domain Name System Internationalized Domain Names Johann Oberleitner SS 2006 Domain Names Naming of Resources Problems of Internet's IP focus IP

More information

Remote DNS Cache Poisoning Attack Lab

Remote DNS Cache Poisoning Attack Lab SEED Labs Remote DNS Cache Poisoning Attack Lab 1 Remote DNS Cache Poisoning Attack Lab Copyright c 2014 Wenliang Du, Syracuse University. The development of this document is/was funded by the following

More information

Application Protocols in the TCP/IP Reference Model. Application Protocols in the TCP/IP Reference Model. DNS - Concept. DNS - Domain Name System

Application Protocols in the TCP/IP Reference Model. Application Protocols in the TCP/IP Reference Model. DNS - Concept. DNS - Domain Name System Application Protocols in the TCP/IP Reference Model Application Protocols in the TCP/IP Reference Model File Transfer E-Mail Network Management Protocols of the application layer are common communication

More information

CSIS 3230 Computer Networking Principles, Spring 2012 Lab 7 Domain Name System (DNS)

CSIS 3230 Computer Networking Principles, Spring 2012 Lab 7 Domain Name System (DNS) CSIS 3230 Computer Networking Principles, Spring 2012 Lab 7 Domain Name System (DNS) By Michael Olan, Richard Stockton College (last update: March 2012) Purpose At this point, all hosts should be communicating

More information

Sample Configuration Using the ip nat outside source static

Sample Configuration Using the ip nat outside source static Sample Configuration Using the ip nat outside source static Table of Contents Sample Configuration Using the ip nat outside source static Command...1 Introduction...1 Before You Begin...1 Conventions...1

More information

Application Protocols in the TCP/IP Reference Model

Application Protocols in the TCP/IP Reference Model Application Protocols in the TCP/IP Reference Model File Transfer E-Mail Network Management WWW Virtual Terminal Name Service File Transfer HTTP FTP Telnet SMTP DNS SNMP TFTP Internet protocols TCP UDP

More information

CS3250 Distributed Systems

CS3250 Distributed Systems CS3250 Distributed Systems Lecture 4 More on Network Addresses Domain Name System DNS Human beings (apart from network administrators and hackers) rarely use IP addresses even in their human-readable dotted

More information

DNS ActiveX Control for Microsoft Windows. Copyright Magneto Software All rights reserved

DNS ActiveX Control for Microsoft Windows. Copyright Magneto Software All rights reserved DNS ActiveX Control for Microsoft Windows Copyright Magneto Software All rights reserved 1 DNS Overview... 3 1.1 Introduction... 3 1.2 Usage... 3 1.3 Property... 4 1.4 Event... 4 1.5 Method... 4 1.6 Error

More information

Ethereal Lab: DNS. 1. nslookup

Ethereal Lab: DNS. 1. nslookup Ethereal Lab: DNS Version: July 2005 2005 J.F. Kurose, K.W. Ross. All Rights Reserved Computer Networking: A Topdown Approach Featuring the Internet, 3 rd edition. As described in Section 2.5 of the textbook,

More information

EE 7376: Introduction to Computer Networks. Homework #3: Network Security, Email, Web, DNS, and Network Management. Maximum Points: 60

EE 7376: Introduction to Computer Networks. Homework #3: Network Security, Email, Web, DNS, and Network Management. Maximum Points: 60 EE 7376: Introduction to Computer Networks Homework #3: Network Security, Email, Web, DNS, and Network Management Maximum Points: 60 1. Network security attacks that have to do with eavesdropping on, or

More information

Send document comments to [email protected].

Send document comments to nexus7k-docfeedback@cisco.com. CHAPTER 4 This chapter describes how to configure the Domain Name Server (DNS) client. This chapter includes the following sections: Information About DNS Clients, page 4-1 Licensing Requirements for DNS

More information

The Survey Report on DNS Cache & Recursive Service in China Mainland

The Survey Report on DNS Cache & Recursive Service in China Mainland The Survey Report on DNS Cache & Recursive Service in China Mainland Wei WANG, Chinese Academy of Sciences Zhiwei YAN, China Internet Network Information Center Motivation Improve the traditional recursive

More information

walkthrough Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1.

walkthrough Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group Version 1. Università degli Studi Roma Tre Dipartimento di Informatica e Automazione Computer Networks Research Group netkit lab walkthrough Version 1.2 Author(s) Massimo Rimondini E-mail Web Description [email protected]

More information

Lecture 2 CS 3311. An example of a middleware service: DNS Domain Name System

Lecture 2 CS 3311. An example of a middleware service: DNS Domain Name System Lecture 2 CS 3311 An example of a middleware service: DNS Domain Name System The problem Networked computers have names and IP addresses. Applications use names; IP uses for routing purposes IP addresses.

More information

DNS. Computer networks - Administration 1DV202. fredag 30 mars 12

DNS. Computer networks - Administration 1DV202. fredag 30 mars 12 DNS Computer networks - Administration 1DV202 DNS History Who needs DNS? The DNS namespace How DNS works The DNS database The BIND software Server and client configuration The history of DNS RFC 882 and

More information

Application Protocols in the TCP/IP Reference Model. Application Protocols in the TCP/IP Reference Model. DNS - Domain Name System

Application Protocols in the TCP/IP Reference Model. Application Protocols in the TCP/IP Reference Model. DNS - Domain Name System Application Protocols in the TCP/IP Reference Model Application Protocols in the TCP/IP Reference Model File Transfer E-Mail Network Management Protocols of the application layer are common communication

More information

THE MASTER LIST OF DNS TERMINOLOGY. v 2.0

THE MASTER LIST OF DNS TERMINOLOGY. v 2.0 THE MASTER LIST OF DNS TERMINOLOGY v 2.0 DNS can be hard to understand and if you re unfamiliar with the terminology, learning more about DNS can seem as daunting as learning a new language. To help people

More information

Sample Configuration Using the ip nat outside source list C

Sample Configuration Using the ip nat outside source list C Sample Configuration Using the ip nat outside source list C Table of Contents Sample Configuration Using the ip nat outside source list Command...1 Introduction...1 Before You Begin...1 Conventions...1

More information

Introduction to the Domain Name System

Introduction to the Domain Name System CHAPTER 14 The Domain Name System (DNS) handles the growing number of Internet users. DNS translates names, such as www.cisco.com, into IP addresses, such as 192.168.40.0 (or the more extended IPv6 addresses),

More information

Services: DNS domain name system

Services: DNS domain name system Services: DNS domain name system David Morgan Buying numbers and names numbers are IP addresses you buy them from an ISP the ISP makes sure those addresses go to your place the names are domain names you

More information

DNS Pharming Attack Lab

DNS Pharming Attack Lab CNT 5410 - Fall 2014 1 DNS Pharming Attack Lab (This is a modified version of the exercise listed below. Modifications are to provide tighter configuration so as to minimize the risk of traffic leaving

More information

IPv6 Support in the DNS. Workshop Name Workshop Location, Date

IPv6 Support in the DNS. Workshop Name Workshop Location, Date IPv6 Support in the DNS Workshop Name Workshop Location, Date Agenda How important is the DNS? DNS Resource Lookup DNS Extensions for IPv6 Lookups in an IPv6-aware DNS Tree About Required IPv6 Glue in

More information

LAB: Concept of DNS. Completed by: Learning the basics of DNS. Lab preparation: Boot a Linux OS Document version: 20110317. Class: Name: Surname:

LAB: Concept of DNS. Completed by: Learning the basics of DNS. Lab preparation: Boot a Linux OS Document version: 20110317. Class: Name: Surname: LAB: Concept of DNS Target: Learning the basics of DNS Tools: dig Lab preparation: Boot a Linux OS Document version: 20110317 Completed by: Class: Name: Surname: Comments: Instructions: Who's responsible

More information

Configuring DHCP and DNS Services

Configuring DHCP and DNS Services 12 CHAPTER A DHCP server provides network configuration parameters, such as IP addresses, to DHCP clients. The FWSM can provide DHCP server or DHCP relay services to DHCP clients attached to FWSM interfaces.

More information

The Domain Name System

The Domain Name System Internet Engineering 241-461 Robert Elz [email protected] [email protected] http://fivedots.coe.psu.ac.th/~kre DNS The Domain Name System Kurose & Ross: Computer Networking Chapter 2 (2.5) James F. Kurose

More information

THE MASTER LIST OF DNS TERMINOLOGY. First Edition

THE MASTER LIST OF DNS TERMINOLOGY. First Edition THE MASTER LIST OF DNS TERMINOLOGY First Edition DNS can be hard to understand and if you re unfamiliar with the terminology, learning more about DNS can seem as daunting as learning a new language. To

More information

F5 and Infoblox DNS Integrated Architecture Offering a Complete Scalable, Secure DNS Solution

F5 and Infoblox DNS Integrated Architecture Offering a Complete Scalable, Secure DNS Solution F5 and Infoblox DNS Integrated Architecture Offering a Complete Scalable, Secure DNS Solution As market leaders in the application delivery market and DNS, DHCP, and IP Address Management (DDI) market

More information

Part 5 DNS Security. SAST01 An Introduction to Information Security 2015-09-21. Martin Hell Department of Electrical and Information Technology

Part 5 DNS Security. SAST01 An Introduction to Information Security 2015-09-21. Martin Hell Department of Electrical and Information Technology SAST01 An Introduction to Information Security Part 5 DNS Security Martin Hell Department of Electrical and Information Technology How DNS works Amplification attacks Cache poisoning attacks DNSSEC 1 2

More information

MS Skype for Business and Lync. Integration Guide

MS Skype for Business and Lync. Integration Guide MS Skype for Business and Lync Integration Guide June 03, 2016 Contents Introduction 4 How to use StarLeaf with Microsoft Skype for Business 2015 Server 5 Pre-requisites 5 Step One: Federate between the

More information

Lab 4.5.4 Diagramming External Traffic Flows

Lab 4.5.4 Diagramming External Traffic Flows Lab 4.5.4 Diagramming External Traffic Flows Device Designation Device Name Address Subnet Mask Discovery Server Business Services 172.17.1.1 255.255.0.0 R1 R2 R3 FC-CPE-1 FC-CPE-2 ISP Fa0/1 172.17.0.1

More information

PowerLink Bandwidth Aggregation Redundant WAN Link and VPN Fail-Over Solutions

PowerLink Bandwidth Aggregation Redundant WAN Link and VPN Fail-Over Solutions Bandwidth Aggregation Redundant WAN Link and VPN Fail-Over Solutions Find your network example: 1. Basic network with and 2 WAN lines - click here 2. Add a web server to the LAN - click here 3. Add a web,

More information

DNS Service on Linux. Supawit Wannapila CCNA, RHCE [email protected]

DNS Service on Linux. Supawit Wannapila CCNA, RHCE supawit.w@cmu.ac.th DNS Service on Linux Supawit Wannapila CCNA, RHCE [email protected] Host Name Resolution Common Host Name Service Files (/etc/hosts and /etc/networks) DNS (/etc/resolv.conf) Multiple client-side resolvers:

More information

Reverse Proxy Guide. Version 2.0 April 2016

Reverse Proxy Guide. Version 2.0 April 2016 Version 2.0 April 2016 Reverse Proxy Guide Copyright 2016 iwebgate. All Rights Reserved. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated

More information

Internet Security [1] VU 184.216. Engin Kirda [email protected]

Internet Security [1] VU 184.216. Engin Kirda engin@infosys.tuwien.ac.at Internet Security [1] VU 184.216 Engin Kirda [email protected] Christopher Kruegel [email protected] Administration Challenge 2 deadline is tomorrow 177 correct solutions Challenge 4 will

More information

Lab 8.5.3 Configuring the PIX Firewall as a DHCP Server

Lab 8.5.3 Configuring the PIX Firewall as a DHCP Server Lab 8.5.3 Configuring the PIX Firewall as a DHCP Server Objective Scenario Estimated Time: 15 minutes Number of Team Members: Two teams with four students per team. In this lab, students will learn the

More information

Module 11. Configuring Domain Name System. Contents: Lesson 1: Install and Configure DNS in an AD DS Domain 11-3. Lab A: Install the DNS Service 11-11

Module 11. Configuring Domain Name System. Contents: Lesson 1: Install and Configure DNS in an AD DS Domain 11-3. Lab A: Install the DNS Service 11-11 Configuring Domain Name System 11-1 Module 11 Configuring Domain Name System Contents: Lesson 1: Install and Configure DNS in an AD DS Domain 11-3 Lab A: Install the DNS Service 11-11 Lesson 2: Integration

More information

netkit lab load balancer dns 1.2 Massimo Rimondini Version Author(s)

netkit lab load balancer dns 1.2 Massimo Rimondini Version Author(s) netkit lab load balancer dns Version Author(s) 1.2 Massimo Rimondini E-mail Web Description [email protected] http://www.netkit.org/ A lab showing how to perform simple load balancing on a set of web

More information

Domain Name System (DNS) Fundamentals

Domain Name System (DNS) Fundamentals Domain Name System (DNS) Fundamentals Mike Jager Network Startup Resource Center [email protected] These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International

More information

Configuring Basic Settings

Configuring Basic Settings CHAPTER 9 This chapter describes how to configure basic settings on your ASASM that are typically required for a functioning configuration. This chapter includes the following sections: Configuring the

More information

Web Application Hosting Cloud Architecture

Web Application Hosting Cloud Architecture Web Application Hosting Cloud Architecture Executive Overview This paper describes vendor neutral best practices for hosting web applications using cloud computing. The architectural elements described

More information

z/os V1R11 Communications Server system management and monitoring

z/os V1R11 Communications Server system management and monitoring IBM Software Group Enterprise Networking Solutions z/os V1R11 Communications Server z/os V1R11 Communications Server system management and monitoring z/os Communications Server Development, Raleigh, North

More information

Designing and Implementing a Server Infrastructure

Designing and Implementing a Server Infrastructure Course 20413C: Designing and Implementing a Server Infrastructure Page 1 of 7 Designing and Implementing a Server Infrastructure Course 20413: 4 days; Instructor-Led Introduction This 4-day instructor-led

More information

Migration Technical Guide

Migration Technical Guide Documentation OneNet Hosted Exchange Page 1 of 21 Contents Introduction... 3 Target Audience... 3 Section Overview... 3 Migration Planning... 4 Pre-Migration Planning Form... 5 Client Site Preparation...

More information

Understanding DNS By Robert Sterler

Understanding DNS By Robert Sterler Understanding DNS By Robert Sterler DNS is a locator service and stands for Domain Naming System. DNS provides a mechanism for locating computers either by friendly name or IP address. DNS is an integral

More information

Computer Networks: Domain Name System

Computer Networks: Domain Name System Computer Networks: Domain Name System Domain Name System The domain name system (DNS) is an application-layer protocol for mapping domain names to IP addresses DNS www.example.com 208.77.188.166 http://www.example.com

More information

NET0183 Networks and Communications

NET0183 Networks and Communications NET0183 Networks and Communications Lecture 25 DNS Domain Name System 8/25/2009 1 NET0183 Networks and Communications by Dr Andy Brooks DNS is a distributed database implemented in a hierarchy of many

More information

The Posadis DNS server

The Posadis DNS server The Posadis DNS server user documentation for Posadis 0.60.5 Tutorial and reference manual for Posadis Updated for Posadis 0.60.5 Meilof Veeningen Table of Contents Table of Contents...2

More information

Simple DNS Plus. Version 4.00. Copyright 1999-2005 JH Software

Simple DNS Plus. Version 4.00. Copyright 1999-2005 JH Software Simple DNS Plus Version 4.00 I Simple DNS Plus Table of Contents Part I Welcome 4 Part II How to... 4 1 Get started... 4 2 Host a domain... name 5 3 Setup primary... / secondary 6 4 Secure you server...

More information

SI455 Advanced Computer Networking. Lab2: Adding DNS and Email Servers (v1.0) Due 6 Feb by start of class

SI455 Advanced Computer Networking. Lab2: Adding DNS and Email Servers (v1.0) Due 6 Feb by start of class SI455 Advanced Computer Networking Lab2: Adding DNS and Email Servers (v1.0) Due 6 Feb by start of class WHAT TO HAND IN: 1. Completed checklist from the last page of this document 2. 2-4 page write-up

More information