Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet380/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   376   377   378   379   380   381   382   383   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 288 
]
As you can see, the default 
bind
 configuration is split among several configuration 
files. Here, it includes three others: 
named.conf.options

named.conf.local
, and 
named.conf.default-zones
 (the first of which we already took care of editing). In 
order to resolve local names, we need to create a 
zone file
, which is essentially a 
text file that includes some configuration, a list of hosts, and their IP addresses. 
In order to do this, we need to tell 
bind
 where to find the zone file we're about to 
create. Within 
/etc/bind/named.conf.local
, we need to add a block of code like 
the following to the end of the file:
zone "local.lan" IN { 
    type master; 
    file "/etc/bind/net.local.lan"; 
}; 
Notice that the zone is named 
local.lan
, which is the same name I gave our domain 
in our DHCP server configuration. It's best to keep everything consistent when 
we can. If you use a different domain name than the one I used in my example, 
make sure that it matches here as well. Within the block, we're creating a 
master
 
zone file and
 informing 
bind
 that it can find a file named 
net.local.lan
, stored in 
the 
/etc/bind
 directory. This should be the only change we'll need to make to the 
named.conf.local
 file; we'll only create a single zone file (for the purpose of this 
section). Once you save this file, you'll need to create the 
/etc/bind/net.local.lan
 
file. So, go ahead and open that file in a text editor. Since we haven't created it yet, 
it should be blank. Here's an example of this zone file, completely filled out with 
some sample configuration:
$TTL 1D 
@ IN SOA local.lan. hostmaster.local.lan. ( 
 
202008161; serial 
 
8H ; refresh 
4H ; retry 
4W ; expire 
1D ) ; minimum 
IN A 192.168.1.1 

@ IN NS hermes.local.lan. 
fileserv        IN  A   192.168.1.3 
hermes          IN  A    192.168.1.1 
mailserv        IN  A   192.168.1.5 
mail            IN  CNAME   mailserv. 
web01           IN  A   192.168.1.7 


Chapter 11

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   376   377   378   379   380   381   382   383   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish