Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AKIBA.aws 第1回 基礎編「AWSのDNS」 #akibaaws
Search
Shimizu Toshiya
August 31, 2017
4
2.5k
AKIBA.aws 第1回 基礎編「AWSのDNS」 #akibaaws
Shimizu Toshiya
August 31, 2017
Tweet
Share
More Decks by Shimizu Toshiya
See All by Shimizu Toshiya
サイト高速化のためのCloudFront導入と活用
shimizutoshiya
0
730
AKIBA.AWS #12 Cloudinaryで画像や動画配信を最適化しよう「デイリーポータルZでのCloudinary導入に向けての検証について」
shimizutoshiya
1
970
「Web担当者Forum安田編集統括が訊く デイリーポータルZのサイトリニューアル裏話ぜんぶ」インフラ編 #dpz裏話
shimizutoshiya
0
2.6k
Developers.IO 2018「AWSのマネージドサービスを使ってはじめる動画配信」
shimizutoshiya
1
1.1k
AKIBA.AWS 第4回 基礎編 動画配信入門「AWSではじめるライブ動画配信入門」
shimizutoshiya
2
1.2k
re:Invent2016で発表された新サービス「AWS Batch」を使う想像をしてみた話 #cmdevio
shimizutoshiya
0
1.4k
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
Practical Orchestrator
shlominoach
186
10k
4 Signs Your Business is Dying
shpigford
181
21k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Writing Fast Ruby
sferik
628
61k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Site-Speed That Sticks
csswizardry
2
190
The World Runs on Bad Software
bkeepers
PRO
65
11k
Bash Introduction
62gerente
608
210k
Transcript
"84ͷ%/4 ਗ਼ਫढ़ ",*#"BXTୈճجૅฤ
ࣗݾհ ਗ਼ਫढ़ʢ͠Έͣͱ͠ʣ wΫϥεϝιουגࣜձࣾ w"84ࣄۀ෦ wΞʔΩςΫτάϧʔϓ wಈը৴ΤϯδχΞͱͯ͠"84ʹ৮ΕͯΫϥεϝιου wΠϯϑϥΛຊ֨తʹ৮ͬͨͷ"84͕͡Ίͯ wΦϯϓϨͷΈͷڥͱ͔৮ͬͨ͜ͱ͕ͳ͍
ຊηογϣϯͷςʔϚ "84ͷ%/4 w"NB[PO3PVUF wݖҖ%/4αʔϏε w"NB[PO1SPWJEFE%/4 w"NB[PO71$ͷ%/4αʔόʢΩϟογϡ%/4αʔόʣ w%/4αʔόΛ"84্Ͱߏஙɺӡ༻͢Δతͳ΄΅ग़͖ͯ·ͤΜ
%/4ʹ͍ͭͯͬ͟ͱ֬ೝ %/4%PNBJO/BNF4ZTUFN wΠϯλʔωοτυϝΠϯ໊ϗετ໊͔Β*1ΞυϨεΛҾ͖ग़͢ ߏཁૉͷ͏ͪͷͭ wݖҖ%/4αʔό w%/4ίϯςϯπαʔόɺκʔϯαʔόͳͲͱ wυϝΠϯ໊ͷཧɺΠϯλʔωοτ্Ͱ͍߹ΘͤʹԠ w%/4αʔόʢΩϟογϡ%/4αʔόʣ wϑϧϦκϧόʔɺ%/4ΩϟογϡαʔόɺࢀরαʔόɺͳͲͱ
wυϝΠϯ໊ΛݕࡧɺಛఆωοτϫʔΫʹαʔϏεఏڙ
Amazon Route 53
"NB[PO3PVUF "84͕ఏڙ͢ΔݖҖ%/4αʔϏε wϑϧϚωʔδυ wߴՄ༻ੑʢ4-"ʣ w"84άϩʔόϧωοτϫʔΫΛར༻ w"OZDBTU*1ΞυϨεΛ͍࠷دΓͷαʔόͰԠ
"NB[PO3PVUFͷػೳ wγεςϜɺαʔϏεͷެ։༻ wදతͳϨίʔυ͓͓Αͦαϙʔτ w"84ͷ&-#ɺ$MPVE'SPOUɺ4ͳͲͷΞΫηεͷυϝΠϯ༻ʹ w"84Ҏ֎ͷϦιʔεΛରͱ͢Δ͜ͱՄೳ w&-#ͳͲͷ;POF"QFYͷϨίʔυՃ"-*"4ϨίʔυͰ w෦ωοτϫʔΫͷΈͷ໊લղܾ wϓϥΠϕʔτ%/4ʢ1SJWBUF)PTUFE;POFʣ
"-*"4Ϩίʔυ w3PVUFͷಠ֦ࣗுϨίʔυ w%/4ΫΤϦʹରͯ͠&-#ɺ$MPVE'SPOUɺ4ͳͲͷΤϯυϙΠϯτͷ*1ΞυϨεΛฦ͢ w&-#ɺ$MPVE'SPOUɺ4ͳͲͰ;POF"QFYΛ༻͢Δ߹ʹඞਢ wFYBNQMFDPNͩͬͨΒXXXFYBNQMFDPNͰͳͯ͘FYBNQMFDPNΛ&-#$MPVE'SPOUͳͲͰ༻͢Δ߹ w$/".&Λ͏ΑΓύϑΥʔϚϯε͕ྑ͍ w%/4ΫΤϦ͕ճͰࡁΉ w"-*"4͕͑ΔͳΒ$/".&Ͱͳ͘"-*"4Λ͏͖ wৄ͘͠ˠ"NB[PO3PVUFͷ"-*"4Ϩίʔυར༻ͷεεϝʛ%FWFMPQFST*0
w IUUQEFWDMBTTNFUIPEKQDMPVEBXTBNB[POSPVUFBMJBTSFDPSET
3PVUFͷ1SJWBUF%/4 71$෦͚ͩͰ໊લղܾ͕ՄೳͱͳΔ w)PTUFE;POF࡞࣌ʹ1SJWBUF)PTUFE;POFΛࢦఆ wͦͷࡍʹ༻͢Δ71$ࢦఆ͢Δ wυϝΠϯͷऔಘ͕ෆཁ wTIJNJ[VMPDBMΈ͍ͨͳυϝΠϯͰར༻Մೳ wෳͷ71$Ͱͷ༻ɺผΞΧϯτͷ71$Ͱͷ༻Մೳ
"NB[PO3PVUFͦͷଞͷػೳ τϥϑΟοΫϧʔςΟϯά wՃॏϧʔςΟϯάɺϨΠςϯγʔϧʔςΟϯάɺҐஔใϧʔςΟ ϯάɺͳͲ %/4ϑΣΠϧΦʔόʔ w3PVUFͷػೳͱͯ͠ϔϧενΣοΫ w)FBMUIZͳΤϯυϙΠϯτͷΈ͕ΫΤϦͷԠʹؚ·ΕΔ w4Λͬͨ4PSSZϖʔδ͕࣮ݱՄೳ
3PVUFΛ͍3%4&MBTUJ$BDIFʹผ໊Λ͚ͭΔ w3%4&MBTUJ$BDIFͷΤϯυϙΠϯτ wNZFYBNQMFECBCDEXYZ[VTXFTUSETBNB[POBXTDPN ͱ͔ʢ3%4ͷྫʣ w$/".&ϨίʔυͰNZECFYBNQMFDPNʹΤϯυϙΠ ϯτͷΛొ wΞϓϦέʔγϣϯଆͰNZECFYBNQMFDPNʹΞΫη ε͢Δ w3%4&MBTUJ$BDIF͕ஔ͖ΘͬͯΤϯυϙΠϯτ͕มߋ
ʹͳͬͯɺΞϓϦέʔγϣϯଆͷมߋෆཁ w1VCMJD1SJWBUF)PTUFE;POFͲͪΒͰ
&-#ͷεϓϦοτϏϡʔ%/4Λ࣮ݱ͢Δ w&-#ʹର໊ͯ͠લղܾΛ͢Δͱ͖ɺ71$ ෦ͩͬͨΒϓϥΠϕʔτ*1͕΄͍͠ w௨ৗͷ&-#ͱผʹɺJOUFSOBM&-#Λ࡞ w1VCMJD%/4ͰFMCFYBNQMFDPNΛ௨ৗ ͷ&-#ͱͯ͠ొ w1SJWBUF%/4ͰFMCFYBNQMDPNΛ JOUFSOBM&-#ͱͯ͠ొ͢Δ w
ৄ͘͠ˠʲ"84ʳ3PVUFͰ1VCMJD1SJWBUFಉ͡υϝΠϯ໊ͷ κʔϯΛཧ͢Δʛ%FWFMPQFST*0 w IUUQEFWDMBTTNFUIPEKQDMPVEBXTSPVUFNBOBHF TBNFEPNBJOOBNF[POFT
εϓϦοτϏϡʔ%/4Λઃఆͨ͠ࡍͷҙ 71$෦Ͱৗʹ1SJWBUF)PTUFE;POFͰ໊લղܾ w1VCMJD)PTUFE;POFʹ͋ͬͯ1SJWBUF)PTUFE;POFʹແ͍ Ϩίʔυɺ71$෦Ͱ໊લղܾͰ͖ͳ͍ w1SJWBUF)PTUFE;POFʹ1VCMJDͱಉ༷ͷϨίʔυΛՃ͢ Δඞཁ͋Γ wৗʹύϒϦοΫʹղܾ͍ͨ͠υϝΠϯ໊Λ྆ํʹઃఆ͢ΔͷΛΕ ͳ͍
Amazon Provided DNS
"NB[PO1SPWJEFE%/4 "NB[PO71$෦Ͱఏڙ͞Ε͍ͯΔ%/4Ωϟογϡαʔό wϚωʔδϝϯτίϯιʔϧͱ͔αʔϏεҰཡʹग़ͯ͜ͳ͍ w͚Ͳɺ&$Λͬͨ͜ͱ͕͋Ε͖ͬͱར༻͍ͯ͠Δͣ wυΩϡϝϯτʹΑͬͯʮ"NB[PO%/4αʔόʔʯͳͲ wग़యใ w"NB[PO7JSUVBM1SJWBUF$MPVEϢʔβʔΨΠυ wӳޠυΩϡϝϯτੲͷ#MBDL#FMU8FCJOBSࢿྉͰʮ"NB[PO1SPWJEFE%/4ʯ
"NB[PO1SPWJEFE%/4Ͳ͜ʹ͍Δʁ "NB[PO71$෦ʹ͍·͢ w71$ωοτϫʔΫൣғʹΛϓϥεͨ͠ wͳΒ wͳΒ wͰར༻Մೳ wʢࢀߟ&$ͷϝλσʔλऔಘʣ
"NB[PO71$ͰϢʔβ͕ར༻Ͱ͖ͳ͍*1ΞυϨε αϒωοτͷ͏ͪͭͷ*1ΞυϨε༧ࡁΈ w"NB[PO1SPWJEFE%/4ͷ*1ΞυϨεৗʹ71$ωοτϫʔΫͷϕʔεʹ ʹͨ͠ͷ wαϒωοτͷ*1ϕʔεʹ ͨ͠ͷ໌ࣔతʹ͍ͬͯͳ͍Α͏ ωοτϫʔΫΞυϨε
71$ϧʔλ "NB[PO1SPWJEFE%/4 কདྷͷͨΊʹ"84Ͱ༧ ωοτϫʔΫϒϩʔυΩϟετΞυϨεʢ71$Ͱະαϙʔτʣ
"NB[PO1SPWJEFE%/4 Կ͍ͯ͠Δʁ w71$ͷ&$Πϯελϯε͔Βͷ໊લղܾ w༻͠ͳ͍߹ɺผ్%/4αʔόΛࢦఆ͠ͳ͍ͱ&$໊લ ղܾͰ͖ͳ͍ ༻͢Δʹʁ w71$ͷʮFOBCMF%OT4VQQPSUʯΦϓγϣϯΛUSVFʹ͢Δ
"NB[PO71$ͷ%/4·ΘΓͷઃఆ %FGBVMU71$ wϗετ໊ʢύϒϦοΫ%/4͋Γʣ Ϛωʔδϝϯτίϯιʔϧ͔Β࡞ͨ͠71$ wϗετ໊͕ͳ͍ʁ
71$ͷ%/4ؔ࿈ͷύϥϝʔλͭ wFOBMCF%OT4VQQPSUʢ%/4ղܾʣ w71$ʹରͯ͠%/4ղܾ͕αϙʔτ͞ΕΔ͔Ͳ͏͔ wUSVFͳΒ"NB[PO%/4αʔό͕ར༻Ͱ͖Δ wFOBCMF%OT)PTUOBNFʢ%/4ϗετ໊ʣ w71$ʹىಈ͞ΕΔΠϯελϯε͕ύϒϦοΫ%/4ϗετ໊Λऔಘ͢Δ͔Ͳ͏͔ wUSVFͰFOBCMF%OT4VQQPSUUSVFͳΒɺϗετ໊Λऔಘ wࢀߟυΩϡϝϯτ w"NB[PO7JSUVBM1SJWBUF$MPVEϢʔβʔΨΠυ71$ͷωοτϫʔΩϯάίϯϙʔωϯτ
71$Ͱͷ%/4ͷ༻71$ͷ%/4αϙʔτ wIUUQEPDTBXTBNB[PODPNKB@KQ"NB[PO71$MBUFTU6TFS(VJEFWQDEOTIUNMWQDEOTTVQQPSU
71$࡞࣌ͷύϥϝʔλͷঢ়ଶ w71$ͷΈ࡞ͷ߹ɺॳظઃఆͰFOBCMF%OT4VQQPSUͷΈ༗ޮ wϚωʔδϝϯτίϯιʔϧɺ"84$-*ɺ4%,ͳͲ༻ͷ߹ w%FGBVMU71$ɺ71$Οβʔυ༻ͷ߹྆ํ༗ޮ wผ్FOBCMF%OT)PTUOBNFΛUVSFʹઃఆ͢Δ͜ͱͰύϒϦοΫ%/4ϗετ໊Λ༩ wҎ߱ɺຊηογϣϯͰ྆ํUSVFͱͨ͠߹ͷڍಈΛ֬ೝ
1VCMJD%/4௨Γͷ໊લղܾ݁Ռ 71$෦͔Β໊લղܾͨ͠߹ wϓϥΠϕʔτ*1ΞυϨε͕ฦΔ w"NB[PO%/4Λ༻͍ͯ͠Δલఏ 71$֎෦͔Βͷ໊લղܾͨ͠߹ wύϒϦοΫ*1ΞυϨε͕ฦΔ
1VCMJD%/4ͷ໊લղܾ݁Ռͷ֬ೝ खݩͷ1$͔Βͷ໊લղܾ [shimizu.toshiya@classmethod] [~] $ nslookup ec2-13-114-175-214.ap- northeast-1.compute.amazonaws.com Server:
192.168.111.1 Address: 192.168.111.1#53 Non-authoritative answer: Name: ec2-13-114-175-214.ap-northeast-1.compute.amazonaws.com Address: 13.114.175.214
1VCMJD%/4ͷ໊લղܾ݁Ռͷ֬ೝ ಉ͡71$ͷҟͳΔ&$Πϯελϯε͔Β໊લղܾ [ec2-user@ip-172-31-15-12 ~]$ nslookup ec2-13-114-175-214.ap- northeast-1.compute.amazonaws.com Server: 172.31.0.2
Address: 172.31.0.2#53 Non-authoritative answer: Name: ec2-13-114-175-214.ap-northeast-1.compute.amazonaws.com Address: 172.31.23.13
௨Γͷ໊લղܾ݁Ռʹ͍ͭͯ རʁ w71$෦ͰݶఆͰ͖Δ௨৴71$෦Ͱ wΠϯλʔωοτܦ༝ʹͨ͠߹௨৴අ༻ൃੜ wεϓϦοτ%/4ͱͯ͠ ׆༻ͯ͠ΈΔ w1VCMJD%/4Λ$/".&Ϩίʔυͱͯ͠ొ͓ͯ͘͠ͱྑͦ͞͏ wҙࣝ͢Δͷͭͷϗετ໊͚ͩͰྑ͍ w71$֎෦ͳΒύϒϦοΫ*1ɺ71$෦ͳΒϓϥΠϕʔτ*1
w1VCMJD%/4ʹมߋ͕͋ΕϨίʔυ༰Λͭॻ͖͑Δ͚ͩ
1VCMJD%/4໊લղܾͷҙ ͋͘·Ͱಉ͡71$෦ͷΈϓϥΠϕʔτ*1͕ฦΔ w71$1FFSJOHଓΛͯ͠ผ71$ͷ"NB[PO%/4αʔόԠ͠ͳ͍ 1FFSJOHઌ͔ΒϓϥΠϕʔτ*1Ͱ໊લղܾ͍ͨ͠߹ʁ w3PVUF1SJWBUF)PTUFE;POFΛ࡞ɺ71$ʹؔ࿈͚Δ w1VCMJD)PTUFE;POFͱ1SJWBUF)PTUFE;POFͰεϓϦοτ%/4ͱ͢Δ w1VCMJD1SJWBUFํͷ)PTUFE;POFΛཧ͢Δඞཁ͋Γ
ΦϯϓϨϛε͔Β1SJWBUF)PTUFE;POFΛࢀর͍ͨ͠ 71$෦͔Β͔͠"NB[PO%/4Ԡ͠ͳ͍ w71$෦ʹ%/4ϑΥϫʔμΛߏங͢Δ w"84%JSFDUPSZ4FSWJDF 4JNQMF"% Λར༻ͨ͠ΦϯϓϨϛε͔Βͷ1SJWBUF)PTUFE ;POF໊લղܾʛ%FWFMPQFST*0 wIUUQEFWDMBTTNFUIPEKQDMPVEBXTQSJWBUFEOTGPSXBSEFSCZTJNQMFBE wΦϯϓϨϛεଆͷݖҖαʔόΛ͏ɺͱ͍͏खஈ
w"84ϋΠϒϦουߏͷ%/4ઃܭϨγϐʛ%FWFMPQFST*0 wIUUQEFWDMBTTNFUIPEKQDMPVEBXTIZCSJEDMPVEEOTEFTJHOT wΦϯϓϨϛε࿈ܞͳͲͰ"NB[PO%/4αʔόΛΘͳ͍έʔε͋Γ͏Δ
ͦͷଞ"NB[PO%/4ΛΘͳ͍߹ ΞΫηεઌࢄͷͨΊʹϩʔΧϧ%/4ΩϟογϡαʔόΛ͏ wෛՙࢼݧπʔϧGVMMCPLͰ&$෦ͰϩʔΧϧ%/4Ωϟογϡ αʔόʢ6OCPVOEʣ͕ಈ࡞ wGVMMCPL+.FUFSΫϥελ wಉҰ71$ʹෳͷΫϥελ͕͍ͯ"NB[PO%/4αʔόͰ໊લղܾ͠ ͨ݁ՌΛڞ༗͢ΔͱΞΫηεઌ͕ࢄ͠ͳ͍ wΞΫηεઌ&-#$MPVE'SPOUͳͲ wৄࡉˠ"NB[PO&$͔ΒෛՙςετΛߦ͏ͱ͖ͷམͱ݀͠ͱର
ࡦʛ%FWFMPQFST*0 wIUUQEFWDMBTTNFUIPEKQDMPVEQJUGBMMTBOETUFQTMPBEUFTUJOHPO FD
·ͱΊ "NB[PO3PVUF wϑϧϚωʔδυͳݖҖ%/4αʔϏε wγεςϜɺαʔϏεͷެ։༻ɻ"84Ϧιʔεͱͷ࿈ܞ wϓϥΠϕʔτ%/4 "NB[PO1SPWJEFE%/4 w71$෦ͷ໊લղܾ༻%/4Ωϟογϡαʔό w༻ͷࡍ71$ͷͭͷύϥϝʔλΛ֬ೝ͢Δʢ%/4ղܾɺ%/4ϗετ໊ʣ wΦϯϓϨϛε࿈ܞͳͲͷ߹ʹ͋͑ͯΘͳ͍έʔε
None