linux視頻-教程專用dns and bind_第1頁
linux視頻-教程專用dns and bind_第2頁
linux視頻-教程專用dns and bind_第3頁
linux視頻-教程專用dns and bind_第4頁
linux視頻-教程專用dns and bind_第5頁
已閱讀5頁,還剩79頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

DNSandBIND主講:馬永亮(馬哥)

客服,1661815153博客:主站:BIND高級應(yīng)用主講:馬永亮(馬哥)

客服,1661815153博客:主站:BIND9編譯安裝

及壓力測試主講:馬永亮(馬哥)

客服,1661815153博客:主站:/etc/resolv.conf

ns.www...權(quán)威DNS服務(wù)器

ns主機(jī)名稱,知本主義IP

名稱解析hosts搜索鍵/etc/passwdnsswitchloginlogin:password:root0loginDNS樹狀結(jié)構(gòu),testst1ftp

nfsmailpopwww

正主正從反主反從dnspod,dns.lazone“.”zone“l(fā)ocalhost”zone“27..”

主bindfile“.zone”10:059:459:48

opsdev

CDN

www,mail,ftptech.ns.tech.www.tech.mail.tech.fin.nswwwmailzone“”IN{typeforward;forwarders{};ddns:dynamicdns

/dev/random:熵池/dev/urandomClienthostsLocalDNScacheDNSServerServerCacheServerrootDNS服務(wù)器的類型:主DNS服務(wù)器輔助DNS服務(wù)器緩存DNS服務(wù)器轉(zhuǎn)發(fā)器listen-on[portinteger]{address_match_element;...};querylogboolean;version(quoted_string|none);allow-recursion{address_match_element;...};allow-query{address_match_element;...};TheDomainNameSystemisadistributeddatabase.Allowslocalcontrolofthesegmentsoftheoveralldatabase,yetdataineachsegmentisavailableacrosstheentirenetworkthroughaclient/serverscheme.ProgramscallednameserversconstitutetheserverhalfofDNS'sclient/servermechanism.Nameserverscontaininformationaboutsomesegmentsofthedatabaseandmakethatinformationavailabletoclients,calledresolvers.Resolversareoftenjustlibraryroutinesthatcreatequeriesandsendthemacrossanetworktoanameserver.forwardonly;Ifyouuseforward-onlymode,youmusthaveforwardersconfigured.ForwardZonesTraditionally,usingforwardershasbeenanall-or-nothingproposition:eitheryouuseforwarderstoresolveeveryqueryyournameservercan'tansweritself,oryoudon'tuseforwardersatall.However,therearesomesituationsinwhichitwouldbenicetohavemorecontroloverforwarding.Forexample,maybeyou'dliketoresolvecertaindomainnamesusingaparticularforwarderbutresolveotherdomainnamesiteratively.BIND8.2introducedanewfeature,forwardzones,thatallowsyoutoconfigureyournameservertouseforwardersonlywhenlookingupcertaindomainnames.zone“"{typeforward;forwarders{54;};};There'sanothervarietyofforwardzone,inawaytheoppositeofthekindprevious.Theseallowyoutospecifywhichqueriesdon'tgetforwarded.Theseforwardzonesareconfiguredusingazonestatement,butnotoftypeforward.Instead,thesearenormalzonesmaster,slave,orstubwithaforwarderssubstatement.To"undo"theforwardingconfiguredintheoptionsstatement,wespecifyanemptylistofforwarders:AnExampleoptions{directory"/var/named";forwarders{;;};};zone“"{typeslave;masters{;};file"";forwarders{};};mysqlpostgresqlLDAPBDB,BerkeleyDB,sleepycatkey-valuepowerDNS,cache,30000

x86armDNS0.2540.73客戶端不同,結(jié)果不同DNSWeb

100G

.zonewww..zone2www.主DNSweb從DNSweb/www/htdocsmysqld1、:,,phpwind(V1),phpmyadmin(V2)2、SSL,https://3、DNS,自已名稱解析服務(wù),主、從架構(gòu)4、要能實現(xiàn)web健康狀態(tài)檢查,5s進(jìn)行一次檢查5、ab對服務(wù)器壓力測試ViewViewsallowyoutopresentonenameserverconfigurationtoonecommunityofhostsandadifferentconfigurationtoanothercommunity.Theviewstatementmustcomeafteranyoptionsstatement,thoughnotnecessarilyrightafterit.Youcanselectwhichhosts"see"aparticularviewusingthematch-clientsviewsubstatement,whichtakesanaddressmatchlistasanargument.Ifyoudon'tspecifyacommunityofhostswithmatch-clients,theviewappliestoallhosts.JustbesureyoudefinetheACLoutsidetheviewbecauseyoucan'tuseaclstatementsinsideviews.Whatcanyouputinsideaviewstatement?Almostanything(well,exceptforaclstatements).Anyconfigurationoptionyouspecifywithinaviewoverridesthelike-namedglobaloption(e.g.,oneintheoptionsstatement)forhoststhatmatchmatch-clients.AvoidingaBogusNameserverInyourtermasnameserveradministrator,youmightfindsomeremotenameserverthatrespondswithbadinformationold,incorrect,badlyformatted,orevendeliberatelydeceptive.Youcanattempttofindanadministratortofixtheproblem.Oryoucansaveyourselfsomegriefandconfigureyournameservernottoaskquestionsofthisserver,whichispossiblewithBIND8,andBIND9.1.0andlater.Hereistheconfigurationfilestatement:server{bogusyes;};Ifyoutellyournameservertostoptalkingtoaserverthatistheonlyserverforazone,don'texpecttobeabletolookupnamesinthatzone.Hopefully,thereareotherserversforthatzonethatcanprovidegoodinformation.options{blackhole{10/8;172.16/12;192.168/16;};};MonitoringwithloggingBINDhasaveryflexibleandconfigurableloggingsystemchanneldefineswhereloginformationshouldgoCanusecustomchanneloruseroneoffourpredefinedchannelscategorydefineswhatshouldbeloggedAlllogmessagesaredividedintooneoffifteencategories.Acategorydirectivewillbeusedtodeterminetowhichchannelslogmessagesshouldbedirected.MessagesinonecategorymaybedirectedtomultiplechannelschannelchanneldefinestargetforlogsCansyslogtoanyfacilityoruseafileChannelsallowyoutofilterbymessageseveritySimilartosyslogseveritycriticalerrorwarningnoticeinfodebug[level]dynamicdebuganddynamicareuniquetoBINDdefaultisinfoAdditionaloptionsforverboseoutputprint-severitylogtheseveritylevelofmessagesprint-categorylogthecategoryofmessagesprint-timelogthedateandtimeofmessagesNote:syslog()alreadyrecordsthisinformationFourpredefinedchannelsare:channel“default_syslog”{syslogdaemon;severityinfo;}channel“default_debug”{file“named.run”;severitydynamic;}channel“default_stderr”{stderr;severityinfo;};channel“null”{null;};categorycategorystatementassociatesacategorywithachannelforloggingFifteencategoriestochoosefromdefaultDefinesdefaultchannelforcategoriesgeneralCatch-allcategoryforunclassifiedmessagesclientClientrequestproblemsconfigConfigurationfileproblemsdispatchDispatchofinboundpacketstointernalservermodulesdnssecDNSSECandTSIGlame-serversProblemsduetoremoteservermisconfigurationnetworkRelatedtonetworkoperationsnotifyNOTIFYannouncementsqueriesQueryprocessingresolverRecursivequeryprocessingsecurityAcceptedordeniedrequestsupdateDynamicupdatesxfer-inZonetransfersreceivedbytheserverxfer-outZonetransferssentbytheserverAnexamplelogging{channelmy_file{file"log.msgs"versions3size10k;severitydynamic;};channelmy_syslog{sysloglocal0;severityinfo;};categoryxfer-in{my_file;};categoryupdate{my_syslog;};};TheloggingStatement定義一個channel,要求使用file來記錄日志,滾動數(shù)目為10,每個最大為10M級別為dynamic要求記錄額外信息;定義一個類別,記錄查詢?nèi)罩拘畔⒅燎懊娴腸hannel中去logging{channel“query_log”{file“/var/log/bind9/query.log”versions10size10M;severitydynamic;print-categoryyes;print-severityyes;print-timeyes;};categoryqueries{query_log;};};channelerror_log{file/var/log/bind9/error.logversions10size1M;severityerror;print-severityyes;print-categoryyes;print-timeyes;};categorydefault{error_log;};rndcrndc-confgen>/etc/rndc.confreloadReloadsthenameserver.Sendthiscommandtoaprimarynameserveraftermodifyingitsconfigurationfileoroneormoreofitszonedatafiles.Youcanalsospecifyoneormoredomainnamesofzonesasargumentstoreload;ifyoudo,thenameserverwillreloadonlythesezones.stopCausesthenameservertoexit,writingdynamiczonestotheirzonedatafiles.freezezoneSuspendsdynamicupdatestothespecifiedzone.thawzoneResumesdynamicupdatestothespecifiedzone.reconfig[-noexpired]Tellsthenameservertocheckitsconfigurationfilefornewordeletedzones.Sendthiscommandtoanameserverifyou'veaddedordeletedzonesbuthaven'tchangedanyexistingzones'data.Specifyingthe-noexpiredflagtellsthenameservernottobotheryouwitherrormessagesaboutzonesthathaveexpired.flushFlushes(empties)thenameserver'scache.TSIGTransactionSIGnaturesUsessharedsecretsandaone-wayhashfunctiontoauthenticateDNSmessages,particularlyresponsesandupdates.Berelativelysimpletoconfigure,light-weightforresolversandnameserverstouse,andflexibleenoughtosecureDNSmessages(includingzonetransfers)anddynamicupdates.dnssec-keygen-aHAC-MD5-b128-n\HOST.BeforeusingTSIGforauthentication,weneedtoconfigureoneormoreTSIGkeysoneitherendofthetransaction.Forexample:key“keyname”{algorithmhmac-md5;secret“skrKc4Twy/cIgIykQu7JZA==”;};ThekeytoconfiguringournameserverswithTSIGkeysistheserverstatement'skeyssubstatement,whichtellsanameservertosignqueriesandzonetransferrequestssenttoaparticularremotenameserver.Sytax:server(ipv4_address){keys{somekey;};};channel->syslog,file,stderr,nullcategory->類別,DNS服務(wù)器產(chǎn)生服務(wù)器信息的類別,bind-chrootbindjail/var/named/chroot/etc//var/named/chroot/var/named/data實踐項目所使用的網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu)DMZGWsshEx_ClientDNS-S&In_Client

DNS-P&

telnet,http,vsftpDNAT

內(nèi)網(wǎng)主機(jī)名字:

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論