版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年滬科版高二數(shù)學(xué)下冊月考試卷含答案
- 2025年人教A新版七年級科學(xué)下冊月考試卷
- 2025年上教版高一物理下冊階段測試試卷含答案
- 二零二五年智能音響設(shè)備設(shè)計與生產(chǎn)技術(shù)服務(wù)合同3篇
- 2025年冀教版九年級物理上冊月考試卷含答案
- 2025年中圖版選修3物理下冊月考試卷含答案
- 2025年滬教版選修2地理上冊階段測試試卷含答案
- 二零二五年綠色建筑項目混凝土澆筑專業(yè)勞務(wù)分包服務(wù)合同3篇
- 2025年滬教版三年級數(shù)學(xué)下冊月考試卷含答案
- 2025年粵人版八年級化學(xué)上冊階段測試試卷
- 2025年中國誠通控股集團(tuán)限公司校園招聘高頻重點提升(共500題)附帶答案詳解
- 私募股權(quán)投資基金管理公司部門劃分與職責(zé)
- (新版)廣電全媒體運(yùn)營師資格認(rèn)證考試復(fù)習(xí)題庫(含答案)
- 智慧人力引領(lǐng)未來-2024年生成式AI賦能人力資源管理研究報告
- 《產(chǎn)業(yè)鏈基礎(chǔ)理論》課件
- 6123C-基樁鉆芯法檢測報告-模板
- 五年級語文上冊 期末古詩詞專項訓(xùn)練(五)(含答案)(部編版)
- 2023年江西南昌大學(xué)保衛(wèi)部(處)招聘考試真題
- 3.1細(xì)胞膜的結(jié)構(gòu)和功能+課件高一上學(xué)期生物人教版必修1
- 《實踐論》(原文)毛澤東
- 《UML系統(tǒng)分析與設(shè)計教程(第2版)》全套教學(xué)課件
評論
0/150
提交評論