Uploaded by assil.bomba.t

dns-Linux

advertisement
*pQpUDOLWpV
/H V\VWqPH '16 HVW OH VXSSRUW GH QRPEUHXVHV IRQFWLRQQDOLWpV VXU LQWHUQHW DOODQW GH OD QDYLJDWLRQ j O¶HQYRL GH FRXUULHUV
pOHFWURQLTXHV 6D ERQQH FRQILJXUDWLRQ HVW HVVHQWLHOOH GDQV OH FDGUH G¶XQ UpVHDX ORFDO HW SULPRUGLDOH VXU LQWHUQHW
/HV GpEXWV GH OD UpVROXWLRQ GH QRPV HW O¶DSSDULWLRQ GX '16
'HSXLV OH GpEXW GHV UpVHDX[ ,3 OH SULQFLSH GH OD UpVROXWLRQ GH QRPV HVW GH IDLUH FRUUHVSRQGUH XQ QRP IDFLOH j
PpPRULVHU j XQH DGUHVVH ,3 VHXOH LQIRUPDWLRQ UpHOOHPHQW H[SORLWDEOH SRXU FRQWDFWHU XQH PDFKLQH GLVWDQWH
QRP GH PDFKLQH
!
7DQW TXH OHV PDFKLQHV SXEOLTXHV VXU LQWHUQHW pWDLHQW SHX QRPEUHXVHV WRXWHV OHV UpVROXWLRQV VH IDLVDLHQW DX PR\HQ
G¶XQ ILFKLHU DSSHOp KRVWV TX¶RQ WpOpFKDUJHDLW j LQWHUYDOOH UpJXOLHU SRXU VH WHQLU DX FRXUDQW GHV QRXYHDXWpV
/H '16 D pWp FRQoX SRXU SDOOLHU OHV OLPLWHV GX ILFKLHU KRVWV WpOpFKDUJp HW GHYDLW UpSRQGUH j FHUWDLQV LPSpUDWLIV GH
FRQFHSWLRQ
/H '16 HVW G\QDPLTXH
/HV HQUHJLVWUHPHQWV GRLYHQW SRXYRLU rWUH DMRXWpV GH IDoRQ XQLTXH GDQV OH V\VWqPH HW GHYHQLU UDSLGHPHQW GLVSRQLEOHV
SRXU WRXV
/H '16 HVW UpSOLTXp
2Q QH SHXW VH SHUPHWWUH GH GpSHQGUH G¶XQ VHXO VHUYHXU
H[HPSODLUHV
HW OHV LQIRUPDWLRQV H[LVWHQW WRXMRXUV HQ SOXVLHXUV
/H '16 HVW KLpUDUFKLVp
/HV LQIRUPDWLRQV VRQW FODVVpHV HQ XQH DUERUHVFHQFH TXL SHUPHW OHXU RUJDQLVDWLRQ &KDTXH QLYHDX GH OD KLpUDUFKLH HVW
DSSHOp © ]RQH ª HW OH VRPPHW GH FHWWH KLpUDUFKLH HVW OD ]RQH © ª
/H '16 HVW GLVWULEXp
/HV LQIRUPDWLRQV VRQW UpSDUWLHV HQ XQH PXOWLWXGH GH © VRXV EDVHV ª OHV ]RQHV '16 HW O¶HQVHPEOH GH FHV SHWLWHV
EDVHV G¶LQIRUPDWLRQV FRPSRVH O¶LQWpJUDOLWp GHV HQUHJLVWUHPHQWV '16 &H IRQFWLRQQHPHQW D O¶DYDQWDJH GH IDFLOLWHU
O¶DGPLQLVWUDWLRQ HQ UpSDUWLVVDQW OD FKDUJH VXU GHV PLOOLHUV GH VHUYHXUV
/H '16 HVW VpFXULVp
&HW LPSpUDWLI HVW DSSDUX SOXV WDUGLYHPHQW HW Q¶HVW SDV HQFRUH LPSOpPHQWp VXU WRXV OHV VHUYHXUV '16 2Q D WRXWHIRLV
GpVRUPDLV OD SRVVLELOLWp GH VpFXULVHU GH ERXW HQ ERXW OHV RSpUDWLRQV GX '16 /HV VHUYLFHV GH VpFXULWp GLVSRQLEOHV VRQW
O¶DXWKHQWLILFDWLRQ OH FRQWU{OH G¶DFFqV HW OH FRQWU{OH G¶LQWpJULWp
&RQFHSW GH ]RQHV '16
/H QRPEUH SOpWKRULTXH G¶HQUHJLVWUHPHQWV '16 QH SHUPHWWUDLW SDV OHXU JHVWLRQ VDQV DXFXQH IRUPH G¶RUJDQLVDWLRQ FHOD
/HXU RUJDQLVDWLRQ KLpUDUFKLTXH pWDLW GRQF
UHYLHQGUDLW j DYRLU XQ ILFKLHU KRVWV FRQWHQDQW GHV PLOOLRQV GH OLJQHV
LQGLVSHQVDEOH HW F¶HVW OD UDLVRQ G¶rWUH GHV ]RQHV '16 &KDTXH QLYHDX GH OD KLpUDUFKLH HVW XQH ]RQH &KDTXH
DUERUHVFHQFH HVW XQ GRPDLQH
2Q D DUELWUDLUHPHQW FUpp XQH ]RQH DSSHOpH © ª SRLQW TXL HVW j OD UDFLQH GH OD KLpUDUFKLH HW TXL FRQWLHQW WRXV OHV
WOG WRS OHYHO GRPDLQ GRPDLQH GH QLYHDX VXSpULHXU /HV WOG VRQW OHV H[WHQVLRQV ELHQ FRQQXHV WHOOHV TXH FRP IU QHW
EH HWF 7RXV OHV GRPDLQHV TXH QRXV FRQQDLVVRQV HW XWLOLVRQV VRQW GHV VRXV DUERUHVFHQFHV GHV WOG
© ENI Editions - All rights reserved - Samuel CASAL
- 1-
'DQV O¶H[HPSOH FL GHVVXV OD ]RQH IUDQFH FRQWLHQW OHV VRXV ]RQHV UKRQH QRUG HW LGI 0DLV RQ SHXW DXVVL GLUH TXH OD
]RQH © ª FRQWLHQW OHV VRXV ]RQHV IU FRP HW HGX /HV ]RQHV VLWXpHV KLpUDUFKLTXHPHQW VRXV XQH ]RQH VRQW DSSHOpHV
]RQHV HQIDQW
/¶LQWpUrW GH FHWWH RUJDQLVDWLRQ HVW GH GpGLHU XQ VHUYHXU HQ IDLW DX PRLQV GHX[ SRXU GHV UDLVRQV GH WROpUDQFH GH
SDQQHV j OD JHVWLRQ G¶XQH ]RQH (W FRPPH OD KLpUDUFKLH '16 HVW YLUWXHOOHPHQW LOOLPLWpH HQ ODUJHXU FRPPH HQ
SURIRQGHXU XQ VHUYHXU '16 QH JqUH HQ IDLW TX¶XQH SHWLWH SRUWLRQ GH O¶HVSDFH GH QRP 7RXMRXUV GDQV QRWUH H[HPSOH VL
XQ VHUYHXU '16 KpEHUJH OHV GRQQpHV GH OD ]RQH IUDQFH LO HVW FRQVXOWp SRXU WRXWH UpVROXWLRQ GH QRP VH WHUPLQDQW SDU
© IUDQFH IU ª PDLV LO Q¶KpEHUJH SDV QpFHVVDLUHPHQW OHV GRQQpHV GHV ]RQHV UKRQH QRUG HW LGI HW SHXW VH FRQWHQWHU GH
UHGLULJHU OD UHTXrWH YHUV OH VHUYHXU GH OD ]RQH HQIDQW 2Q SDUOH DORUV GH GpOpJDWLRQ GDQV OH VHQV R• RQ GpOqJXH OD
JHVWLRQ G¶XQH ]RQH HQIDQW j XQ DXWUH VHUYHXU
3RXU GHV UDLVRQV GH WROpUDQFH GH SDQQH OHV GRQQpHV GH FKDTXH ]RQH '16 GRLYHQW rWUH UpSOLTXpHV DX PRLQV XQH IRLV
F¶HVW j GLUH H[LVWHU j DX PRLQV GHX[ H[HPSODLUHV 8Q VHUYHXU DXUD DXWRULWp VXU OD ]RQH HW VHUD UHVSRQVDEOH GHV PLVHV
j MRXU 2Q GLW TX¶LO HVW 62$ 6WDUW 2I $XWKRULW\ /HV ]RQHV KpEHUJpHV VXU FH VHUYHXU VRQW GH W\SH PDVWHU HW FHX[ TXL
KpEHUJHQW XQH UpSOLTXH GH OD ]RQH VRQW FRQILJXUpV HQ WDQW TXH VODYH
0pFDQLVPH GH OD UpVROXWLRQ GH QRP
4XDQG XQH DSSOLFDWLRQ G¶XQH PDFKLQH GRLW IDLUH XQH UpVROXWLRQ GH QRP HOOH V¶DGUHVVH DX FRPSRVDQW UHVROYHU GH VRQ
V\VWqPH G¶H[SORLWDWLRQ /H UHVROYHU YD DORUV HQYR\HU XQH UHTXrWH GH UpVROXWLRQ GH QRP DX VHUYHXU '16 UpIpUHQFp VXU
FHWWH PDFKLQH /HV UHTXrWHV GH FOLHQW j VHUYHXU VH IRQW VXU OH SRUW
HW VRQW WUDQVSRUWpHV SDU OH SURWRFROH 8'3
6L OH VHUYHXU LQWHUURJp GLVSRVH ORFDOHPHQW GH O¶LQIRUPDWLRQ
DXWKRULWDWLYH DXWRULWDLUH
LO UpSRQG GLUHFWHPHQW
2Q GLW TX¶LO IDLW XQH UpSRQVH
6L OH VHUYHXU LQWHUURJp QH GLVSRVH SDV GH O¶LQIRUPDWLRQ LO YD FRQVXOWHU OD VHXOH ]RQH TX¶LO FRQQDvW OD ]RQH © ª TXL OXL
VHUYHXUV UDFLQHV GH O¶LQWHUQHW /H VHUYHXU LQWHUURJHUD DORUV FH VHUYHXU UDFLQH SRXU
GRQQHUD O¶DGUHVVH G¶XQ GHV
FRQQDvWUH O¶DGUHVVH G¶XQ VHUYHXU GH OD ]RQH GX WOG WRS OHYHO GRPDLQ GRPDLQH GH SUHPLHU QLYHDX /HTXHO VHUYHXU
VHUD LQWHUURJp j VRQ WRXU SRXU FRQQDvWUH O¶DGUHVVH G¶XQ VHUYHXU GH QRP JpUDQW OD ]RQH GLUHFWHPHQW VRXV OH WOG (QILQ
FH VHUYHXU VHUD LQWHUURJp SRXU VDYRLU V¶LO GLVSRVH GH O¶HQUHJLVWUHPHQW YRXOX GDQV FH GRPDLQH
- 2-
© ENI Editions - All rights reserved - Samuel CASAL
6FKpPD VLPSOLILp GH OD UpVROXWLRQ GH QRP
/H FOLHQW j VRQ VHUYHXU GH UpIpUHQFH
ZZZ DEF IU "
/H VHUYHXU ORFDO j XQ VHUYHXU UDFLQH
IRXUQLVVHXU G¶DFFqV RX VHUYHXU ORFDO
GRQQH PRL O¶DGUHVVH G¶XQ VHUYHXU FRQQDLVVDQW OD ]RQH IU
7LHQV OH VHUYHXU j O¶DGUHVVH
SRXUUD WH UHQVHLJQHU ,O SRVVqGH OHV LQIRUPDWLRQV GH OD ]RQH IU
/H VHUYHXU ORFDO DX VHUYHXU GH OD ]RQH IU
7LHQV
TXHOOH HVW O¶DGUHVVH SRXU OH QRP
GRQQH PRL O¶DGUHVVH G¶XQ VHUYHXU FRQQDLVVDQW OD ]RQH DEF IU
OH VHUYHXU j O¶DGUHVVH
SRXUUD WH UHQVHLJQHU
/H VHUYHXU ORFDO DX VHUYHXU GH OD ]RQH DEF IU
SRVVqGHV WX XQ HQUHJLVWUHPHQW ZZZ GDQV WRQ GRPDLQH DEF IU "
2XL YRLFL VRQ DGUHVVH ,3
/H VHUYHXU ORFDO j OD VWDWLRQ FOLHQWH
WX P¶DV GHPDQGp ZZZ DEF IU HW VRQ DGUHVVH ,3 HVW
/HV HQUHJLVWUHPHQWV
/HV ]RQHV Q¶D\DQW TX¶XQ U{OH VWUXFWXUDQW LO IDXGUD SRXU DVVXUHU OHV UpVROXWLRQV GH QRP FUpHU GHV HQUHJLVWUHPHQWV TXL
IHURQW FRUUHVSRQGUH XQ QRP j XQH DGUHVVH ,3 RX j XQH DXWUH LQIRUPDWLRQ &HV HQUHJLVWUHPHQWV VRQW DSSHOpV
5HVVRXUFHV 5HFRUGV HQUHJLVWUHPHQW GH UHVVRXUFHV VRXYHQW QRWpV 55 HW FRQVWLWXHQW OHV LQIRUPDWLRQV IRQGDPHQWDOHV
GX '16
/H )4'1 )XOO\ 4XDOLILHG 'RPDLQ 1DPH 1RP GH 'RPDLQH 3OHLQHPHQW 4XDOLILp UHSUpVHQWH OH QRP G¶K{WH DYHF WRXWH
VRQ DUERUHVFHQFH SDUHQWH MXVTX¶j OD ]RQH © ª 3DU H[HPSOH ZZZ VDLQWPDUFHOLQ IU UHSUpVHQWH O¶HQUHJLVWUHPHQW
ZZZ GDQV OD ]RQH VDLQWPDUFHOLQ IU IU pWDQW OD GHUQLqUH ]RQH DYDQW OD ]RQH SRLQW 4XDQG RQ QH YHXW DXFXQH
DPELJXwWp TXDQW j OD QDWXUH G¶XQ QRP '16 RQ UHSUpVHQWH OH )4'1 DYHF OD ]RQH SRLQW PDWpULDOLVpH F¶HVW j GLUH TX¶RQ
pFULW XQ SRLQW FRPPH GHUQLHU FDUDFWqUH GX )4'1 2Q REWLHQW GRQF © ZZZ VDLQWPDUFHOLQ IU ª &HWWH QRWDWLRQ HVW
FRXUDQWH YRLUH LQGLVSHQVDEOH GDQV OHV ILFKLHUV GH FRQILJXUDWLRQ GX VHUYHXU '16
/H V\VWqPH '16 D SRXU YRFDWLRQ SUHPLqUH G¶DVVXUHU XQ VHUYLFH GH UpVROXWLRQ GH QRP &¶HVW j GLUH GH IDLUH
FRUUHVSRQGUH j XQ QRP G¶K{WH XQH DGUHVVH ,3 6HV FUpDWHXUV RQW WRXWHIRLV SUpYX TXH OH V\VWqPH '16 VHUDLW FDSDEOH
G¶DVVXUHU OD UpVROXWLRQ SRXU GLIIpUHQWV W\SHV GH QRPV HW G¶DPpOLRUHU DLQVL OD ILQHVVH GX VHUYLFH
D (QUHJLVWUHPHQW GH W\SH $
/H SOXV IDFLOH j DSSUpKHQGHU HW OH SOXV FRXUDQW &¶HVW O¶HQUHJLVWUHPHQW TXL IDLW FRUUHVSRQGUH XQH DGUHVVH ,3 j XQ
QRP 3DU H[HPSOH TXDQG RQ WDSH KWWS ZZZ VLWH IU ZZZ HVW XQ HQUHJLVWUHPHQW GH W\SH $ GDQV OD ]RQH VLWH IU ,O
FRUUHVSRQG j XQH DGUHVVH ,3 TXL HVW FHOOH GX VHUYHXU ZHE KpEHUJHDQW OH VLWH HQ TXHVWLRQ
© ENI Editions - All rights reserved - Samuel CASAL
- 3-
5pVROXWLRQV GDQV OD ]RQH GRPDLQH IU
ZZZ :
VXSSRUW :
YSQ :
E (QUHJLVWUHPHQW GH W\SH $$$$
5pFHQW PDLV GH SOXV HQ SOXV IUpTXHQW &HW HQUHJLVWUHQW IDLW FRUUHVSRQGUH j XQ QRP XQH DGUHVVH ,3Y
5pVROXWLRQV GDQV OD ]RQH GRPDLQH IU
ZZZ :
D
VXSSRUW :
II IHG
D
II IHG
H
H
F (QUHJLVWUHPHQW GH W\SH 375
3RLQWHU OH FRQWUDLUH GH $ 6L OHV HQUHJLVWUHPHQWV GH W\SH $ IRQW FRUUHVSRQGUH XQH DGUHVVH ,3 j XQ QRP G¶K{WH OHV
375 IRQW H[DFWHPHQW OH FRQWUDLUH ,OV H[LVWHQW GDQV GHV ]RQHV XQ SHX SDUWLFXOLqUHV QRPPpHV ,1 $''5 $53$
/H QRP QRUPDOLVp GH OD ]RQH VHUD IRUPp SDU OHV RFWHWV GH OD SDUWLH UpVHDX GH O¶DGUHVVH ,3 RUGRQQpV HQ VHQV LQYHUVH
VXLYL GH OD FKDvQH GH FDUDFWqUHV © LQ DGGU DUSD ª
LQ DGGU DUSD
5pVROXWLRQV GDQV OD ]RQH
: VHUYHXU HQWUHSULVH ORFDO SRXU VHUYHXU HQWUHSULVH ORFDO :
: SULQWHU HQWUHSULVH ORFDO SRXU SULQWHU HQWUHSULVH ORFDO :
5pVROXWLRQV GDQV OD ]RQH
LQ DGGU DUSD
: ZZZ DEF IU SRXU ZZZ DEF IU :
: ZZZ GHI QHW SRXU ZZZ GHI QHW :
G (QUHJLVWUHPHQW GH W\SH &1$0(
&DQRQLFDO 1DPH DOLDV RX VXUQRP &H W\SH G¶HQUHJLVWUHPHQW IDLW FRUUHVSRQGUH XQ QRP j XQ DXWUH QRP 3DU H[HPSOH
VL YRXV FUpH] XQ VHUYHXU ZHE SRXU OHV XVDJHV LQWHUQHV GH YRWUH HQWUHSULVH VXU XQ VHUYHXU H[LVWDQW TXL V¶DSSHOOHUDLW
© SURGXFWLRQ PDERLWH FRP ª YRXV SRXYH] FUpHU XQ &1$0( © LQWUDQHW ª SOXV LQWXLWLI SRXU OHV XWLOLVDWHXUV
5pVROXWLRQV GDQV OD ]RQH PDERLWH FRP
LQWUDQHW : SURGXFWLRQ
LPSULPDQWH : SULQWHU
H (QUHJLVWUHPHQW GH W\SH 0;
0DLO ([FKDQJHU ,QGLFDWHXU GH VHUYHXU GH PHVVDJHULH SRXU XQ GRPDLQH &H W\SH G¶HQUHJLVWUHPHQW IDLW VDYRLU j GHV
DJHQWV GH WUDQVIHUW GH PHVVDJHULH TXHO HVW OH VHUYHXU GHVWLQDWDLUH ILQDO G¶XQ FRXUULHO /¶H[HPSOH FL GHVVRXV HVW j WLWUH
G¶LOOXVWUDWLRQ HW QH SUpVDJH SDV GX IRUPDW G¶XQ HQUHJLVWUHPHQW 0;
5pVROXWLRQ GDQV OD ]RQH GRPDLQH IU
#GRPDLQH IU : VPWS GRPDLQH IU :
- 4-
© ENI Editions - All rights reserved - Samuel CASAL
I (QUHJLVWUHPHQW GH W\SH 62$
6WDUW 2I $XWKRULW\ GpEXW G¶DXWRULWp
D XQ HQUHJLVWUHPHQW 62$
,QGLTXH OH VHUYHXU D\DQW OD UHVSRQVDELOLWp GH OD ]RQH 7RXWH ]RQH IRQFWLRQQHOOH
5pVROXWLRQ GDQV OD ]RQH GRPDLQH IU
GRPDLQH IU : QV KHEHUJHXU QHW
J (QUHJLVWUHPHQW GH W\SH 16
1DPH 6HUYHU VHUYHXU GH QRP
HQUHJLVWUHPHQW 16
,QGLTXH OHV VHUYHXUV GH QRPV SRXU OD ]RQH 7RXWH ]RQH IRQFWLRQQHOOH D DX PRLQV XQ
5pVROXWLRQ GDQV OD ]RQH GRPDLQH IU
GRPDLQH IU : QV KHEHUJHXU QHW
'16 VXU /LQX[
D /H VHUYHXU '16
/HV VHUYLFHV '16 V¶H[pFXWDQW VXU /LQX[ VRQW SUHVTXH H[FOXVLYHPHQW EDVpV VXU OH ORJLFLHO %,1' %HUNHOH\ ,QWHUQHW
1DPH 'RPDLQ &RPPH VRQ QRP O¶LQGLTXH LO D pWp FRQoX GDQV O¶XQLYHUVLWp GH %HUNHOH\ HQ &DOLIRUQLH /HV SUHPLHUV
GpYHORSSHPHQWV GDWHQW GHV DQQpHV
HW VRQ PDLQWLHQ HVW DFWXHOOHPHQW DVVXUp SDU O¶© ,QWHUQHW 6\VWHP
&RQVRUWLXP ª ,6& XQH DVVRFLDWLRQ j EXW QRQ OXFUDWLI TXL JqUH XQ FHUWDLQ QRPEUH GH ORJLFLHOV VWUXFWXUDQWV GH
O¶LQWHUQHW HW GHV UpVHDX[ ORFDX[
6L GHV DOWHUQDWLYHV H[LVWHQW j O¶XVDJH GH %,1' SRXU OD UpVROXWLRQ GH QRPV VXU /LQX[ PDUDGQV GMEGQV SDU H[HPSOH
VHXOH OD FRQQDLVVDQFH GH %,1' HVW H[LJpH SRXU OD FHUWLILFDWLRQ /3,
E /H FOLHQW '16
/HV PDFKLQHV /LQX[ GLVSRVHQW QDWLYHPHQW G¶XQ FOLHQW '16 DSSHOp UHVROYHU 7RXWH DSSOLFDWLRQ IRQFWLRQQDQW VXU /LQX[
HW D\DQW EHVRLQ GH IDLUH XQH UHTXrWH '16 V¶DSSXLHUD VXU FH FRPSRVDQW
,O H[SORLWH OH ILFKLHU GH FRQILJXUDWLRQ VLPSOH
HWF UHVROY FRQI
)RUPDW VLPSOLILp GX ILFKLHU HWF UHVROY FRQI
search domaine
domain domaine
nameserver A.B.C.D
)LFKLHU
HWF UHVROY FRQI
GLUHFWLYHV HW YDULDEOHV XWLOLVpHV
VHDUFK
)DFXOWDWLI LQGLTXH OH VXIIL[H GH UHFKHUFKH HPSOR\p VXU OH SRVWH /LQX[ 3HUPHW GH QH
SDV WDSHU O¶LQWpJUDOLWp GX )4'1 GDQV OHV DSSOLFDWLRQV /H ILFKLHU HWF UHVROY FRQI
DGPHW SOXVLHXUV GRPDLQHV GH UHFKHUFKHV SUpFLVpV SDU VHDUFK
GRPDLQ
)DFXOWDWLI HW REVROqWH
/LQX[
GRPDLQH
/H )4'1 GX GRPDLQH FRQVWLWXDQW OH VXIIL[H GH UHFKHUFKH
QDPHVHUYHU
,QGLTXH O¶DGUHVVH ,3 GX VHUYHXU '16 TXL DVVXUHUD OHV UpVROXWLRQV /H
ILFKLHU HWF UHVROY FRQI DGPHW SOXVLHXUV VHUYHXUV '16 SUpFLVpV SDU QDPHVHUYHU
LQGLTXH XQ VXIIL[H GH UHFKHUFKH XQLTXH HPSOR\p VXU OH SRVWH
© ENI Editions - All rights reserved - Samuel CASAL
- 5-
&RQILJXUDWLRQ GH EDVH GX VHUYHXU
)RQFWLRQQHPHQW GX VHUYHXU %,1'
/H VHUYHXU '16 %,1' UHSRVH VXU XQ H[pFXWDEOH QDPHG HW VXU XQ ILFKLHU GH FRQILJXUDWLRQ QDPHG FRQI
D 6WUXFWXUH GX ILFKLHU QDPHG FRQI HW SULQFLSDX[ pOpPHQWV GH FRQILJXUDWLRQ
&L GHVVRXV XQ H[HPSOH JpQpULTXH GH ILFKLHU QDPHG FRQI 6HORQ OHV FDV RQ OH WURXYHUD VRXV XQH IRUPH HQWLqUH HW
PRQROLWKLTXH PDLV LO HVW IUpTXHQW GH OH WURXYHU pFODWp HQ SOXVLHXUV PRUFHDX[ SRXU GHV UDLVRQV GH OLVLELOLWp /HV VRXV
ILFKLHUV VRQW DORUV DSSHOpV SDU OD GLUHFWLYH LQFOXGH /H U{OH SULQFLSDO GX ILFKLHU HVW GH GpFODUHU OHV ]RQHV TXL VHURQW
JpUpHV SDU FH VHUYHXU PDLV pJDOHPHQW GH SUpFLVHU WRXW pOpPHQW GH FRQILJXUDWLRQ
)RUPDW VLPSOLILp GH QDPHG FRQI
include "/chemin/fichier";
options {
directory "/chemin/repertoiredetravail";
forwarders { A.B.C.D };
};
zone "NOMDEZONE1" {
type type;
file "/CHEMIN/NOMFICHIER1";
};
zone "NOMDEZONE2" {
type type;
file "/CHEMIN/NOMFICHIER2";
};
)LFKLHU QDPHG FRQI
SULQFLSDOHV GLUHFWLYHV XWLOLVpHV
LQFOXGH
,QGLTXH OH QRP G¶XQ VRXV ILFKLHU GH FRQILJXUDWLRQ eYLWH G¶DYRLU XQ ILFKLHU
QDPHG FRQI WURS JUDQG SRXU rWUH DGPLQLVWUp FRQIRUWDEOHPHQW
RSWLRQV
&RQWHQHXU SRXU FHUWDLQV PRWV FOpV QRWDPPHQW GLUHFWRU\ HW IRUZDUGHUV
GLUHFWRU\
'DQV XQH GLUHFWLYH RSWLRQ ,QGLTXH OH UpSHUWRLUH XWLOLVp SRXU OH VWRFNDJH VXU GLVTXH
GHV GRQQpHV GH FDFKH GX VHUYHXU
IRUZDUGHUV
3ODFp GDQV XQH GLUHFWLYH RSWLRQ SRXU OHV FRQILJXUDWLRQV VLPSOHV UHGLUHFWLRQ
LQFRQGLWLRQQHOOH 6L OH VHUYHXU QH GLVSRVH SDV GDQV VHV ILFKLHUV GH OD UpVROXWLRQ
GHPDQGpH UHQYR\HU OD GHPDQGH YHUV OH VHUYHXU GRQW O¶DGUHVVH ,3 HVW GRQQpH HQ
UpIpUHQFH
]RQH
&RQWHQHXU SRXU OH QRP G¶XQH ]RQH '16 JpUpH SDU OH VHUYHXU
W\SH
'DQV XQH GLUHFWLYH ]RQH ,QGLTXH OH W\SH GH ]RQH VWRFNpH /HV SULQFLSDOHV YDOHXUV
VRQW KLQW VHUYHXUV UDFLQH PDVWHU VHUYHXU PDvWUH G¶XQH ]RQH HW VODYH UpSOLTXH
GHSXLV XQ PDVWHU
ILOH
'DQV XQH GLUHFWLYH ]RQH ,QGLTXH OH ILFKLHU FRQWHQDQW OHV LQIRUPDWLRQV GH ]RQH
E /HV ILFKLHUV GH GpILQLWLRQ GH ]RQH SUp LQVWDOOpV
6HORQ OHV LPSOpPHQWDWLRQV XQ FHUWDLQ QRPEUH GH ]RQHV VRQW SUpVHQWHV SDU GpIDXW j O¶LQVWDOODWLRQ GX VHUYHXU SRXU
DVVXUHU XQ IRQFWLRQQHPHQW VWDQGDUG HW SHUPHWWUH OHV UpVROXWLRQV FRXUDQWHV 3DU H[HPSOH OD ]RQH ORFDOKRVW TXL
SHUPHW GH UpVRXGUH OH QRP ORFDOKRVW HQ
\ FRPSULV DX VHLQ GX VHUYLFH '16 HW SDV VHXOHPHQW GDQV OH ILFKLHU
KRVWV
&HV ILFKLHUV GH ]RQHV VRQW FUppV j O¶LQVWDOODWLRQ HW FRUUHFWHPHQW UpIpUHQFpV GDQV OH ILFKLHU QDPHG FRQI
© ENI Editions - All rights reserved - Samuel CASAL
- 1-
([HPSOH GH ILFKLHU QDPHG FRQI VXU XQH GLVWULEXWLRQ 'HELDQ
1RWH] OD GpFODUDWLRQ GHV ]RQHV SDU GpIDXW DLQVL TXH O¶DSSHO GH GHX[ VRXV ILFKLHUV GH FRQILJXUDWLRQ DSSHOpV SDU OD GLUHFWLYH
LQFOXGH
include "/etc/bind/named.conf.options";
zone "." {
type hint;
file "/etc/bind/db.root";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
include "/etc/bind/named.conf.local";
1RWH] OHV GLUHFWLYHV LQFOXGH TXL UHQYRLHQW YHUV GHX[ ILFKLHUV YLGHV j O¶LQVWDOODWLRQ LOV QH FRQWLHQQHQW TXH GHV
FRPPHQWDLUHV /H UHVWH GH OD FRQILJXUDWLRQ VH UpVXPH j OD GpFODUDWLRQ GH ]RQHV GRQW OD VHXOH LQGLVSHQVDEOH j OD
UpVROXWLRQ GH QRP SXEOLTXH HVW OD ]RQH © ª pYRTXpH SOXV KDXW
6HUYHXU GH FDFKH
8Q VHUYHXU '16 GH FDFKH DVVXUH XQH UpVROXWLRQ GH QRP PDLV Q¶KpEHUJH DXFXQH GRQQpH GH UpVROXWLRQ ORFDOH HW
V¶DSSXLH VXU XQH LQIUDVWUXFWXUH GpMj H[LVWDQWH ,O VH FRQWHQWH GH UHOD\HU OHV GHPDQGHV YHUV G¶DXWUHV VHUYHXUV &H
IDLVDQW FH VHUYHXU PHWWUD HQ FDFKH SRXU XQH GXUpH GpWHUPLQpH WRXWHV OHV UpVROXWLRQV HQUHJLVWUpHV
3DU GpILQLWLRQ XQ VHUYHXU GH FDFKH QH GLVSRVH SDV ORFDOHPHQW GH ]RQHV '16 SHUVRQQDOLVpHV &¶HVW j GLUH TX¶LO
Q¶DVVXUHUD SDV OXL PrPH GH UpVROXWLRQ GH W\SH © 4XHOOH HVW O¶DGUHVVH ,3 FRUUHVSRQGDQW DX QRP ZZZ VLWHJHQLDO FRP "
ª ,O Q¶KpEHUJH WRXW VLPSOHPHQW SDV FH W\SH G¶LQIRUPDWLRQ HW GHYUD SRXU UpSRQGUH DX[ UHTXrWHV V¶HQ UHPHWWUH j
G¶DXWUHV VHUYHXUV PLHX[ UHQVHLJQpV
D &RQILJXUDWLRQ GX VHUYHXU GH FDFKH
&¶HVW OD ERQQH QRXYHOOH XQ VHUYHXU %,1' IUDvFKHPHQW LQVWDOOp HVW QDWXUHOOHPHQW XQ VHUYHXU GH FDFKH ,O Q¶\ D GRQF
SDV GH FRQILJXUDWLRQ SDUWLFXOLqUH j UpDOLVHU 4XDQG RQ SDUOH G¶LQVWDOOHU HW GH FRQILJXUHU XQ VHUYHXU GH FDFKH FRPPH
GDQV OHV REMHFWLIV GH OD FHUWLILFDWLRQ /3, LO V¶DJLW VLPSOHPHQW G¶LQVWDOOHU XQ VHUYHXU IRQFWLRQQHO VDQV LQIRUPDWLRQ GH
]RQH ORFDOH
E 5HGLUHFWLRQ
1RXV VDYRQV TX¶XQ VHUYHXU GH FDFKH Q¶KpEHUJH SDV ORFDOHPHQW G¶HQUHJLVWUHPHQWV GH UHVVRXUFHV 6¶LO GRLW IDLUH XQH
UpVROXWLRQ LO YD V¶DGUHVVHU DX[ VHXOV VHUYHXUV TX¶LO FRQQDLVVH j VDYRLU OHV VHUYHXUV UDFLQH &HWWH PpWKRGH GH
UpVROXWLRQ Q¶HVW SDV IRUFpPHQW OD SOXV UDSLGH HW RQ SRXUUDLW VRXKDLWHU WLUHU SDUWL GX FDFKH GH VHUYHXUV GpMj HQ
IRQFWLRQQHPHQW FRPPH FHX[ G¶XQ KpEHUJHXU RX G¶XQ IRXUQLVVHXU G¶DFFqV ,O IDXW SRXU FHOD LQGLTXHU j QRWUH VHUYHXU
O¶DGUHVVH G¶DXWUHV VHUYHXUV YHUV OHVTXHOV LO SRXUUD UHGLULJHU VHV UHTXrWHV &H W\SH GH UHGLUHFWLRQ HVW DSSHOp
LQFRQGLWLRQQHOOH FDU WRXWHV OHV UpVROXWLRQV QRQ ORXUGHV VRQW UHGLULJpHV
- 2-
© ENI Editions - All rights reserved - Samuel CASAL
&RQILJXUDWLRQ GH OD UHGLUHFWLRQ GDQV QDPHG FRQI
options {
forwarders {
A.B.C.D;
};
};
)LFKLHU QDPHG FRQI
GLUHFWLYHV XWLOLVpHV SRXU OD UHGLUHFWLRQ
RSWLRQV
$QQRQFH OD VHFWLRQ RSWLRQV GDQV OH ILFKLHU QDPHG FRQI /HV UHGLUHFWLRQV
LQFRQGLWLRQQHOOHV VRQW DQQRQFpHV GDQV XQH VHFWLRQ RSWLRQV
IRUZDUGHUV
'DQV XQH GLUHFWLYH RSWLRQV $QQRQFH OD RX OHV DGUHVVH V ,3 GX RX GHV UHGLUHFWHXU V
&RPPDQGH GH SLORWDJH UQGF
&RPPH WRXV OHV VHUYLFHV 8QL[ RX /LQX[ %,1' HVW ODQFp RX DUUrWp SDU XQ VFULSW GDQV HWF LQLW G 3RXU XQH JHVWLRQ
SUpFLVH GX VHUYLFH RQ GLVSRVH G¶XQH FRPPDQGH GH SLORWDJH UQGF &HWWH FRPPDQGH DVVRFLpH j TXHOTXHV PRWV FOpV
SHUPHW GH WUDQVPHWWUH DX VHUYHXU GLYHUVHV LQVWUXFWLRQV
,O Q¶HVW SDV REOLJDWRLUH G¶XWLOLVHU UQGF GDQV OH FDGUH G¶XQH DGPLQLVWUDWLRQ FRXUDQWH 0DLV DORUV WRXWH PRGLILFDWLRQ G¶XQ
ILFKLHU GH FRQILJXUDWLRQ TXHO TX¶LO VRLW LPSRVHUDLW OH UHGpPDUUDJH FRPSOHW GX VHUYLFH HW GRQF VRQ LQWHUUXSWLRQ
WHPSRUDLUH UQGF GHYUDLW GRQF rWUH XWLOLVp V\VWpPDWLTXHPHQW VXUWRXW VL OH VHUYHXU JqUH XQ JUDQG QRPEUH GH ]RQHV
FRPPH F¶HVW OH FDV SRXU XQ KpEHUJHXU SDU H[HPSOH
6\QWD[H
rndc action [paramètre]
&RPPDQGH UQGF
DFWLRQV SRVVLEOHV
UHORDG
5HFKDUJH OHV ILFKLHUV GH FRQILJXUDWLRQ HW OHV LQIRUPDWLRQV GH ]RQH
UHORDG ]RQH ]RQH
5HFKDUJH OHV ILFKLHUV G¶XQH ]RQH XQLTXH
UHFRQILJ
&KDUJH OHV ILFKLHUV GH FRQILJXUDWLRQ SRXU OHV QRXYHOOHV ]RQHV XQLTXHPHQW
IOXVK
(IIDFH OH FDFKH GX VHUYHXU
IOXVK ]RQH
(IIDFH OH FDFKH GX VHUYHXU SRXU OD ]RQH VSpFLILpH
VWDWXV
$IILFKH O¶pWDW GX VHUYHXU
© ENI Editions - All rights reserved - Samuel CASAL
- 3-
*HVWLRQ GH ]RQHV '16
*HVWLRQ GH ]RQHV ORFDOHV
D &UpDWLRQ G¶XQ ILFKLHU GH ]RQH GLUHFWH
/HV LQIRUPDWLRQV QpFHVVDLUHV j OD UpVROXWLRQ GHYURQW VH WURXYHU GDQV XQ ILFKLHU GH GpFODUDWLRQ GH ]RQH
/¶HPSODFHPHQW GH FH ILFKLHU HVW OLEUH SXLVTX¶LO HVW GpILQL GDQV XQH VHFWLRQ ]RQH GH QDPHG FRQI 7RXWHIRLV XQ XVDJH
pWDEOL YHXW TXH FH ILFKLHU VRLW SODFp GDQV OH UpSHUWRLUH YDU QDPHG 1RWH] TXH VHORQ OHV GLVWULEXWLRQV LO SHXW DXVVL VH
WURXYHU GDQV OH UpSHUWRLUH HWF RX GDQV HWF ELQG 3RXU OD FHUWLILFDWLRQ /3, UHWHQH] SOXW{W YDU QDPHG
&H ILFKLHU DXUD OH IRUPDW WUqV VWULFW LQGLTXp FL GHVVRXV 'DQV OD SOXSDUW GHV FDV XQ UHIXV GH GpPDUUHU HVW G€ j XQ
ILFKLHU GH ]RQH PDO IRUPp ,O HVW FRPSRVp GHV GpFODUDWLRQV GH GXUpH GH YLH HQ FDFKH GHV LQIRUPDWLRQV GX VHUYHXU
D\DQW DXWRULWp VXU OD ]RQH GHV VHUYHXUV GH QRPV GHVVHUYDQW FHWWH ]RQH HW GH O¶HQVHPEOH GHV HQUHJLVWUHPHQWV GH
UHVVRXUFHV 55 GH FHWWH ]RQH
)RUPDW W\SH GX ILFKLHU GH ]RQH GLUHFWH
$TTL
nomzone
ttl
IN SOA serveur mailadmin (
serial
refresh
retry
expire
negative )
nomzone
IN
NS
serveur
)LFKLHU GH ]RQH GLUHFWH
IRUPDW W\SH GH O¶HQ WrWH
WWO
7LPH 7R /LYH GXUpH GH YLH
LQGLTXH OD GXUpH GH FRQVHUYDWLRQ HQ VHFRQGHV GHV
GRQQpHV HQ PpPRLUH FDFKH &HWWH YDOHXU HVW SUpFpGpH SDU OD GLUHFWLYH 77/
QRP]RQH
)4'1 GH OD ]RQH JpUpH SDU FH ILFKLHU 6RXYHQW UHPSODFp SDU XQ DUREDVH # SRXU
DOOpJHU OH ILFKLHU $WWHQWLRQ SXLVTX¶LO V¶DJLW G¶XQ )4'1 OH QRP GH OD ]RQH GRLW VH
WHUPLQHU SDU XQ SRLQW
,1
2EVROqWH PDLV FRXUDQW
62$
6WDUW 2I $XWKRULW\ (QUHJLVWUHPHQW REOLJDWRLUH SRXU LQGLTXHU TXH FH VHUYHXU HVW
OpJLWLPH VXU FHWWH ]RQH
VHUYHXU
)4'1 GX VHUYHXU D\DQW DXWRULWp VXU OD ]RQH
PDLODGPLQ
$GUHVVH H PDLO GH O¶DGPLQLVWUDWHXU GX VHUYHXU /¶DUREDVH pWDQW XQ FDUDFWqUH UpVHUYp
GDQV OHV ILFKLHUV GH ]RQH LO HVW FRQYHQWLRQQHOOHPHQW UHPSODFp SDU XQ SRLQW
DGPLQ#VDLQWPDUFHOLQ IU GHYLHQW GRQF DGPLQ VDLQWPDUFHOLQ IU
VHULDO
9DOHXU QXPpULTXH 1XPpUR GH VpULH GX ILFKLHU 8WLOH TXDQG OD ]RQH HVW UpSOLTXpH VXU
G¶DXWUHV VHUYHXUV SRXU VDYRLU VL OHV GRQQpHV RQW FKDQJp HW VL OD UpSOLFDWLRQ GRLW rWUH
IDLWH
UHIUHVK
9DOHXU QXPpULTXH 8WLOLVp TXDQG OD ]RQH HVW UpSOLTXpH ,QGLTXH DX VHUYHXU HVFODYH j
TXHO LQWHUYDOOH WHVWHU OD YDOLGLWp GH VD ]RQH
UHWU\
9DOHXU QXPpULTXH 8WLOLVp TXDQG OD ]RQH HVW UpSOLTXpH 6¶LO HVW LPSRVVLEOH SRXU
O¶HVFODYH GH FRQWDFWHU OH VHUYHXU PDvWUH LQGLTXH DX ERXW GH FRPELHQ GH WHPSV
UpHVVD\HU
H[SLUH
9DOHXU QXPpULTXH 8WLOLVp TXDQG OD ]RQH HVW UpSOLTXpH 6¶LO HVW LPSRVVLEOH SRXU
O¶HVFODYH GH FRQWDFWHU OH VHUYHXU PDvWUH LQGLTXH DX ERXW GH FRPELHQ GH WHPSV OHV
FODVVH ,QWHUQHW DXFXQH DXWUH FODVVH Q¶HVW SOXV XWLOLVpH
© ENI Editions - All rights reserved - Samuel CASAL
- 1-
HQUHJLVWUHPHQWV QRQ UDIUDvFKLV SHUGHQW OHXU YDOLGLWp HW QH GRLYHQW SOXV rWUH XWLOLVpV
QHJDWLYH
9DOHXU QXPpULTXH ,QGLTXH FRPELHQ GH WHPSV OH VHUYHXU GRLW FRQVHUYHU HQ FDFKH XQH
UpSRQVH QpJDWLYH
16
(QUHJLVWUHPHQW LQGLTXDQW TXHO HVW OH VHUYHXU GH QRP SRXU FHWWH ]RQH
E &UpDWLRQ G¶XQ ILFKLHU GH ]RQH LQYHUVH
/H ILFKLHU GH ]RQH LQYHUVH DXUD OD PrPH VWUXFWXUH TX¶XQ ILFKLHU GH ]RQH GLUHFWH &RPPH LQGLTXp SOXV KDXW OH QRP
QRUPDOLVp GH OD ]RQH HVW IRUPp SDU OHV RFWHWV GH OD SDUWLH UpVHDX GH O¶DGUHVVH ,3 RUGRQQpV HQ VHQV LQYHUVH VXLYL GH
VHUD
OD FKDvQH GH FDUDFWqUHV © LQ DGGU DUSD ª 3DU H[HPSOH OD ]RQH LQYHUVH SRXU OH UpVHDX
LQ DGGU DUSD HW F¶HVW FH QRP TXL GHYUD rWUH HPSOR\p GDQV OH ILFKLHU GH ]RQH HW GDQV OH ILFKLHU
QDPHG FRQI
)RUPDW W\SH GX ILFKLHU GH ]RQH LQYHUVH
$TTL
ttl
nomzoninv IN SOA serveur mailadmin (
serial
refresh
retry
expire
negative )
nomzoneinv
IN
NS
serveur
)LFKLHU GH ]RQH LQYHUVH
IRUPDW W\SH GH O¶HQ WrWH
QRP]RQHLQY
1RP QRUPDOLVp GH OD ]RQH LQYHUVH VXEQHW LQYHUVp LQ DGGU DUSD 2• VXEQHW LQYHUVp
UHSUpVHQWH OHV RFWHWV GX VXEQHW HQ RUGUH LQYHUVp $WWHQWLRQ OH QRP GH OD ]RQH
LQYHUVH HVW XQ )4'1 LO GRLW GRQF VH WHUPLQHU SDU XQ SRLQW
62$
6WDUW 2I $XWKRULW\ (QUHJLVWUHPHQW REOLJDWRLUH SRXU LQGLTXHU TXH FH VHUYHXU HVW
OpJLWLPH VXU FHWWH ]RQH
VHUYHXU
)4'1 GX VHUYHXU D\DQW DXWRULWp VXU OD ]RQH
16
(QUHJLVWUHPHQW LQGLTXDQW TXHO HVW OH VHUYHXU GH QRP SRXU FHWWH ]RQH
&RQVWDWH] TXH F¶HVW ULJRXUHXVHPHQW OD PrPH FKRVH TXH SRXU OD ]RQH GLUHFWH &¶HVW OH IRUPDW GHV HQUHJLVWUHPHQWV
TXL IDLW O¶HVVHQWLHO GH OD GLIIpUHQFH
F &UpDWLRQ G¶HQUHJLVWUHPHQWV GDQV OHV ILFKLHUV GH ]RQH
8QH IRLV OHV ILFKLHUV GH ]RQH FUppV LO VXIILW G¶DMRXWHU DXWDQW G¶HQUHJLVWUHPHQW GH UHVVRXUFH TXH O¶RQ VRXKDLWH j UDLVRQ
G¶XQ SDU OLJQH
)RUPDW G¶XQ HQUHJLVWUHPHQW GH UHVVRXUFH GDQV XQ ILFKLHU GH ]RQH GLUHFWH
nom
IN
typeRR
valeur-résolue
)RUPDW G¶XQ HQUHJLVWUHPHQW GH UHVVRXUFH GDQV XQ ILFKLHU GH ]RQH LQYHUVH
adresse-hôte
IN
PTR
nom
)LFKLHU GH ]RQH GLUHFWH
QRP
- 2-
IRUPDW GHV HQUHJLVWUHPHQWV
1RP VLPSOH RX )4'1 DXTXHO LO IDXW IDLUH FRUUHVSRQGUH XQH DGUHVVH ,3
© ENI Editions - All rights reserved - Samuel CASAL
,1
2EVROqWH PDLV QpFHVVDLUH
FODVVH ,QWHUQHW
W\SH55
7\SH G¶HQUHJLVWUHPHQW 6RXYHQW GH W\SH $
QRP 9DOHXUV FRXUDQWHV $ &1$0( 0;
YDOHXU UpVROXH
&H j TXRL RQ IDLW FRUUHVSRQGUH OH QRP 'DQV OH FDV G¶XQ HQUHJLVWUHPHQW GH W\SH $
XQH DGUHVVH ,3
DGUHVVH K{WH
/¶RFWHW RX OHV RFWHWV TXL DVVRFLpV j O¶DGUHVVH GX UpVHDX GH OD ]RQH LQYHUVH IRUPHURQW
O¶DGUHVVH ,3 j UpVRXGUH
375
7\SH SRLQWHXU IDLW FRUUHVSRQGUH XQ QRP j XQH DGUHVVH ,3 +RUV HQUHJLVWUHPHQWV
62$ HW 16 F¶HVW OH VHXO W\SH TX¶RQ UHQFRQWUH GDQV OHV ]RQHV LQYHUVHV
IDLW FRUUHVSRQGUH XQH DGUHVVH ,3 j XQ
/¶DMRXW G¶XQ JUDQG QRPEUH G¶HQUHJLVWUHPHQWV HVW pYLGHPPHQW IDVWLGLHX[ HW JDJQHUD j rWUH UpDOLVp VRXV IRUPH GH
VFULSW
([HPSOH GH VFULSW VLPSOH G¶DOLPHQWDWLRQ G¶XQ ILFKLHU GH ]RQH
/HV KpEHUJHXUV HW DXWUHV '16 JpUDQW GH JURV YROXPHV G¶HQUHJLVWUHPHQW XWLOLVHQW QDWXUHOOHPHQW GHV VFULSWV EHDXFRXS SOXV
pODERUpV
#!/bin/bash
echo "Nom à ajouter à la zone ?"
read nom
echo "Adresse IP correspondant ?"
read ip
echo "$nom IN A $ip" >> /var/named/saintmarcelin.fr
G 'pFODUDWLRQ GH ]RQH SULQFLSDOH GDQV OH ILFKLHU QDPHG FRQI
8QH IRLV TXH O¶RQ GLVSRVH G¶XQ ILFKLHU GH ]RQH LO IDXW IDLUH VDYRLU DX VHUYHXU TX¶LO GRLW OH FKDUJHU DX GpPDUUDJH &HFL
VH IHUD DYHF XQH GpFODUDWLRQ GH ]RQH QRUPDOLVpH GDQV OH ILFKLHU QDPHG FRQI
)RUPDW W\SH GH OD GpFODUDWLRQ GH ]RQH GDQV QDPHG FRQI
zone "nomzone" {
type master;
file "fichier";
};
)LFKLHU QDPHG FRQI
GLUHFWLYHV HW V\QWD[H GH OD GpFODUDWLRQ GH ]RQH
QRP]RQH
/H )4'1 GH OD ]RQH JpUpH SDU OH VHUYHXU
W\SH PDVWHU
3UpFLVH TX¶LO V¶DJLW G¶XQH ]RQH PDvWUHVVH j V\QFKURQLVHU pYHQWXHOOHPHQW YHUV GHV
VHUYHXUV HVFODYHV
ILFKLHU
&KHPLQ DEVROX GX ILFKLHU j OLUH SRXU SUHQGUH FRQQDLVVDQFH GHV pOpPHQWV SURSUHV j OD
]RQH FRQILJXUDWLRQ 55 HWF
H 3ULVH HQ FRPSWH GH OD QRXYHOOH FRQILJXUDWLRQ
,O IDXW HQVXLWH IDLUH HQ VRUWH TXH OH VHUYHXU '16 UHFKDUJH VHV ILFKLHUV GH FRQILJXUDWLRQ DILQ GH SUHQGUH HQ FRPSWH OHV
QRXYHDXWpV 'HX[ VROXWLRQV SRXU FHOD
OH UHGpPDUUDJH GX VHUYLFH RX OH FKDUJHPHQW GH OD QRXYHOOH ]RQH SDU
FRPPDQGH GH SLORWDJH UQGF
5HFKDUJHPHQW GX VHUYLFH
/etc/init.d/bind9 restart
© ENI Editions - All rights reserved - Samuel CASAL
- 3-
&KDUJHPHQW GH OD QRXYHOOH ]RQH SDU UQGF
rndc reload saintmarcelin.fr
*HVWLRQ GH ]RQHV VHFRQGDLUHV
8QH ]RQH '16 QH GHYUDLW SDV GpSHQGUH G¶XQ VHUYHXU XQLTXH HW LO HVW FRXUDQW GH FUpHU VXU XQ GHX[LqPH VHUYHXU GHV
]RQHV VHFRQGDLUHV VWULFWHPHQW LGHQWLTXHV DX[ ]RQHV SULPDLUHV HW V\QFKURQLVpHV j LQWHUYDOOHV UpJXOLHUV
D 'pFODUDWLRQ GH OD ]RQH VHFRQGDLUH GDQV QDPHG FRQI
,O Q¶HVW pYLGHPPHQW SDV QpFHVVDLUH GH FUpHU OHV ILFKLHUV GH ]RQHV SXLVTX¶LOV VHURQW V\QFKURQLVpV GHSXLV OH VHUYHXU
DXWRULWDLUH 2Q SDUOH FRXUDPPHQW GH VHUYHXU PDvWUH HW GH VHUYHXUV HVFODYHV
/H FKDUJHPHQW GH OD ]RQH HVFODYH VH IDLW DYHF XQH GpFODUDWLRQ GH ]RQH QRUPDOLVpH GDQV OH ILFKLHU QDPHG FRQI
)RUPDW W\SH GH OD GpFODUDWLRQ GH ]RQH VHFRQGDLUH GDQV QDPHG FRQI
zone "nomzone" {
type slave;
masters { adresse_maître ; } ;
file "fichier";
};
)LFKLHU QDPHG FRQI
GLUHFWLYHV HW V\QWD[H GH OD GpFODUDWLRQ GH ]RQH
QRP]RQH
/H )4'1 GH OD ]RQH JpUpH SDU OH VHUYHXU
W\SH VODYH
3UpFLVH TX¶LO V¶DJLW G¶XQH ]RQH HVFODYH j V\QFKURQLVHU GHSXLV XQ VHUYHXU PDvWUH
DGUHVVHBPDvWUH
$GUHVVH ,3 GX VHUYHXU DXWRULWDLUH
ILFKLHU
&KHPLQ DEVROX GX ILFKLHU GDQV OHTXHO VWRFNHU OHV pOpPHQWV V\QFKURQLVpV /H FRPSWH
GH VHUYLFH GRLW DYRLU OHV GURLWV G¶pFULWXUH VXU OH UpSHUWRLUH GH WUDYDLO
E 3ULVH HQ FRPSWH GH OD QRXYHOOH FRQILJXUDWLRQ
,O IDXW HQVXLWH IDLUH HQ VRUWH TXH OH VHUYHXU '16 UHFKDUJH VHV ILFKLHUV GH FRQILJXUDWLRQ DILQ GH SUHQGUH HQ FRPSWH OHV
QRXYHDXWpV 'HX[ VROXWLRQV SRXU FHOD
OH UHGpPDUUDJH GX VHUYLFH RX OH FKDUJHPHQW GH OD QRXYHOOH ]RQH SDU
FRPPDQGH GH SLORWDJH UQGF
5HFKDUJHPHQW GX VHUYLFH
/etc/init.d/bind9 restart
&KDUJHPHQW GH OD QRXYHOOH ]RQH SDU UQGF
rndc reload saintmarcelin.fr
'pOpJDWLRQ GH ]RQH
8QH GpOpJDWLRQ GH ]RQH FRQVLVWH j IDLUH JpUHU SDU XQ VHUYHXU WLHUV XQH ]RQH HQIDQW G¶XQH ]RQH KpEHUJpH SDU XQ
VHUYHXU SDUHQW &¶HVW OH SULQFLSH GH OD GpOpJDWLRQ TXL SHUPHW GH GLVWULEXHU O¶HQVHPEOH GH O¶HVSDFH GH QRP '16 VXU GHV
PLOOLHUV GH VHUYHXUV /D GpOpJDWLRQ VH FRQILJXUHUD VXU OH VHUYHXU SDUHQW
2Q DMRXWHUD GDQV OH ILFKLHU GH ]RQH GX SDUHQW GHX[ 5HVVRXUFHV 5HFRUG O¶XQ GH W\SH 16 SRXU LQGLTXHU TX¶LO H[LVWH XQ
VHUYHXU GH QRP SRXU OD ]RQH HQIDQW HW O¶DXWUH GH W\SH $ SRXU FRQQDvWUH O¶DGUHVVH ,3 GH FH VHUYHXU GH QRP
/¶HQUHJLVWUHPHQW 16 DVVXUDQW OD GpOpJDWLRQ HVW DSSHOp JOXH UHFRUG HQUHJLVWUHPHQW FROOH
- 4-
© ENI Editions - All rights reserved - Samuel CASAL
&RQILJXUDWLRQ GH OD GpOpJDWLRQ GDQV OH ILFKLHU GH OD ]RQH SDUHQWH
zone_enfant
dns_enfant
IN
IN
NS
A
dns_enfant
A.B.C.D
eOpPHQWV
]RQHBHQIDQW
1RP VLPSOH GH OD ]RQH HQIDQW
,1
2EVROqWH PDLV REOLJDWRLUH
16
&HW HQUHJLVWUHPHQW HVW GH W\SH 1DPH 6HUYHU VHUYHXU GH QRP
GQVBHQIDQW
1RP GX VHUYHXU '16 TXL JqUH OD ]RQH HQIDQW
$
&¶HVW XQ HQUHJLVWUHPHQW GH W\SH $
$%&'
$GUHVVH ,3 GX VHUYHXU GH QRP SRXU OD ]RQH HQIDQW
FODVVH LQWHUQHW
2XWLOV GH WHVW
D SLQJ
0rPH VL oD Q¶HVW SDV VD IRQFWLRQ SUHPLqUH SLQJ SHXW WRXW j IDLW VHUYLU GH WHVW UXGLPHQWDLUH SRXU OD UpVROXWLRQ GH
QRPV 2Q VHUD DORUV OLPLWp j WHVWHU OD UpSRQVH GHV VHUYHXUV SDU GpIDXW UHQVHLJQpV GDQV HWF UHVROY FRQI
8WLOLVDWLRQ GH SLQJ SRXU WHVWHU XQH UpVROXWLRQ GH QRP
4XDQG RQ XWLOLVH SLQJ SRXU WHVWHU XQH UpVROXWLRQ GH QRPV F¶HVW OD WUDGXFWLRQ GH O¶DGUHVVH TXL LPSRUWH HW QRQ OD UpSRQVH
,&03 GH OD PDFKLQH GLVWDQWH
donald:/etc/bind# ping donald.formation.fr
PING donald.formation.fr (192.168.1.1) 56(84) bytes
64 bytes from donald.formation.fr (192.168.1.1): icmp
64 bytes from donald.formation.fr (192.168.1.1): icmp
64 bytes from donald.formation.fr (192.168.1.1): icmp
E QVORRNXS
QVORRNXS HVW O¶RXWLO OH SOXV SRSXODLUH SRXU O¶LQWHUURJDWLRQ GHV VHUYHXUV '16 ,O HVW SUpVHQW VXU OD JUDQGH PDMRULWp GHV
SODWHV IRUPHV 8QL[ HW :LQGRZV
QVORRNXS HVW XWLOLVp OD SOXSDUW GX WHPSV HQ PRGH LQWHUDFWLI &¶HVW j GLUH TX¶DSUqV DYRLU WDSp QVORRNXS RQ VH WURXYH
GDQV VRQ LQWHUIDFH R• RQ WDSHUD GHV FRPPDQGHV VSpFLILTXHV /HV VHUYHXUV GH QRPV LQWHUURJpV SDU GpIDXW VRQW FHX[
UpIpUHQFpV GDQV HWF UHVROY FRQI &HFL SRXUUD pYHQWXHOOHPHQW rWUH PRGLILp SDU OD VXLWH
8WLOLVDWLRQ GH QVORRNXS SRXU XQH UpVROXWLRQ GH QRP
3DU GpIDXW QVORRNXS DGUHVVH DX[ VHUYHXUV '16 GHV UHTXrWHV GH W\SH $
donald:/etc/bind# nslookup
> server
Default server: 192.168.1.1
Address: 192.168.1.1#53
> coincoin.formation.fr
Server:
192.168.1.1
Address:
192.168.1.1#53
coincoin.formation.fr
canonical name = donald.formation.fr.
© ENI Editions - All rights reserved - Samuel CASAL
- 5-
Name:
donald.formation.fr
Address: 192.168.1.1
>
QVORRNXS
QRP
7DSHU XQ QRP '16 GLUHFWHPHQW GDQV O¶LQWHUIDFH QVORRNXS UHYLHQW j HQ GHPDQGHU OD
UpVROXWLRQ QVORRNXS LQGLTXHUD DORUV TXHO VHUYHXU '16 LO D LQWHUURJp HW OD UpSRQVH TXL
OXL D pWp IDLWH ,O SHXW V¶DJLU G¶XQ QRP FRPSOHW )4'1 RX G¶XQ QRP VLPSOH VL RQ
V¶DSSXLH VXU XQ VXIIL[H GH UHFKHUFKH GpILQL GDQV HWF UHVROY FRQI
VHUYHU $ % & '
/D FRPPDQGH VHUYHU VXLYLH GH O¶DGUHVVH ,3 G¶XQ VHUYHXU j LQWHUURJHU LQGLTXH j
QVORRNXS TXH WRXWHV OHV LQWHUURJDWLRQV IXWXUHV GHYURQW rWUH DGUHVVpHV j FH VHUYHXU
VHW W\SH 7<3(
3DU GpIDXW QVORRNXS IDLW GHV UHTXrWHV GH W\SH $ UpVROXWLRQ RUGLQDLUH GH QRP HQ
DGUHVVH ,3Y
/D FRPPDQGH VHW W\SH SHUPHW G¶DGUHVVHU GHV UHTXrWHV G¶XQ DXWUH
W\SH 2Q V¶HQ VHUW FRXUDPPHQW SRXU FRQQDvWUH SDU H[HPSOH OHV VHUYHXUV GH QRPV RX
GH PHVVDJHULH DVVRFLpV j XQH ]RQH
8WLOLVDWLRQ GH QVORRNXS SRXU WURXYHU O¶DGUHVVH G¶XQ VHUYHXU GH PHVVDJHULH
2Q SHXW XWLOLVHU QVORRNXS SRXU WRXV OHV W\SHV G¶HQUHJLVWUHPHQWV FRXUDQWV
,FL 0;
donald:/etc/bind# nslookup
> set type=MX
> elysee.org
Server:
192.168.1.1
Address:
192.168.1.1#53
Réponse ne faisant pas autorité :
elysee.org
MX preference = 10, mail exchanger = mail.elysee.org
mail.elysee.org internet address = 64.182.1.213
>
F GLJ
GLJ HVW OH QRXYHO RXWLO SURSRVp SDU O¶,6& SRXU O¶LQWHUURJDWLRQ HW OH GLDJQRVWLF GHV VHUYHXUV '16 3DVVDQW SRXU rWUH OH
SOXV SUpFLV HW DERXWL GHV RXWLOV GH WHVW LO GHYUDLW pYHQWXHOOHPHQW ILQLU SDU V¶LPSRVHU FRPPH VROXWLRQ GH UpIpUHQFH
7RXWHIRLV OHV KDELWXGHV SULVHV SDU OHV DGPLQLVWUDWHXUV '16 ODLVVHQW SUpVDJHU HQFRUH GH EHDX[ MRXUV SRXU QVORRNXS
GLJ HVW XWLOLVp HQ PRGH QRQ LQWHUDFWLI
SDUDPqWUHV QpFHVVDLUHV j OD UpVROXWLRQ
F¶HVW j GLUH TXH FKDTXH XWLOLVDWLRQ GH GLJ GHYUD GRQQHU O¶HQVHPEOH GHV
6\QWD[H VLPSOLILpH GH GLJ
dig nom
dig A.B.C.D nom TYPE
eOpPHQWV
QRP
/H QRP FRPSOHW )4'1 GRQW RQ YHXW DVVXUHU OD UpVROXWLRQ
$%&'
/¶DGUHVVH ,3 GX VHUYHXU '16 j LQWHUURJHU (Q FDV G¶RPLVVLRQ OHV VHUYHXUV GH QRPV
LQWHUURJpV VRQW FHX[ UpIpUHQFpV GDQV HWF UHVROY FRQI
7<3(
3DU GpIDXW GLJ IDLW GHV UHTXrWHV GH W\SH $ UpVROXWLRQ RUGLQDLUH GH QRP HQ DGUHVVH
,3Y
/H SDUDPqWUH W\SH V¶LO HVW SUpFLVp SHUPHW G¶DGUHVVHU GHV UHTXrWHV G¶XQ DXWUH
W\SH 2Q V¶HQ VHUW FRXUDPPHQW SRXU FRQQDvWUH SDU H[HPSOH OHV VHUYHXUV GH QRPV RX
GH PHVVDJHULH DVVRFLpV j XQH ]RQH
([HPSOH G¶XWLOLVDWLRQ GH GLJ
- 6-
© ENI Editions - All rights reserved - Samuel CASAL
'H ORLQ OD SOXV SUpFLVH GHV FRPPDQGHV GH GLDJQRVWLF '16
donald:/etc/bind# dig @127.0.0.1 coincoin.formation.fr
; <<>> DiG 9.2.4 <<>> @127.0.0.1 coincoin.formation.fr
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18067
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;coincoin.formation.fr.
IN
A
;; ANSWER SECTION:
coincoin.formation.fr.
donald.formation.fr.
86400
86400
IN
IN
CNAME
A
donald.formation.fr.
192.168.1.1
;; AUTHORITY SECTION:
formation.fr.
86400
IN
NS
donald.formation.fr.
;;
;;
;;
;;
Query time: 9 msec
SERVER: 127.0.0.1#53(127.0.0.1)
WHEN: Thu Jun 15 19:49:45 2006
MSG SIZE rcvd: 90
G KRVW
KRVW HVW XQ RXWLO VLPSOH SRXU IDLUH XQH UHTXrWH '16 HQ PRGH QRQ LQWHUDFWLI
6\QWD[H VLPSOLILpH SRXU OD FRPPDQGH KRVW
host nom
host nom -t type A.B.C.D
eOpPHQWV
QRP
W W\SH
$%&'
/H QRP '16 GRQW LO IDXW DVVXUHU OD UpVROXWLRQ ,O SHXW V¶DJLU G¶XQ )4'1 RX GX QRP
VLPSOH TXL VHUD FRPSOpWp SDU OH VXIIL[H GH UHFKHUFKH V¶LO HVW GpILQL
GDQV HWF UHVROY FRQI
)DFXOWDWLI OH W\SH GH UHTXrWH TXL HVW DGUHVVpH 3DU GpIDXW OH W\SH HVW VpOHFWLRQQp
DXWRPDWLTXHPHQW SDUPL OHV W\SHV $ $$$$ HW 0;
)DFXOWDWLI O¶DGUHVVH ,3 GX VHUYHXU '16 j LQWHUURJHU 6L FHW pOpPHQW Q¶HVW SDV
UHQVHLJQp FH VRQW OHV VHUYHXUV SUpVHQWV GDQV HWF UHVROY FRQI TXL VRQW XWLOLVpV
8WLOLVDWLRQ GH KRVW SRXU WHVWHU XQH UpVROXWLRQ GH QRP
KRVW SUpVHQWH XQ UpVXOWDW FRQFLV
donald:/etc/bind# host coincoin.formation.fr
coincoin.formation.fr is an alias for donald.formation.fr.
donald.formation.fr has address 192.168.1.1
donald:/etc/bind#
8WLOLVDWLRQ GH KRVW SRXU UpFXSpUHU OHV HQUHJLVWUHPHQWV 16
donald:/etc/bind# host -t NS formation.fr
formation.fr name server donald.formation.fr.
© ENI Editions - All rights reserved - Samuel CASAL
- 7-
donald:/etc/bind#
H 0HVXUH GHV SHUIRUPDQFHV
/D FRPPDQGH WLPH TXL PHVXUH OH WHPSV FRQVRPPp SDU XQH DSSOLFDWLRQ SHUPHW GH PHVXUHU OD SHUIRUPDQFH G¶XQH
UpVROXWLRQ '16 (OOH LQGLTXH OH WHPSV WRWDO FRQVRPPp SDU OD FRPPDQGH HW OH WHPSV FRQVRPPp SDU OHV SURFHVVXV
GDQV OHV HVSDFHV G¶H[pFXWLRQ V\VWqPH HW XWLOLVDWHXU
2EVHUYDWLRQ GX WHPSV SULV SDU XQH UpVROXWLRQ '16
/HV WHPSV PHVXUpV GpSHQGHQW GH OD EDQGH SDVVDQWH GLVSRQLEOH GH OD GLVSRQLELOLWp GX VHUYHXU HW GH OD UDSLGLWp GH OD
PDFKLQH FOLHQWH
toto@serveur:~$ time nslookup www.eni-editions.fr
Server:
127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
Name: www.eni-editions.fr
Address: 81.80.245.20
real 0m0.256s
user 0m0.000s
sys
0m0.010s
toto@serveur:~$
- 8-
© ENI Editions - All rights reserved - Samuel CASAL
Download