付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
DNSandBIND主讲:马永亮(马哥)
客服,1661815153博客:主站:BIND高级应用主讲:马永亮(马哥)
客服,1661815153博客:主站:BIND9编译安装
及压力测试主讲:马永亮(马哥)
客服,1661815153博客:主站:/etc/resolv.conf
ns.www...权威DNS服务器
ns主机名称,知本主义IP
名称解析hosts搜索键/etc/passwdnsswitchloginlogin:password:root0loginDNS树状结构,testst1ftp
nfsmailpopwww
正主正从反主反从dnspod,dns.lazone“.”zone“localhost”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服务器的类型:主DNS服务器辅助DNS服务器缓存DNS服务器转发器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客户端不同,结果不同DNSWeb
100G
.zonewww..zone2www.主DNSweb从DNSweb/www/htdocsmysqld1、:,,phpwind(V1),phpmyadmin(V2)2、SSL,https://3、DNS,自已名称解析服务,主、从架构4、要能实现web健康状态检查,5s进行一次检查5、ab对服务器压力测试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来记录日志,滚动数目为10,每个最大为10M级别为dynamic要求记录额外信息;定义一个类别,记录查询日志信息至前面的channel中去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服务器产生服务器信息的类别,bind-chrootbindjail/var/named/chroot/etc//var/named/chroot/var/named/data实践项目所使用的网络拓扑结构DMZGWsshEx_ClientDNS-S&In_Client
DNS-P&
telnet,http,vsftpDNAT
内网主机名字:
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2027年保单回执与合同二篇
- 2027年付外汇没有合同二篇
- 2027年租赁合同与发票二篇
- 合规转利润:降本增效全指南(2026)《GBT 36427-2018物联网家电一致性测试规范》
- 合规转利润:降本增效全指南(2026)《GBT 36117-2018村镇光伏发电站集群接入电网规划设计导则》
- 合规转利润:降本增效全指南(2026)《GBT 36008-2018机器人与机器人装备 协作机器人》
- 劳动关系协调师岗前班组建设考核试卷含答案
- 《认识负数》教学设计
- 燃气具制造工达标知识考核试卷含答案
- 蛛网膜下腔出血的护理
- 2026秋初中人教版数学八年级上册(新教材)教学计划
- 2026年乡镇综合执法队员题库
- 《热爱班集体》教学课件-2026-2027学年统编版(新教材)小学道德与法治四年级上册
- 手术室护理质量持续改进
- 我国细菌性食源性疾病暴发事件分析
- 高速铁路乘务人员化妆技巧高职PPT完整全套教学课件
- 机械设计基础PPT全套完整教学课件
- 《幼儿教育心理学(第2版)》课后答案 胡玉平石远鹏
- 细胞生物学实验-细胞骨架观察
- GB/T 41888-2022船舶和海上技术船舶气囊下水工艺
- GB/T 15927-2010砷矿石化学分析方法砷量测定
评论
0/150
提交评论