Vous êtes sur la page 1sur 13

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

75 - DHCP und BOOTCP

DHCPServer

Description
TheISCDHCPserverallowstodistributedynamicandstaticIPnumberstoDHCP
clients.TheservercanserveBOOTPandDHCPrequestsfromclients.

Installation:
Serverinstallation:SuSECDs

Packet:

dhcp(ISCDHCPserver)

Leasesconcept
AftertheDHCPserverhasassignedanIPtoaclientitwritestheleasesithefile:
/var/lib/dhcp/dhcpd.leases.ThisfileSHOULDexistfortheservertostart.
IfaclientrequestsanewIPafterexpirationitwillmostlikelybegiventhesame
oldIPwrittenintheleasefile.

Whereiswhat:
/etc/dhcpd.conf
/usr/sbin/dhcpd
/usr/sbin/rcdhcpd
/etc/init.d/dhcpd
/var/lib/dhcp/dhcpd.leases

DHCPserverconfigurationfile
MainDHCPserverdaemon
LinktoscriptforDHCPserverstart/stop(SuSE)
ScriptforDHCPserverstart/stop
ListofIPClientleases.

InfoonDHCPconfiguration
mandhcpd
DHCPserverdaemonstartparameters
mandhcpd.conf
Infoondhcpd.confconfiguration.
/usr/share/doc/packages/dhcp/dhcpd.conf
ExampleofDHCPserverconfiguration

GraphicToolstoconfigureDHCPserver:
kcmdhcpd
Fromkde,veryeasytouse
webmin
Fromwww.webmin.com

Technicalbit
TheDHCPclientsendsitsfirstrequestwith:
broadcastaddress255.255.255.255Port67.
eg.extractfromngrepdeth0:
0.0.0.0:68>255.255.255.255:67
192.168.100.133:67>192.168.100.200:68
192.168.100.133>192.168.100.2008:0
192.168.100.200>192.168.100.1330:0
192.168.100.200>192.168.100.1333:1
DHCPServerlistenonUDPport67
DHCPClientlistensonUDPport68

Tochecktheserverleasesinleasecache:
watchn1"grep'^lease'/var/lib/dhcp/dhcpd.leases"
75_DHCP_BOOTCP.odt1

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

NotesonDHCPserver/client

TheDHCPserverconfigurationshouldalwaysdeclareallthesubnetstowhichitis
connected,evenifitdoesn'trespondtotheDHCPrequestsonsomeofthem.
TheDHCPserverassignsthelastIPoftherangefirstanduptothefirstIP.
TheDHCPserverwillnotstartifitcan'tfindthefile:
/var/lib/dhcp/dhcpd.leases.
Inthiscasecreateanemptyoneorcopythebackupfile
/var/lib/dhcp/dhcpd.leases~toit.
NosecurityisprovidedtopreventinsertinganotherDHCPserverinthenet.
OnlyoneresponsiveDHCPservershouldexistonthesamesubnet.
AftertheDHCPclientstarts,itstaysasadaemonallowingtomakerequeststotheHDCP
serverregularlyafterHALFofitsleasefilespanisspent.
IftheDHCPclientdhclientdaemonmakesarequestoflifespananditislongerthanthe
oneassignedintheserver,theserversettingsoverridestheclient'srequest.
Ifnewparameters(Options)aregivenintheserver'sconfiguration,theywillbeupdated
onlywhentheclientsissuerequests(afterhalftheirleases'lifespan).
EachdeclarationintheISCDHCPserverorclient'sconfigurationfilesshouldbe
terminatedbyasemicolon';'
Eachconfigblockshouldbeenclosedincurlybrackets{...}
ExtrainformationforDHCPserver/clientscanbeseenontheInternetat:
ISCDHCP
http://www.isc.org/products/DHCP/
DynamicDNS/DHCPperlscriptforISCDHCPserverVersion2
http://www.heronforge.net/~stephen/DHCPDNS/dhcpdns.html
SecureDDNSHOWTO:
http://ops.iet.org/dns/dynupd/secureddnshowto.html

75_DHCP_BOOTCP.odt2

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

DHCPServerconfigurationfile
#/etc/dhcpd.confVersion2and3
#MinimalGlobalparameters
optiondomainname"linux.local";
optiondomainnameservers192.168.100.40,192.168.100.42;
#==============Leases==========================
#defaultleasetime:1day
defaultleasetime86400;
#maximaleleasetime:1week
maxleasetime604800;
#==============Version2only==================================
#ddnsupdatestyle(usingolderDynamicDNSupdatemode)
ddnsupdatestyleadhoc;(ornone)
===============Version3only==================================
#forISCdhcpdVersion3(SuSE8.0andup)
authoritative;
#dynamicdnsupdatestyleIMPORTANT
ddnsupdatestylenone;(orinterimoradhoc)
ddnsupdatesoff;(oron)
#===============================================================
#IPDistributionConfigurationforVersion2and3
#(A)DynamicIPNumbersdistributionforasubnetA
subnet192.168.100.0netmask255.255.255.0
{range192.168.100.1192.168.100.20;
range192.168.100.50192.168.100.100;
optionsubnetmask255.255.255.0;
optionbroadcastaddress192.168.100.255;
optionrouters192.168.100.133;
}
#(B)DynamicIPNumbersdistributionforasubnetBforDHCPandBOOTPclients
subnet192.168.80.0netmask255.255.255.0
{rangedynamicbootp192.168.80.30192.168.80.130;
optionsubnetmask255.255.255.0;
optionbroadcastaddress192.168.80.255;
optionrouters192.168.80.133;
}
#(C)DynamicIPNumbersdistributionforasubnetC
#NOTE:ThisdeclarationisemptytopreventtheserverfromrespondingtoDHCPrequests#from
thissubnettowhichtheserverisalsoconnected.
#AdeclarationMUSTbemadefor#eachsubnettowichtheserverisconnectedunlessthe
#serverisstartedwiththeinterface#namesasparameters.eg.dhcpdeth0eth1

subnet192.168.70.0netmask255.255.255.0{
}
#(D)ProvidingaFixedIPNo.toahost(dogan)withaMACaddress
#Note:Itdoesn'tmatterifthehostdoesn'thavethenamedogan.HewillgettheIP.
hostdogan{
hardwareethernet00:80:C8:F6:98:57;
fixedaddress192.168.80.200;
}

75_DHCP_BOOTCP.odt3

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

#(E)ProvidingaFixedIPNo.toahost(harley)withoutaMACaddress
#IMPORTANTNOTE:Here,anyhostwhocallsitselfharleywillbeassignedthisIP
#evenifaleaseisalreadyassignedforthesamehostname!!!

hostharley{
fixedaddress192.168.80.201;
}

DHCP Clients
Clientinstallation:SuSECDs

Packet:dhcpcd(client)ordhclient
SuSEinstallsthedhcpcdbydefault
orpumpfromredhatdistribution.

Notes:
TheSuSE8.0script/etc/init.d/dhclientsaysthatit(itself)canhandleeitherthe
dhclientordhcpcdproperly.
ThedhcpcdcanonlyconfigureoneIPfortheeth0
buttheISCdhclientdaemonsupposedlycanhandlemultipleIPs.
DependingonthetypeofDHCPclient,theycanmakerequeststotheDHCPserver
askingfor:IPAddr,Routeraddress,DNSaddressesetc.viatheirconfigurationfile.
LeaselifespanrequestsareoverridenbytheDHCPserver'ssettingsiftheyarelonger
thantheserver'ssettings.

dhcpcd

ThedhcpcdclientwillsendrequeststotheDHCPserverandconfiguretheeth0each
timeitisstarted.
Syntax:(seemandhcpcdformoreinfo)
dhcpcd [dknrBCDHRST][ttimeout][cfilename]
[hhostname][ivendorClassID][IclientID]
[lleasetime][s[ipaddr]][wwindowsize]

[interface]
eg.dhcpcdReth0
(hasadefaulttimeoutof60sec.)
R Preventsdhcpcdfromreplacingexisting/etc/resolv.conffile.
G
Preventsdhcpcdfromsettingaroutetothedefaultgateway.Thisisusefulwhen
multipleprocessesofdhcpcdarerunningandyouwanttocontrolwhichoneis
allowedtosetthedefaultroute.
S
Preventsdhcpcdfrommodifyingthesearchlistinthe/etc/resolv.conf
HostIPassignmentconfigurationfile:
/var/lib/dhcpcd/dhcpcdeth0.cache

/var/lib/dhcpcd/dhcpcdeth0.info

WherethelastIPnumberobtainedis
stored.Itisnormallycheckedand
requestedoneachstartupofthedhcpcd
daemon.(Thisfileisbinary!!!)
Infointextformatproducedoutofabove
dhcpcdeth0.cachefile.

75_DHCP_BOOTCP.odt4

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

Notewrittenin/etc/resolv.confaftersuccessfullrequestfromdhcpcd
Info:Thisisatemporary/etc/resolv.confcreatedbyservicedhcpcd.
Thepreviousfilehasbeensavedandwillberestoredlaterwhenthedhcpcddies.
Ifyoudon'tlikeyour/etc/resolv.conftobechanged,youcanset
MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no
Thesevariablesareplacedin/etc/sysconfig/network/config.
Youcanalsoconfigureservicedhcpcdnottomodifyit.
Ifyoudon'tlikedhcpcdtochangeyournameserversettingstheneitherset:

DHCLIENT_MODIFY_RESOLV_CONF=no
in/etc/sysconfig/network/dhcp,orset
MODIFY_RESOLV_CONF_DYNAMICALLY=no
in/etc/sysconfig/network/configor
(manually)usedhcpcdwithRoption.
Ifyouonlywanttokeepyoursearchlist,set:DHCLIENT_KEEP_SEARCHLIST=yes
in/etc/sysconfig/network/dhcpor(manually)usetheSoption.

pump DHCP Client

Note:ItisnotavailabelintheSuSEdistribution.RedHatusesitasDHCPclient.
Syntax:pumpisstartedasfollows:

pumpieth0

Configurationfile:/etc/pump.conf
deviceeth0{
nodns
}
Theaboveconfigurationpreventspumpfrommodifyingthe/etc/resolv.conf

dhclient

Note:TheISCDHCPclientdaemonhdclient,allowformoreflexibilitythandhcpcdor
pump.ItistheclientsoftwarecreatedbythesameauthorsthanthestandardISC
DHCPserver.
Syntax:
dhclienteth0
Configurationfile:
#/etc/dhclient.conf
timeout60;
retry30;
interface"eth0"{
sendhostname"harley";

senddhcpleasetime3600;

prependdomainnameservers127.0.0.1;

requestsubnetmask,broadcastaddress,routers,
domainname,domainnameservers,hostname;

requiresubnetmask,domainnameservers;
}
Intheaboveconfigurationfilethedhclientwilltimeoutafter60sec
andwillretry30timesbeforegivingup.
Whenaskedtoconfiguretheeth0itwillmakearequesttotheDHCPserverto:
75_DHCP_BOOTCP.odt5

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

Add(prepend)theaddress127.0.0.1totheprovidednameserverlist.
requestasubnetmask,abroadcastaddress,etc
butwillaccepttheDHCP'sresponseonlyifitcontainsasubnetmaskanda
domainnameserveraddress.

Configure Syslog to log DHCP messages

LoggingofdhcpcdclientthroughSyslog:

YoumightwanttochangethedefaultlogfilewheresyslogsendsDHCPmessagesto.
(Bydefaultitgoesto/var/log/messages.)
Todothis,edityour/etc/syslog.conffileandaddthistoit:
#Logdhcpcdoperations
local7.*/var/log/dhcpcd.log
IMPORTANT:RemembertouseTABSandNOTspacesinyoursyslog.conffile.

Otherwiseitwon'twork.
Ifyoudon'twantthemessagesinthe/var/log/messagesaswell,thenyouhaveto
addlocal7.nonetoyour/var/log/messagesline.
eg.
#Loganything(exceptmail)oflevelinfoorhigher.
#Don'tlogprivateauthenticationmessages!
*.info;mail.none;authpriv.none;local7.none/var/log/messages
Toforcesyslogdtorereaditsconfigfileforthesechangestotakeeffect,do:
killallHUPsyslogd

What to do when.....

RequestforaNEWIPfromthesameclient(dhcpcd)
AfteraclienthasrequestedandobtainedanIPfromtheDHCPserver,theclientwilllikely
requestthesameIPonthenextstartup.IfwewanttogivehimanotherdynamicIPbefore
hisleaseexpiresthenweneedtodothefollowing:
Ontheserver:
StoptheDHCPserver(rcdhcpdstop)
Eraseallleasesentriesoftheclientfromthefile:

/var/lib/dhcp/db/dhcpd.leases
RestarttheDHCPserver(rcdhcpdstart)
Ontheclient:(iftheclientisaLinux)
Stoptheclientdaemon(killalldhcpcd)
Erasealltheclient'sdhcpcdfiles
/var/lib/dhcpcd/*
Restartthedhcpcdclientdaemon(/sbin/dhcpcdeth0)
VerifynewdynamicIP(ifconfigeth0)

75_DHCP_BOOTCP.odt6

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

ConfigurationforDynamicDNSupdate
DHCPSERVER

DNSSERVER

Includein/etc/named.confthefollowinglineineachzone:
(forwardandreverse)

allowupdate{127.0.0.1;local_network_IP;};
eg.
allowupdate{127.0.0.1;192.168.100.70;};

Makesurethatthe/var/lib/nameddirectoryisownedbynameduser
becausenamedneedstocreateandwriteinajournalfileinthisdirectory.

DHCPserver(version2only)

DHCPserver(version3)
forSuSE8.0andup

Enterin/etc/dhcpd.conf:example:
ddnsupdatestyleadhoc;
ddnsdomainname"linux.site";
zonelinux.site.{
#PrimaryForwardDNStoupdate
primary192.168.100.70;
}
zone168.192.inaddr.arpa.{
#PrimaryReverseDNStoupdate
primary192.168.100.70;
}
Enterin/etc/dhcpd.conf:
ddnsupdatestyleinterim;
ddnsupdateson;
ddnsdomainname"linux.site";
ignoreclientupdates;
zonelinux.site.{
#PrimaryForwardDNStoupdate
primary192.168.100.70;
}
zone168.192.inaddr.arpa.{
#PrimaryReverseDNStoupdate
primary192.168.100.70;
}

ManuallyaddorremoveaDynamicDNSentry:
nsupdate<enter>
>server192.168.100.70
>updateaddnewhost.linux.site3600A192.168.100.1
>updatedeletesunn.linux.site
><enter>
(blankline.....necessarytosendtheupdates!!!)
Note:Toverifythedynamicadding/deletingofDNSentriesusethecommmand:

watchn1"hostllinux.site192.168.100.70"

75_DHCP_BOOTCP.odt7

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

Secure DNS Updating:


1)UsethegenDDNSkeyprogramprovidedbyBIND9togenerateanMD5Key:
genDDNSkeykeyfile/etc/named.keykeynameDHCP_UPDATER
Akeysetwillbesavedin3files:
Example:
/etc/Kdhcp_updater.+157+37814.key
/etc/Kdhcp_updater.+157+37814.private
/etc/named.key
2)IntheDNSServer:Includethefollowinglinein/etc/named.conf:
include"/etc/named.key";
Foreveryzoneof/etc/named.confthatneedstodynamicallyupdate,
addthefollowingline:
allowupdate{keyDHCP_UPDATER;};
Example:
zone"linux.site"in{
typemaster;
file"linux.site.zone";
allowupdate{keyDHCP_UPDATER;};
};

zone"168.192.inaddr.arpa"in{
typemaster;
file"192.168.zone";
allowupdate{keyDHCP_UPDATER;};
};
IftheBIND9serverrunsinchroot(probablyis),thenmakeacopyofthekeyfile:
/etc/named.keyintochrootjail:
cp/etc/named.key/var/lib/named/etc/
oraddthefilenametothelistin:
NAMED_CONF_INCLUDE_FILESin/etc/sysconfig/named (SuSE only)
Also change the path of the database files in the zones definitions, and move the
database files there:(/var/lib/named/dyn/)
eg.
zone"linux.site"in{
typemaster;
file"dyn/linux.site.zone";
allowupdate{keyDHCP_UPDATER;};
};
zone"168.192.inaddr.arpa"in{
typemaster;
file"dyn/192.168.zone";
allowupdate{keyDHCP_UPDATER;};
};

75_DHCP_BOOTCP.odt8

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

3) In DHCP Server:
Insertthefollowinglinesin/etc/dhcpd.conf
ddnsupdatestyleinterim;
ddnsupdateson;
ddnsdomainname"linux.site";
ignoreclientupdates;
include"/etc/named.key";
and in the subnet declaration:
subnet192.168.100.0netmask255.255.255.0{
rangedynamicbootp192.168.100.201192.168.100.219
zonelinux.site{
primary127.0.0.1;
keyDHCP_UPDATER;}
zone168.192.inaddr.arpa.{
primary127.0.0.1;
keyDHCP_UPDATER;}
}
Note:
IftheDHCPserverrunsinchroot(probablyis),thenmakeacopyofthekeyfile
/etc/named.keyintochrootjail:
cp/etc/named.key/var/lib/dhcp/etc/
oraddthefilenametothelistin:
DHCPD_CONF_INCLUDE_FILESin/etc/sysconfig/dhcpd (SuSE only)

Totesttheprotection,usethensupdateshownaboveanditshouldn'twork.

ManuallyaddorremoveaDynamicDNSentryusingsecureupdate:
Note:ThekeyfileistheonegeneratedbythegenDDNSkeyprogram.
nsupdatek/etc/Kdhcp_updater.+157+37814.private<enter>
>server192.168.100.70
>updateaddnewhost.linux.site3600A192.168.100.1
>updatedeletesunn.linux.site
><enter>
(blankline.....necessarytosendtheupdates!!!)
Note:Toverifythedynamicadding/deletingofDNSentriesusethecommmand:

watchn1"hostllinux.site192.168.100.70"

75_DHCP_BOOTCP.odt9

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

LinuxDHCPCLIENT:

Variablessettingsin/etc/sysconfig/network/dhcpshouldbe:
DHCLIENT_RELEASE_BEFORE_QUIT="yes"
(tomakesuretheclient'sDNSentrywillbereleasedbeforeclientshutsdown)
Note: Windows98ClientdoesnotprovokeareleaseoftheDynamicDNSentrywhen
heshutsdown.ThefollowingcommandinaDOSWindoworwritteninabatchfile
andtriggeredbyaniconondesktopcandothereleasebeforeshuttingdown:
ipconfig/release_all

Startyast2andmakesurethattheIPofnetworkinterfaceissetto:
"dhcpclient"andnotafixedIP

Makesurethatthe/etc/resolv.confhastherightDNSaddress:
eg.
nameserver192.168.100.70

Thestart/stopoftheDHCPclientisdonethroughcommand:
rcdhclientstart
rcdhclientstop

75_DHCP_BOOTCP.odt10

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

Examples of working Dynamic DNS Configuration files:

/etc/dhcpd.conf
optionnbgrubmenucode150=text;
#DynamicDNSUpdatesection
ddnsupdatestyle interim;
ddnsupdates
on;
ddnsdomainname "linux.site";
ignoreclientupdates;
include
"/etc/named.key";
#
#defaultgateway
optionrouters
optionsubnetmask
optionnisdomain
optiondomainnameservers

192.168.100.70;
255.255.255.0;
"linux.site";
192.168.100.70;

#
optiontimeoffset
18000;
#EasternStandardTime
#
optionntpservers
192.168.1.1;
#
optionnetbiosnameservers
192.168.1.1;
#Selectspointtopointnode(defaultishybrid).
#
Don'tchangethisunlessyouunderstandNetbiosverywell
#
optionnetbiosnodetype2;
subnet192.168.100.0netmask255.255.255.0{
rangedynamicbootp192.168.100.200192.168.100.220;

#DynamicDNSUpdatesection
zonelinux.site{primary192.168.100.70;keyDHCP_UPDATER;}
zone168.192.inaddr.arpa.{
primary192.168.100.70;
keyDHCP_UPDATER;}
#
defaultleasetime21600;
maxleasetime43200;
nextserver10.1.2.1;

#PXESTHINCLIENTSection
filename"pxes/pxes0.9.nbi";

hostpxes{
hardwareethernet00:0C:29:B1:4E:4B;
fixedaddress192.168.100.201;
optiontftpservername"192.168.100.70";
log(debug,substring(optionvendorclassidentifier,0,9));
ifsubstring(optionvendorclassidentifier,0,9)="PXEClient"{
filename"pxes/grub/pxegrub";
}
elsifsubstring(optionvendorclassidentifier,0,9)="Etherboot"{
filename"pxes/grub/nbgrub";
#optionvendorencapsulatedoptions3c:09:45:74:68:65:72:62:6f:6f:74:ff;
}
optionnbgrubmenu"(nd)pxes/grub/menu.lst";
optionrootpath"192.168.100.70:/opt/ltsp/i386";
}

75_DHCP_BOOTCP.odt11

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

/etc/named.conf
#Copyright(c)20012003SuSELinuxAG,Nuernberg,Germany
#
#Author:FrankBodammer,LarsMueller<lmuelle@suse.de>
#
#/etc/named.conf
#
#ThisisasampleconfigurationfileforthenameserverBIND9.
#
#Asampleconfigurationforsettingupyourowndomaincanbe
#foundin/usr/share/doc/packages/bind9/sampleconfig.
#
#Adescriptionofallavailableoptionscanbefoundin
#/usr/share/doc/packages/bind9/misc/options.
options{
#Thedirectorystatementdefinesthenameserver's
#workingdirectory
directory"/var/lib/named";
#Theforwardersrecordcontainsalistofserversto
#whichqueriesshouldbeforwarded.Enablethislineand
#modifytheIPaddresstoyourprovider'snameserver.
#Uptothreeserversmaybelisted.
#forwarders{10.11.12.13;10.11.12.14;};
#forwarders{213.20.148.142;193.189.244.205;217.237.151.33;};
#Enablethenextentrytopreferusageofthename
#serverdeclaredintheforwarderssection.
#forwardfirst;
#Thelistenonrecordcontainsalistoflocalnetwork
#interfacestolistenon.Optionallytheportcanbe
#specified.Defaultistolistenonallinterfacesfound
#onyoursystem.Thedefaultportis53.
#listenonport53{127.0.0.1;};
#Thelistenonv6recordenablesordisableslistening
#onIPV6interfaces.Allowedvaluesare'any'and'none'
#oralistofaddresses.IPv6canonlybeusedwith
#kernel2.4inthisrelease.
listenonv6{any;};
#Thenextthreestatementsmaybeneededifafirewall
#standsbetweenthelocalserverandtheinternet.
#querysourceaddress*port53;
#transfersource*port53;
#notifysource*port53;
#Theallowqueryrecordcontainsalistofnetworksor
#IPaddressestoacceptanddenyqueriesfrom.The
#defaultistoallowqueriesfromallhosts.
#allowquery{127.0.0.1;};
#Ifnotifyissettoyes(default),notifymessagesare
#senttoothernameserverswhenthethezonedatais
75_DHCP_BOOTCP.odt12

Linux-Kurs Themen -DHCP und BOOTCP - 20 February 2005

Michel Bisson

#changed.Insteadofsettingaglobal'notify'statement
#inthe'options'section,aseparate'notify'canbe
#addedtoeachzonedefinition.
};

notifyno;

#Removetheleading'#'charactersifyouwantalogofthequeriessendto
#yournameserver.Thelogfilesizeislimitedto100MB.
#logging{
#
channelquery_logging{
#
file"/var/log/named_querylog"
#
versions3size100M;
#
printtimeyes;
//timestamplogentries
#
};
#
categoryqueries{
#
query_logging;
#
};
#
categorylameservers{null;};
#};
#Thefollowingzonedefinitionsdon'tneedanymodification.
#Thefirstoneisthedefinitionoftherootnameservers.
#Thesecondonedefineslocalhostwhilethethirddefinesthereverselookup
#forlocalhost.
zone"."in{
typehint;
file"root.hint";
};
zone"localhost"in{
typemaster;
file"localhost.zone";
};
zone"0.0.127.inaddr.arpa"in{
typemaster;
file"127.0.0.zone";
};
#Youcaninsertfurtherzonerecordsforyourowndomainsbelow.
include"/etc/named.key";
zone"linux.site"in{
typemaster;
file"dyn/linux.site.zone";
#
allowupdate{127.0.0.1;192.168.100.70;};
allowupdate{keyDHCP_UPDATER;};
};
zone"168.192.inaddr.arpa"in{
typemaster;
file"dyn/192.168.zone";
#
allowupdate{127.0.0.1;192.168.100.70;};
allowupdate{keyDHCP_UPDATER;};
};

75_DHCP_BOOTCP.odt13

Vous aimerez peut-être aussi