Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet384/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   380   381   382   383   384   385   386   387   ...   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)

[
 291 
]
The entry for 
mail
 is special as it is not an address record, but instead a 
Canonical 
Name
 (
CNAME
) record. In this case, it just points back to 
mailserv
. Essentially, 
that's what a CNAME record does: it creates a pointer to another resource. In this 
case, if someone tries to access a server named 
mail
, we redirect them to the actual 
server 
mailserv
. Notice that on the CNAME record, we're not inputting an IP 
address, but instead the hostname of the resource it's linked to.
In addition, you should also notice that I added the DNS server itself (
hermes
) to the 
file as well. You can see it on the second line above. I've found that if you don't do 
this, the DNS server may complain and refuse to load the file.
Now that we have a zone file in place, we should be able to start using it. First, 
we'll need to restart the 
bind9
 service:
sudo systemctl restart bind9 
After the command finishes, check to see if there are any errors:
systemctl status bind9 
You should see that the service state is 
active (running)
, and in addition, you 
should see a line telling you that the serial number for your zone file was loaded. If 
you see that the service is not running and/or your zone file was not loaded, you 
should see specific information in the output while checking the status that should 
point you in the right direction. If not, you can also check the system log for clues 
regarding 
bind
 as well:
cat /var/log/syslog | grep bind9
The most common mistakes I've seen typically result from not being consistent 
within the file. For example, if you're using a different IP scheme (such as 
10.10.10.0/24
), you'll want to make sure you didn't forget to replace any of my 
example IP addresses with the proper scheme. Assuming that everything went 
smoothly, you should be able to point devices on your network to use this new 
DNS server. Make sure you test not only pinging devices local to your network, but 
outside resources as well, such as websites. If the DNS server is working properly, 
it should resolve your local names, and then forward your requests to your external 
DNS servers (the two we set as forwarders) if it doesn't find what you're looking 
for locally. In addition, you'll also want to make sure that port 
53
 is open in your 
network's firewall, which is the port that DNS uses. It's extremely rare that this 
would be an issue, but I have seen it happen.


Setting Up Network Services

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   380   381   382   383   384   385   386   387   ...   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