Вы находитесь на странице: 1из 3

IPv6DNSonSUNSolaris10 Inthisdocumentation,we'llexplainindetailshowtobuildupanIPv6DNSserverusingBINDversion 9(BerkeleyInternetNameDomain)onSUNSolaris10OperatingSystem(OS). SystemRequirements: First,youshouldhaveamachinewithSUNSolaris10OSupandrunningwithIPv6enabled.Toget SUNSolaris10operatingsystemvisithttp://www.sun.com/software/solaris/get.jsp.Therearemany checkboxinthatlinktocustomizeyoursoftware.IfyouarenotawareenoughwithSolarisOS,just choosesolaris10andsunupdateconnection.(Note:It'llaskyoufirsttoregisterforfreebefore downloadingproceed).ChoosetheOSsuitableforhardware(SPARC,x64,x86,..)anddownloadits CD'ssourcethenburnitonCD's.

MinimumHardwareRequirements: ProperinstallationofSolaris10requiresaSPARCbasedorx64/x86basedsystemwith: Minimumof256MBofphysicalRAM(or512MBforPXEbooting) Minimumof2GBofavailableharddrivespace ForSPARCplatformbasedprocessors,250MHzminimum Forx64orx86basedprocessors,120MHzminimum DVDorCDROMdrive Formoreinfoaboutcompatiblehardwarevisit:http://www.sun.com/bigadmin/hcl/ InourlabweuseDellserverwithx86basedprocessor. SolarisInstallationTips: DuringnormalinstallationofSolarisCD's(CD#1toCD#4),It'llpromptaskingyouaboutyour networkconfigurationsuchasrealIPv4address(don'tchooseDHCP),defaultrouterIP,etc. Thenit'llpromptforIPv6enable,checkitandcontinueinstallation. Afterinstallationcompletedothefollowingsteps 1.edit/etc/defaultrouterandaddadefaultgatewayIPv6addressinthenextlineofthedefault gatewayIPv4address. 2.edit/etc/hostname6.(network_card)andwritethefollowing: addif2001:a:b:c:d:e:f:1/128up 2001:a:b:c:d:e:f:1istherealIPv6addressassignedtoyournetworkcard. 3.edit/etc/hosts6andwritethefollowing: ::1/128localhost 2001:a:b:c:d:e:f:1(yourNSservername)loghost 4.edit/etc/hostsandwritethefollowing: 127.0.0.1localhost w.x.y.z(yourNSservername)loghost w.x.y.zistheIPv4addressofyournetworkcardwhichyouconfigureitduringCD'sinstallation andyoucanfinditin/etc/hosts. 5.edit/etc/nsswitch.confandappend"dns"forthefollowing:

hosts:filesdns ipnodes:filesdns 6.edit/etc/nsswitch.dnsandappend"dns"forthefollowing: hosts:filesdns ipnodes:filesdns 7.edit/etc/resolv.confandwritethefollowing: nameserverw.x.y.z w.x.y.zistheIPv4addressofyournetworkcardwhichyouconfigureitduringCD'sinstallation andyoucanfinditin/etc/hosts. NowyouhaveUNIXSolaris10machinereadytoinstallBINDonit.

DNSInstallation:

YouneedtodownloadlatestversionofBINDfromhttp://www.isc.org/index.pl?/sw/bind/on yourUNIXmachine.untarandunzipit. TobuildBINDafterdownloadingyou'llneedaCcompilerinstalledinyourUNIXmachine. YoucansearchonwebforaCcompilerunderUNIXtodownloadandinstallit,ORyoucan searchonyourUNIXmachineforitsCCcompiler.InourUNIXmachinewefoundthatthe PATHforcccompilerwhichwas/usr/ucb/ccdoesn'tcontainasuitablecompilerforBIND,So wesearchforgcccompilerinourUNIXmachine&founditin/usr/sfw/bin/gcc.Simplywe makealinkfrom/usr/ucb/ccto/usr/sfw/bin/gcctousegcctocompileBIND. lss/usr/sfw/bin/gcc/usr/ucb/cc#Linkcommand Nowwehavetoremovethe/usr/ucb/ccfiletopreventsystemfromusingit.Simplychangeits name mv/usr/ucb/cc/usr/ucb/cc.old#movecommand YouarereadynowtobuildBIND.Fromaconsolewindowcdtobinddirectorythentypethe following: /configure make makeinstall Compilationwilltakeplaceandpromptontheconsolewindowforeachstepcompletion successfulbyOKattheendofline. Aftercompilationcompletesuccessfullyyouhavetocreatethe"named.conf"fileinthepath /etc/named.conf.You'llfindasamplefornamed.conffileinurl: http://www.adminschoice.com/docs/domain_name_service.htm#named.confwhichalso containsadetaileddescriptionofDNSinstallation&requiredfiles. Appendthefollowinglinestotheoptionsparagraphinnamed.conffiletoenableIPv6DNS resolving: listenonv6{2001:4300:1:1:1:1:1:5;}; querysourcev6address*port53; Youneedalsosamplesoflocalhost.zonefile,localhostreversemapzonefile,root.hintfile, domainzonefile.Youcanfindsamplesinthefollowingurl's: http://www.zytrax.com/books/dns/ch6/localhost.html

http://www.zytrax.com/books/dns/ch6/localhostrev.html http://www.zytrax.com/books/dns/ch6/rootservers.html#editroot.hintfileandaddIPv6of correspondingrootserversfoundinwww.rootservers.org/withAAAArecordasanexample: B.ROOTSERVERS.NET.3600000A192.228.79.201 B.ROOTSERVERS.NET.3600000AAAA2001:478:65::53 http://www.zytrax.com/books/dns/ch6/mydomain.html You'llfindanexamplefortheformatofanIPv6addressrecordinyourdomainzonefileinurl: http://docs.sun.com/app/docs/doc/8064075/6jd69oagk?a=view RunDNSbytypinginConsolewindow(youshouldbeloggedinasarootorsameprivilege) thecommand: #named ChecktheoperationofyourDNSbyusingcommand: #nslookupcnn.com/*forexample*/ It'llreplywiththerealIPaddressesofcnn.comservers. Torun"named"automaticuponthesystemstartedit/sbin/rc3fileandappendanewlineinthe endwithnamed,saveconfiguration&quitthefile.