DNS ndi DHCP mu CentOS 7 - SMB Networks

Chizindikiro chonse cha mndandanda: Ma Network Networks a ma SME: Mau Oyamba

Moni abwenzi!. Tiona m'nkhaniyi momwe tingagwiritsire ntchito ntchito zofunikira pamaneti zomwe zimapangidwa ndi DNS ndi DHCP pa CentOS - Linux, makamaka mu mtundu wake 7.2.

  • Zolemba zina zokhudza DNS zimafotokoza kuti kukhazikitsidwa kwa ntchitoyi ndikosavuta komanso kovuta. Sindikugwirizana kwenikweni ndi mawu amenewa. Ndikadakonda kunena kuti ndizolingalira pang'ono ndipo kuti mafayilo ake amtundu wambiri ali ndi malembedwe osokonekera. Mwamwayi, tili ndi zida zowunika, pang'onopang'ono, kaphatikizidwe ka fayilo iliyonse yomwe timasintha. Chifukwa chake, tidzayesetsa kuti tiwone izi posangalatsa komanso zosangalatsa momwe zingathere..

Kwa iwo omwe akufunafuna malingaliro pazantchito zonsezi, tikukulimbikitsani kuti muyambe kusaka pa Wikipedia, m'mawonekedwe ake achi Spain ndi Chingerezi. Sizowona kuti zolemba mu Chingerezi nthawi zonse zimakhala zokwanira komanso zogwirizana. Komabe, Wikipedia ndi poyambira pabwino kwambiri.

Kwa inu omwe mukufunadi kuphunzira za DNS ndi BIND, timalimbikitsa kuwerenga bukuli «OReilly - DNS ndi BIND 4ed"lolembedwa ndi Paul albitz y Masewera a Cricket, kapena mtundu winawake wotsatirapo womwe ulipodi.

Tatulutsa kale nkhani yokhudza mutu wakuti «DNS ndi DHCP potsegukaSUSE 13.2 Harlequin - SME Networks»Kwa okonda zachilengedwe. Komabe, kuyambira pano azikumana ndi nkhani pamutuwu - osati pa zina- zolembedwa ndizogwiritsa ntchito kwambiri emulator ya terminal kapena console. Wow, kalembedwe kakang'ono kogwiritsidwa ntchito ndi UNIX® / Linux System Administrators.

Ngati mukufuna kudziwa zambiri zokhudza dzina lomaliza la mutuwu «Ma Network a SME»Mutha kuchezera tsambalo mu blog iyi«Ma netiweki a SME: kudula koyamba«. M'menemo mupezamo maulalo azinthu zina zambiri zofalitsidwa.

  • Pambuyo pomaliza ntchito kwa CentOS 7 Operating System ndi maphukusi omwe timalimbikitsa, el zolemba /usr/share/doc/bind-9.9.4/ Lili ndi zolemba zambiri zomwe tikukulimbikitsani kuti mufunse musanapite kukafufuza pa intaneti musanadziwe kuti, mosavuta komanso m'nyumba mwanu, mutha kupeza zomwe mukufuna.

Kukonzekera kwadongosolo

Zambiri pazamasamba ndi seva ya DNS

Domain dzinaChimamanda Ngozi Adichie
DNS dzina la seva: dns.fromlinux.fan
Adilesi ya IP: 192.168.10.5
Masamba a Subnet: 255.255.255.0

Kuyika

Timayamba ndi kukhazikitsa kwatsopano kapena koyera kwa machitidwe a CentOS 7 monga tawonera m'nkhani yapita «CentOS 7 Hypervisor I - Ma network a SMB«. Tiyenera kungosintha izi:

  • Mu 22 chifaniziro «KUSANKHA KWA SOFTWARE«, Timalimbikitsa kuti musankhe mgawo lamanzere«Malo Oyambira»Njira yolingana ndi«Zowonjezera seva«, Ali mgawo lamanja«Mapulagini a Malo Osankhidwa»Sankhani bokosi«DNS dzina seva«. Tikhazikitsa seva ya DHCP pambuyo pake.
  • Tiyeni tikumbukire kulengeza kwa malo ena osungira monga akuwonetsera mu 23 chifaniziro, mutakhazikitsa «NETWORK & DZINA LA TIMU".
  • Zithunzi zomwe zimatanthawuza magawo omwe tidzapangire pa hard drive yathu zimangoperekedwa ngati zitsogozo. Khalani omasuka kusankha magawo mwanzeru zanu, machitidwe anu, ndi malingaliro anu.
  • Pomaliza, mu Chithunzi 13 «NETWORK & TEAM DZINA», Tiyenera kusintha malingana ndi magawo omwe adalengezedwa ndi seva ya DNS, osayiwala kutchula dzina laomwe akukhala - pankhaniyi «dns«- mukamaliza kukonza makina. Ndizotheka kuchita ya ping -kuchokera kwa wolandila wina - kupita ku adilesi yapadera ya IP intaneti itatha:

DNS ndi DHCP pa CentOS

Pali zosintha zochepa komanso zowonekeratu zomwe tiyenera kupanga pankhani yapitayi.

Kufufuza koyamba ndi kusintha

Tikakhazikitsa pulogalamu yoyenerayo tiyenera kuwunikiranso mafayilo otsatirawa, ndipo chifukwa cha izi timayamba gawo kudzera pa SSH kuchokera pa kompyuta yathu sysadmin.kuchokera.fan:

buzz @ sysadmin: ~ $ ssh 192.168.10.5
buzz@192.168.10.5 achinsinsi: Kulowa komaliza: Sat Jan 28 09: 48: 05 2017 kuchokera 192.168.10.1
[buzz @ dns ~] $

Ntchito yomwe tatchulayi itha kutenga nthawi yayitali kuposa yachibadwa, ndipo makamaka chifukwa choti tilibe DNS pa LAN. Onaninso pambuyo pake kuti DNS ikugwira ntchito.

[buzz @ dns ~] $ mphaka / etc / hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 :: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6

[buzz @ dns ~] $ mphaka / etc / hostname
dns

[buzz @ dns ~] $ mphaka / etc / sysconfig / network-scripts / ifcfg-eth0
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eth0
UUID=946f5ac9-238a-4a94-9acb-9e3458c680fe
DEVICE=eth0
ONBOOT=yes
IPADDR=192.168.10.5
PREFIX=24
GATEWAY=192.168.10.1
DNS1=127.0.0.1
DOMAIN=desdelinux.fan

[buzz @ dns ~] $ mphaka /etc/resolv.conf 
# Yopangidwa ndi NetworkManager kusaka kuchokera ku linux.fan nameserver 127.0.0.1

Makulidwe akulu amayankha pazomwe tasankha. Dziwani kuti ngakhale pa seva Chipewa Chofiira 7 - CentOS 7, imakonzedwa mwachisawawa pamene NetworkManager kotero kuti ndiye amene amayang'anira ma intaneti, akhale amagetsi kapena opanda zingwe (WiFi), kulumikizana kwa VPN, kulumikizana kwa PPPoE, ndi kulumikizana kwina kulikonse.

[buzz @ dns ~] $ sudo systemctl udindo woyang'anira ma network
[sudo] password ya buzz: ● networkmanager.service Yonyamulidwa: sikupezeka (Chifukwa: Palibe fayilo kapena chikwatu) Yogwira: yosagwira (yakufa)

[buzz @ dns ~] $ sudo systemctl udindo NetworkManager
● NetworkManager.service - Network Manager Yonyamula: yodzaza (/usr/lib/systemd/system/NetworkManager.service; yathandizidwa; kukonzekera kwa ogulitsa: kumathandizidwaYogwira: yogwira (ikuyenda) kuyambira Sat 2017-01-28 12:23:59 EST; 12min zapitazo Main PID: 705 (NetworkManager) CGroup: /system.slice/NetworkManager.service └─705 / usr / sbin / NetworkManager --no-daemon

Red Hat - CentOS imakupatsaninso mwayi wolumikizana ndi kusiya ma netiweki pogwiritsa ntchito malamulo akale ngati e ngati. Tiyeni tithamange pa kontrakitala ya seva:

[miz @ dns ~] # ifdown eth0
Chipangizo 'eth0' sichimasulidwa bwinobwino.

[miz @ dns ~] # ifup eth0
Kulumikizana kumayambitsidwa bwino (njira yogwirira ntchito ya D-Bus: / org / freedesktop / NetworkManager / ActiveConnection / 1)
  • Tikupangira musasinthe zosintha zomwe CentOS 7 imapereka malinga ndi NetworkManager.

Timalengeza motsimikiza zosungira zomwe tikugwiritsa ntchito ndikusintha makina ake ngati kuli kofunikira:

[buzz @ dns ~] $ su Chinsinsi: [root @ dns buzz] # cd /etc/yum.repos.d/
[miz @ dns yum.repos.d] # ls -l
okwana 28 -rw-r-r--. Muzu 1 mizu 1664 Dec 9 2015 CentOS-Base.repo -rw-r-r--. Muzu 1 mizu 1309 Dec 9 2015 CentOS-CR.repo -rw-r-r--. Muzu 1 muzu 649 Dec 9 2015 CentOS-Debuginfo.repo -rw-r-r--. Muzu 1 muzu 290 Dec 9 2015 CentOS-fasttrack.repo -rw-r-r--. Muzu 1 muzu 630 Dec 9 2015 CentOS-Media.repo -rw-r-r--. Muzu 1 muzu 1331 Dec 9 2015 CentOS-Sources.repo -rw-r-r--. Muzu 1 muzu 1952 Dec 9 2015 CentOS-Vault.repo

Ndi bwino kuwerenga zomwe zili m'mafayilo oyambira kuchokera kuzosungidwa za CentOS. Zosintha zomwe timapanga pano ndi chifukwa choti tilibe intaneti, ndipo tikugwira ntchito ndi nkhokwe zakomweko zojambulidwa kuchokera ku WWW Village, ndi anzawo omwe amatipanga kukhala osavuta pang'ono. 😉

[miz @ dns yum.repos.d] # mkdir choyambirira
[miz @ dns yum.repos.d] # mv CentOS- * choyambirira /

[miz @ dns yum.repos.d] # nano centos-repos.repo
[centos-base]
name=CentOS-$releasever
baseurl=http://10.10.10.1/repos/centos/7/base/
gpgcheck=0
enabled=1

[centos-updates]
name=CentOS-$releasever
baseurl=http://10.10.10.1/repos/centos/7/updates/x86_64/
gpgcheck=0
enabled=1

[root @ dns yum.repos.d] # yum yeretsani zonse
Mapulagini odzaza: fastestmirror, malipanga Kukonza malo osungira: zosintha za centos-base centos Kukonza zonse

[root @ dns yum.repos.d] # yum zosintha
Mapulagini odzaza: fastestmirror, malipoti oyambira ma centos | 3.4 kB 00:00 zosintha ma centos | 3.4 kB 00:00 (1/2): centos-base / primary_db | 5.3 MB 00:00 (2/2): masentos-zosintha / primary_db | 9.1 MB 00:00 Kuzindikira magalasi ofulumira kwambiri Palibe maphukusi omwe amadziwika kuti asinthidwe

Uthengawo «Palibe (alipo) phukusi lotchulidwa kuti musinthe» - «Palibe maphukusi omwe amadziwika kuti asinthidwe»Zikusonyeza kuti, polengeza malo osungira zinthu aposachedwa kwambiri omwe timapeza tikakhazikitsa, mapaketi aposachedwa kwambiri adayikidwa.

Zokhudza nkhani ya SELinux ndi firewall

Tifotokoza za nkhaniyi - mozama - pakukhazikitsa ntchito za DNS ndi DHCP, chomwe ndi cholinga chake chachikulu.

Ngati wowerenga aliyense asankha Security Policy panthawi yakukhazikitsa, monga zikuwonetsera mu 06 chifaniziro ya nkhani yofotokoza «CentOS 7 Hypervisor I - Ma network a SMB»Ogwiritsa ntchito kukhazikitsa DNS iyi - seva ya DHCP, ndipo mukuwona kuti simukudziwa momwe mungasinthire SELinux ndi Firewall ya CentOS, tikukulangizani kuti mutsatire izi:

Sinthani fayilo / etc / sysconfig / selinux ndi kusintha SELINUX = kukakamiza ndi SELINUX = kulepheretsa

[miz @ dns ~] # nano / etc / sysconfig / selinux
# Fayiloyi imayang'anira dziko la SELinux pamakina. # SELINUX = itha kutenga chimodzi mwazinthu zitatu izi: # Kukakamiza - SELinux mfundo zachitetezo zikukakamizidwa. # ololera - SELinux amasindikiza machenjezo m'malo mokakamiza. # olumala - Palibe mfundo za SELinux zomwe zimatsitsidwa.
SELINUX = olumala
# SELINUXTYPE = itha kutenga chimodzi mwazinthu zitatu izi: # zolunjika - Njira zomwe zikuyang'aniridwa ndizotetezedwa, # zochepa - Kusinthidwa kwa mfundo zomwe zikulunjikitsidwa. Njira zosankhidwa zokha ndi pr $ # mls - Chitetezo cha Multi Level Security. SELINUXTYPE = yolunjika

Kenako yesani malamulo awa

[miz @ dns ~] # kukhazikitsa 0
[root @ dns ~] # ntchito yoyimitsa moto
Kulunjika ku / bin / systemctl stop firewalld.service

[root @ dns ~] # systemctl thandizani firewalld
Kuchotsa symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Kuchotsa symlink /etc/systemd/system/basic.target.wants/firewalld.service.

Ngati mukugwiritsa ntchito seva ya DNS yoyang'ana pa intaneti, simuyenera kuchita izi, koma konzani bwino nkhani ya SELinux ndi Firewall molondola. Mwawona "Kusintha kwa Seva ndi GNU / Linux, wolemba, a Joel Barrios Dueñas" kapena zolemba za CentOS zokha - Red Hat

Tikhazikitsa BIND - yotchedwa

  • El zolemba /usr/share/doc/bind-9.9.4/ muli zolemba zambiri zomwe tikupangira kuti mufunse musanapite pa intaneti osadziwa kuti, mosavuta komanso m'nyumba mwanu, mutha kupeza zomwe mukufuna

M'magawo ambiri ntchito ya DNS yomwe imayikidwa kudzera phukusi la BIND limatchedwa dzina lake (Tchulani Daemon). Mu CentOS 7 imayikidwa ngati yolumala pokhapokha, malinga ndi lamulo lotsatira, pomwe limanena kuti udindo wake ndi «olumala«, Ndipo kuti dziko ili lidakonzedweratu ndi« wogulitsa »- kukonzekera kwa ogulitsa. Pazolemba, KUMANGA ndi Pulogalamu Yaulere.

Kulowetsa ntchito yotchulidwa

[root @ dns ~] # systemctl dzina lake
● named.service - Berkeley Internet Name Domain (DNS) Yonyamula: yodzaza (/usr/lib/systemd/system/named.service; olumala; kukonzekera kwa ogulitsa: olumalaYogwira: yosagwira (yakufa)

[root @ dns ~] # systemctl yathandiza dzina
Adapanga symlink kuchokera ku /etc/systemd/system/multi-user.target.wants/named.service to /usr/lib/systemd/system/named.service.

[root @ dns ~] # systemctl ayambe kutchulidwa

[root @ dns ~] # systemctl dzina lake
● named.service - Berkeley Internet Name Domain (DNS) Yonyamula: yodzaza (/usr/lib/systemd/system/named.service; yathandiza; kukonzekera kwa ogulitsa: olumala)
   Yogwira: yogwira (kuthamanga) kuyambira Sat 2017-01-28 13:22:38 EST; 5min zapitazo Njira: 1990 ExecStart = / usr / sbin / yotchedwa -u yotchedwa $ OPTIONS (code = exited, status = 0 / SUCCESS) Njira: 1988 ExecStartPre = / bin / bash -c if [! "$ DISABLE_ZONE_CHECKING" == "inde"]; ndiye / usr / sbin / named-checkconf -z /etc/named.conf; china echo "Kuyang'ana mafayilo am'mbali sikulemekezedwa"; fi (code = exited, status = 0 / SUCCESS) Main PID: 1993 (yotchedwa) CGroup: /system.slice/named.service 1993 / usr / sbin / yotchedwa -u yotchedwa Jan 28 13:22:45 dns yotchedwa [1993]: zolakwika (zosatheka kufikirika) zothetsera './NS/IN': 2001: 500: 2f :: f # 53 Jan 28 13:22:47 dns yotchedwa [1993]: error (network unreachable) resolutioning './ DNSKEY / IN ': 2001: 500: 3 :: 42 # 53 Jan 28 13:22:47 dns yotchedwa [1993]: vuto (losatheka kufikika) kuthetsa' ./NS/IN ': 2001: 500: 3 :: 42 # 53 Jan 28 13:22:47 dns yotchedwa [1993]: vuto (losatheka kufikika) kuthetsa './DNSKEY/IN': 2001: 500: 2d :: d # 53 Jan 28 13:22:47 dns otchedwa [1993 ]: vuto (losatheka kufikika) kuthetsa './NS/IN': 2001: 500: 2d :: d # 53 Jan 28 13:22:47 dns yotchedwa [1993]: zolakwika (zosatheka kufikika) zothetsera './DNSKEY/ MU ': 2001: dc3 :: 35 # 53 Jan 28 13:22:47 dns yotchedwa [1993]: cholakwika (chosafikirika) kuthetsa' ./NS/IN ': 2001: dc3 :: 35 # 53 Jan 28 13: 22:47 dns yotchedwa [1993]: vuto (losatheka kufikika) kuthetsa './DNSKEY/IN': 2001: 7fe :: 53 # 53 Jan 28 13:22:47 dns yotchedwa [1993]: error (network unreachable) res olving './NS/IN': 2001: 7fe :: 53 # 53 Jan 28 13:22:48 dns otchedwa [1993]: ma-key-zone-zone: Sangathe kutenga DNSKEY set '.'

[root @ dns ~] # systemctl kukhazikitsanso dzina

[root @ dns ~] # systemctl dzina lake
● named.service - Berkeley Internet Name Domain (DNS) Yonyamula: yodzaza (/usr/lib/systemd/system/named.service; yoyendetsedwa; kukonzekereratu kwa ogulitsa: olumala)
   Yogwira: yogwira (kuthamanga) kuyambira Sat 2017-01-28 13:29:41 EST; 1s zapitazo Njira: 1449 ExecStop = / bin / sh -c / usr / sbin / rndc stop> / dev / null 2> & 1 || / bin / kupha -TERM $ MAINPID (code = exited, status = 0 / SUCCESS) Njira: 1460 ExecStart = / usr / sbin / yotchedwa -u yotchedwa $ OPTIONS (code = exited, status = 0 / SUCCESS) Njira: 1457 ExecStartPre = / bin / bash -c ngati [! "$ DISABLE_ZONE_CHECKING" == "inde"]; ndiye / usr / sbin / named-checkconf -z /etc/named.conf; china echo "Kuyang'ana mafayilo am'mbali sikulemekezeka"; fi (code = exited, status = 0 / SUCCESS) Main PID: 1463 (yotchedwa) CGroup: /system.slice/named.service 1463 / usr / sbin / yotchedwa -u yotchedwa Jan 28 13:29:41 dns yotchedwa [1463]: ma-key-key-zone: fayilo yamakalata yatha ntchito: kuchotsa fayilo ya Jan 28 13: 29: 41 dns yotchedwa [1463]: ma-key-keys-zone: serial serial Jan 2 28 13:29:41 dns wotchedwa [1463]: zone 0.in-addr.arpa/IN: serial serial 0 Jan 28 13:29:41 dns otchedwa [1463]: zone localhost.localdomain / IN: serial serial 0 Jan 28 13:29:41 dns yotchedwa [1463]: zone 1.0.0.127.in-addr.arpa/IN: yolembedwa serial 0 Jan 28 13:29:41 dns yotchedwa [1463]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 .6.ip0.arpa / IN: yodzaza 28 Jan 13 29:41:1463 dns otchedwa [0]: zone localhost / IN: serial serial 28 Jan 13 29 : 41: 1463 dns yotchedwa [28]: madera onse atanyamula Jan 13 29:41:1463 dns otchedwa [28]: kuthamanga Jan 13 29:41:1 dns systemd [XNUMX]: Started Berkeley Internet Name Domain (DNS).

Tikatha kuthandiza ntchitoyi dzina lake ndipo timayamba koyamba, kutulutsa kwa lamuloli systemctl dzina lake akuwonetsa zolakwika. Tikayambitsanso ntchito ili pansipa, dzina lake imapanga mafayilo onse osintha omwe, mwachisawawa, amafunikira kuti agwire bwino ntchito. Chifukwa chake, tikamalamulanso systemctl dzina lake palibe zolakwika zina zomwe zikuwonetsedwa.

  • Wokondedwa, wokwera mtengo, komanso wovuta Reader: ngati mukufuna kudziwa - osachepera- njira yomwe imatsogolera kumapeto kwa dzenje la akalulu, chonde werengani mwatsatanetsatane zotsatira za lamulo lililonse. 😉 Zachidziwikire kuti nkhaniyi idzawoneka yayitali, koma osakana kuti ikupeza kufotokozera komanso kumveketsa bwino.

Timasintha fayilo /etc/named.conf

Ndemanga zambiri za owerenga zimafotokoza -Ine sindimanena izo- Mania omwe amasunga magawo osiyanasiyana a Linux ali nawo, oyika makina osintha makina m'mafoda omwe ali ndi mayina osiyanasiyana kutengera distro. Akunena zowona. Koma kodi ife, ogwiritsa ntchito osavuta omwe amagwiritsa ntchito izi, tingachite chiyani? Sinthani! 😉

Mwa njira, mu FreeBSD, choyerekeza cha UNIX® «Chiyambi», fayilo ili /usr/local/etc/namedb/named.conf; tili ku Debian, kuphatikiza pakugawana mafayilo anayi named.conf, named.conf.options, named.conf.default-zones, and named.conf.local, ili mu foda / etc / kumanga /. Iwo omwe akufuna kudziwa komwe OpenSUSE amawaika, werengani «DNS ndi DHCP potsegukaSUSE 13.2 Harlequin - SME Networks«. Owerenga akunena zoona! 😉

Ndipo monga timachita nthawi zonse: tisanasinthe chilichonse, timasunga fayilo yoyambirira pansi pa dzina lina.

[miz @ dns ~] # cp /etc/named.conf /etc/named.conf. choyambirira

Kuti moyo ukhale wosavuta, m'malo mopanga kiyi TSIG pakusintha kwamphamvu kwa DNS ndi DHCP, timatengera kiyi yemweyo rndc.key Como yoyandama.

[miz @ dns ~] # cp /etc/rndc.key /etc/dhcp.key

[miz @ dns ~] # nano /etc/dhcp.key
chinsinsi cha "dhcp-key" {algorithm hmac-md5; chinsinsi "OI7Vs + TO83L7ghUm2xNVKg =="; };

Kotero kuti dzina lake titha kuwerenga fayilo yomwe yangokopedwa, timasintha gulu la eni ake:

[root @ dns ~] # mizu yolowetsedwa: yotchedwa /etc/dhcp.key [root @ dns ~] # ls -l /etc/rndc.key /etc/dhcp.key -rw-r -----. Muzu 1 wotchedwa 77 Jan 28 16:36 PM /etc/dhcp.key -rw-r -----. Muzu 1 wotchedwa 77 Jan 28 13: 22 /etc/rndc.key

Zambiri zazing'ono ngati zomwe zidachitika kale ndizomwe zingatipangitse misala kuyesa kudziwa, tsopano ... vuto lili kuti ...? ndi ziganizo zina, zomwe sitilemba kulemekeza Wolemekezeka.

Tsopano ngati - potsiriza! - timasintha fayilo /etc/named.conf. Zosintha kapena zowonjezera zomwe tapanga, ponena za zoyambirira, zili mu molimba mtima. Onani bwino momwe zilili zochepa.

[miz @ dns ~] # nano /etc/named.conf
// // named.conf // // Zoperekedwa ndi Red Hat kumanga phukusi kuti ikonze ISC BIND yotchedwa (8) DNS // seva ngati caching yokha nameserver (ngati localhost DNS resolutionver yokha). // // Onani / usr / share / doc / bind * / sampuli / mwachitsanzo otchulidwa mafayilo osintha. //

// Access Control List ikulengeza kuti ndi netiweki ziti zomwe zitha kufunsa
// seva yanga yotchulidwa
mailo acl {
 Zamgululi 127.0.0.0/8;
 Zamgululi 192.168.10.0/24;
};

zosankha {
 // Ndikulengeza kuti daemon yotchulidwayo imamveranso mawonekedwe
 // eth0 yomwe ili ndi IP: 192.168.10.5
    mverani-pa doko 53 {127.0.0.1; 192.168.10.5; };
    mverani-pa-v6 doko 53 {:: 1; }; chikwatu "/ var / named"; dump-file "/var/named/data/cache_dump.db"; zowerengera-fayilo "/var/named/data/named_stats.txt"; fayilo ya memstatistics "/var/named/data/named_mem_stats.txt";

 // Chidziwitso cha otumiza
 // otsogolera {
 // 0.0.0.0;
 // 1.1.1.1;
 //};
    // patsogolo poyamba;

    // Ndimangololeza mafunso ku ACL yanga yolimba
    lolani-kufunsa {mired; }; // Kuti muwone ndi lamulo kukumba kuchokera ku linux.fan axfr // kuchokera ku malo ogwirira ntchito a SysAdmin ndi localhost kokha // Tilibe ma seva a DNS akapolo. Sitikusowa ... mpaka pano.
 lolani-kusamutsa {localhost; 192.168.10.1; };

    / * - Ngati mukukumanga seva ya DNS YOPHUNZITSIRA, musalole kuti zibwererenso. - Ngati mukukumanga seva Yobwezeretsa (yosungira) ya DNS, muyenera kuyambiranso. - Ngati seva yanu ya DNS yobwereza ili ndi adilesi ya IP yapagulu, MUYENERA kuloleza kuwongolera kuti muchepetse mafunso kwa omwe mukugwiritsa ntchito moyenera. Kulephera kutero kudzapangitsa seva yanu kukhala gawo la ziwonetsero zazikulu za DNS zokulitsa. Kukhazikitsa BCP38 mu netiweki yanu kumachepetsa kwambiri kuwomberaku * /
    // Tikufuna seva ya AUTHORITY pa LAN - SME yathu
    kubwereza ayi;

    dnssec-athe inde; kutsimikizika kwa dnssec inde; / * Njira yopita ku ISC DLV key * / bindkeys-file "/etc/named.iscdlv.key"; makiyi-osungidwa-chikwatu "/ var / named / dynamic"; fayilo ya pid "/run/named/named.pid"; gawo-keyfile "/run/named/session.key"; }; kudula {channel default_debug {file "data / named.run"; kulimba kwakukulu; }; }; gawo "." MU {mtundu wolozera; fayilo "yotchedwa.ca"; }; onjezani "/etc/named.rfc1912.zones"; onjezani "/etc/named.root.key";

// Timaphatikizira fungulo la TSIG pakusintha kwamphamvu kwa DNS // ndi DHCP
onjezani "/etc/dhcp.key";

// Chidziwitso cha dzina, mtundu, malo, ndikusintha chilolezo
// ya DNS Records Zones // Zigawo Zonsezi ndi MASTERS
gawo "desdelinux.fan" {
 choyimira mtundu;
 fayilo "yamphamvu / db.fromlinux.fan";
 lolani-kusintha {key key dhcp; };
};

zone "10.168.192.in-addr.arpa" {
 choyimira mtundu;
 fayilo "yamphamvu / db.10.168.192.in-addr.arpa";
 lolani-kusintha {key key dhcp; };
};

Timayang'ana syntax

[root @ dns ~] # yotchedwa-checkconf 
[miz @ dns ~] #

Popeza lamulo ili pamwambali silibweza chilichonse, syntax ndiyabwino. Komabe, ngati titsatira lamulo lomwelo, koma ndi mwayi -z, zotsatira zake zidzakhala:

[miz @ dns ~] # yotchedwa-checkconf -z
zone localhost.localdomain / IN: yonyamula serial 0 zone localhost / IN: yolembedwa serial 0 zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 .ip6. fayilo dynamic / db.fromlinux.fan yalephera: fayilo sinapezeke zone fromlinux.fan/IN: yosanyamulidwa chifukwa cha zolakwika. _default / desdelinux.fan / IN: fayilo sinapezeke zone 0.in-addr.arpa/IN: kutsitsa kuchokera ku master file dynamic / db.1.0.0.127.in-addr.arpa kwalephera: fayilo silinapezeke zone 0 .in-addr.arpa / IN: osakwezedwa chifukwa cha zolakwika. _default / 0.in-addr.arpa / IN: fayilo silikupezeka

Zachidziwikire kuti ndizolakwika zomwe zimachitika chifukwa sitinapange Madera Olembetsera a DNS kudera lathu.

  • Kuti mumve zambiri za lamuloli dzina-checkconf, thamanga munthu wotchedwa-checkconf, musanayang'ane zina zilizonse pa intaneti. Ndikukutsimikizirani kuti ipulumutsa nthawi yabwino.

Timapanga fayilo ya Direct Zone kuchokera ku linux.fan

... osati popanda lingaliro lina poyamba. 😉

Monga template yopanga fayilo ya data yoyendera, titha kutenga /var/named/named.empty, kapena /usr/share/doc/bind-9.9.4/sample/var/named/named.empty. Zonsezi ndizofanana.

[root @ dns ~] # mphaka /var/named/named.empty 
$ TTL 3H @ IN SOA @ rname.invalid. (0; serial 1D; limbikitsani 1H; yesaninso 1W; mutha 3H); osachepera kapena Olakwika nthawi yosungira kuti mukhale NS @ A 127.0.0.1 AAAA :: 1

Nthawi ya moyo - Nthawi yokhala TTL Zolemba za SOA

Tiyeni titenge zolembera kuti tifotokoze TTL - Nthawi yokhala kuchokera pa rejista SOA - Kuyamba kwa Ulamuliro a Master Zone. Ndizosangalatsa kudziwa matanthauzo ake pomwe tifuna kusintha malingaliro awo.

$ TTL: Nthawi ya moyo - Nthawi yokhala moyo za mbiri zonse zomwe zili mufayilo yomwe ikutsatira chilengezochi (koma isanachitike china chilichonse cha $ TTL) ndipo mulibe chilengezo chotsimikiza cha TTL.

chosalekeza: Nambala yowerengera ya Zone. Nthawi iliyonse tikasintha zolemba za DNS m'dera, tiyenera kuwonjezera nambala imeneyo ndi 1, makamaka ngati tili ndi akapolo kapena ma seva ena. Nthawi iliyonse seva yachiwiri kapena yaukapolo ya DNS ikalumikizana ndi seva yake, imafunsa nambala ya serial ya master. Ngati nambala yotsatirayi ya kapolo ndiyotsika, ndiye kuti zidziwitso zachigawo chomwecho pa seva ya akapolo zatha ntchito, ndipo kapoloyo amasintha mayendedwe kuti adzikonzekere yekha.

kulunzanitsa: Imauza seva ya akapolo nthawi yomwe iyenera kuwunika ngati zomwe zafotokozedwazo ndi zatsopano ndi mbuye wawo.

yesetsani: Ngati seva ya master palibe - chifukwa idadwala, tinene - kwa kapoloyo patadutsa nthawi kulunzanitsa, yesetsani Amauza kapoloyo kuti adikire nthawi yayitali asanayese kulankhulanso ndi mbuye wawo.

chimagwira: Ngati kapoloyo sangalumikizane ndi mbuye wake kwakanthawi chimagwira, ndiye ngati ubale wa akapolo - mbuye wawo udasokonekera, ndipo seva ya akapolo silingachitire mwina koma kumaliza gawo lomwe likufunsidwa. Kutha kwa gawo ndi seva ya akapolo a DNS kumatanthauza kuti iyimitsa kuyankha mafunso a DNS okhudzana ndi malowa, chifukwa zomwe zilipo ndizakale kwambiri kuti zisagwire ntchito.

  • Zomwe tafotokozazi zimatiphunzitsa mwanjira zina mosanyamula ndikusungidwa mwanzeru - osazolowereka kwambiri - kuti ngati sitifunikira ma seva a DNS akapolo kuti agwire ntchito ya SME yathu, sitiyigwiritsa ntchito, pokhapokha ngati ili yofunikira kwenikweni. Tiyeni nthawi zonse tiyesere kuchoka pazosavuta kupita kuzovuta.

zochepa: M'masinthidwe asanafike PANGANI 8.2, mbiri yomaliza SOA Ikuwonetsanso Moyo Wosintha - Nthawi yokhazikika yamoyo, ndi Nthawi Yosungira Nthawi Yoyipa - Nthawi yolanda nthawi yoti mukhale ndi moyo kwa Zone. Nthawi ino amatanthauza mayankho onse olakwika omwe a seva yodalirika ya Zone adapereka.

Zolemba file /var/named/dynamic/db.fromlinux.fan

[miz @ dns ~] # nano /var/named/dynamic/db.fromlinux.fan
$ TTL 3H @ MU NKHANI dns.fromlinux.fan. root.dns.kuchokera.fan. (1; serial 1D; limbikitsani 1H; yesani 1W; mutha 3H); osachepera kapena; Nthawi yolanda nthawi yoti mukhale ndi moyo; @Alirezatalischioriginal. @ IN MX 10 makalata. @ IN TXT "KuchokeraLinux, Blog yanu yoperekedwa ku Free Software"; sysadmin MU 192.168.10.1 ad-dc MU A 192.168.10.3 fileserver MU A 192.168.10.4 dns MU proxyweb 192.168.10.5 MU blog ya 192.168.10.6 MU 192.168.10.7 ftpserver MU A mail 192.168.10.8 MU A 192.168.10.9

Timayang'ana /var/named/dynamic/db.fromlinux.fan

[root @ dns ~] # yotchedwa-checkzone kuchokera ku linux.fan / var / named / dynamic / db. fromlinux.fan
zone kuchokera ku linux.fan/IN: yodzaza ndi serial 1 OK

Timapanga fayilo ya Reverse Zone 10.168.192.in-addr.arpa

  • Zolemba za SOA za Zone iyi ndizofanana ndi za Direct Zone osaganizira zolemba za MX..
[miz @ dns ~] # nano /var/named/dynamic/db.10.168.192.in-addr.arpa
$ TTL 3H @ IN SOA dns.fromlinux.fan.png root.dns.kuchokera.fan. (1; serial 1D; limbikitsani 1H; yesani 1W; mutha 3H); osachepera kapena; Nthawi yolanda nthawi yoti mukhale ndi moyo; @Alirezatalischioriginal. ; 1 MU PTR sysadmin.fromlinux.fan. 3 MU PTR ad-dc.fromlinux.fan. 4 PTR fileserver.fromlinux.fan. 5 MWA PTR dns.fromlinux.fan. 6 MU PTR prowebweb.desdelinux.fan. 7 MU PTR blog.desdelinux.fan. 8 MU PTR ftpserver.fromlinux.fan. 9 MU PTR makalata.fromlinux.fan.

[miz @ dns ~] # yotchedwa-checkzone 10.168.192.in-addr.arpa /var/named/dynamic/db.10.168.192.in-addr.arpa 
zone 10.168.192.in-addr.arpa/IN: yodzaza serial 1 OK

Tisanayambitsenso dzina laomwe timayang'ana momwe amasinthira

  • Mpaka titsimikizire kuti mafayilo osinthidwa omwe amatchulidwa, named.conf, ndi mafayilo ake am'deralo sanakonzedwe bwino, tikupangira kuti tisayambitsenso daemon. Ngati tichita izi ndikusintha fayilo yoyendera, tiyenera kuwonjezera nambala ya serial ya 1 zone.
  • Tiyeni tiwone "." kumapeto kwa mayina ndi mayina awo.
[root @ dns ~] # yotchedwa-checkconf 
[miz @ dns ~] # yotchedwa-checkconf -z
zone localhost.localdomain / IN: yonyamula serial 0 zone localhost / IN: yolembedwa serial 0 zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 .ip6.arpa / IN: yodzaza serial 0 zone 1.0.0.127.in-addr.arpa/IN: yodzaza serial 0 zone 0.in-addr.arpa/IN: serial serial 0 zone from linux.fan/IN: serial serial 1 zone 10.168.192.in-addr.arpa/IN: yodzaza serial 1

Zosintha zonse zomwe zasinthidwa pano

Kuti timveke bwino, ndipo ngakhale nkhaniyi imakhala yayitali, timapereka zonse zomwe lamuloli likuchokera dzina-checkconf -zp:

[miz @ dns ~] # yotchedwa-checkconf -zp
zone localhost. .ip0. zone 0.in-addr.arpa/IN: zosankha zingapo 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 zosankha {bindkeys-file "/etc/named.iscdlv.key"; gawo-keyfile "/run/named/session.key"; chikwatu "/ var / named"; dump-file "/var/named/data/cache_dump.db"; mverani-pa doko 6 {0/1.0.0.127; 0/0; }; mverani-pa-v0 doko 1 {:: 10.168.192/1; }; makiyi-osungidwa-chikwatu "/ var / named / dynamic"; fayilo ya memstatistics "/var/named/data/named_mem_stats.txt"; fayilo ya pid "/run/named/named.pid"; zowerengera-fayilo "/var/named/data/named_stats.txt"; dnssec-athe inde; kutsimikizika kwa dnssec inde; kubwereza ayi; lolani-funso {"mired"; }; lolani-kutumiza {53/127.0.0.1; }; }; acl "wotulutsa" {32/192.168.10.5; 32/6; }; kudula {channel "default_debug" {file "data / named.run"; kulimba kwakukulu; }; }; chinsinsi "dhcp-key" {algorithm "hmac-md53"; chinsinsi "OI1Vs + TO128L192.168.10.1ghUm32xNVKg =="; }; gawo "." MU {mtundu wolozera; fayilo "yotchedwa.ca"; }; zone "localhost.localdomain" IN {mtundu mbuye; fayilo "yotchedwa.localhost"; lolani-kusintha {"palibe"; }; }; zone "localhost" IN {mtundu mbuye; fayilo "yotchedwa.localhost"; lolani-kusintha {"palibe"; }; }; zone "127.0.0.0.ip8.arpa" IN {mtundu mbuye; fayilo "yotchedwa.loopback"; lolani-kusintha {"palibe"; }; }; zone "192.168.10.0.in-addr.arpa" IN {mtundu mbuye; fayilo "yotchedwa.loopback"; lolani-kusintha {"palibe"; }; }; zone "24.in-addr.arpa" IN {mtundu mbuye; fayilo "yotchedwa.empty"; lolani-kusintha {"palibe"; }; }; woyendera zone "desdelinux.fan" {type master; fayilo "yamphamvu / db.fromlinux.fan"; lolani kusintha {key "dhcp-key"; }; }; zone "5.in-addr.arpa" {mtundu mbuye; fayilo "yamphamvu / db.7.in-addr.arpa"; lolani kusintha {key "dhcp-key"; }; }; makiyi oyendetsedwa {"." kiyi koyamba-83 August 7 "AwEAAagAIKlVZrpC2Ia1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0gEzahOR + 6W1.0.0.127euxhJhVVLOyQbSEW0O10.168.192gcCjF FVQUTf10.168.192v257fLjwBd3YI8EzrAcQqBGCzh / RStIoO6g7NfnfL9MTJRkxoX bfDaUeVPQuYEhg29NZWAJQ0VnMVDxP / VHL8M / QZxkjf6 / Efucp58gaD X0RS0CXpoY8LsvPVjR0ZSwzz2apAzvN37dlzEheX9ICJBBtuA496G5LQpz W2hOA6hzCTMjJPJ6LbqF68dsV0DoBQzgul1sGIcGOYl9OyQdXfZ7relS Qageu + ipAdTTJ6AsRTAoub3ONGcLmqrAmRLKBP5dfwhYB2N8knNnulq QXA + Uk6ihz6 ="; };
  • Kutsatira njira yosinthira mafayilo a wotchedwa.conf Malinga ndi zosowa zathu ndikuwunika, ndikupanga fayilo iliyonse ndikuyiyang'ana, tikukayikira kuti tidzakumana ndi mavuto akulu. Pamapeto pake timazindikira kuti ndimasewera a anyamata, okhala ndi malingaliro ambiri komanso mawu osokonekera. 😉

Macheke adabweretsanso zotsatira zokhutiritsa, chifukwa chake titha kuyambiranso BIND - dzina lake.

Timayambitsanso omwe adatchulidwayo ndikuwona momwe alili

[root @ dns ~] # systemctl kukhazikitsanso dzina lake.service
[root @ dns ~] # systemctl dzina lake.service

Ngati tikhala ndi vuto lililonse potulutsa lamulo lomaliza, tiyenera kuyambiranso dzina. service ndi kuyambiranso yanu kachirombo. Zolakwazo zikasowa, ntchitoyo idayamba bwino. Kupanda kutero, tiyenera kuwunikiranso mafayilo onse osinthidwa ndikupanga, ndikubwereza ndondomekoyi.

Zotsatira zolondola za udindo ziyenera kukhala:

[root @ dns ~] # systemctl dzina lake.service
● named.service - Berkeley Internet Name Domain (DNS) Yonyamula: yodzaza (/usr/lib/systemd/system/named.service; yoyendetsedwa; kukonzanso kwa ogulitsa: olumala) Yogwira: yogwira (kuthamanga) kuyambira Dzuwa 2017-01-29 10:05:32 EST; 2min 57s zapitazo Njira: 1777 ExecStop = / bin / sh -c / usr / sbin / rndc stop> / dev / null 2> & 1 || / bin / kill -TERM $ MAINPID (code = exited, status = 0 / SUCCESS) Njira: 1788 ExecStart = / usr / sbin / yotchedwa -u yotchedwa $ OPTIONS (code = exited, status = 0 / SUCCESS) Njira: 1786 ExecStartPre = / bin / bash -c ngati [! "$ DISABLE_ZONE_CHECKING" == "inde"]; ndiye / usr / sbin / named-checkconf -z /etc/named.conf; china echo "Kuyang'ana mafayilo am'mbali sikulemekezeka"; fi (code = exited, status = 0 / SUCCESS) Main PID: 1791 (yotchedwa) CGroup: /system.slice/named.service └─1791 / usr / sbin / yotchedwa -u wotchedwa Jan 29 10:05:32 dns amatchedwa [1791]: zone 1.0.0.127.in-addr.arpa/IN: yolembedwa serial 0 Jan 29 10:05:32 dns yotchedwa [1791]: zone 10.168.192.in-addr.arpa/IN: serial serial 1 Jan 29 10:05:32 dns yotchedwa [1791]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN : serial serial 0 Jan 29 10:05:32 dns otchedwa [1791]: zone desdelinux.fan/IN: serial serial 1 Jan 29 10:05:32 dns otchedwa [1791]: zone localhost.localdomain / IN: serial 0 Jan 29 10:05:32 dns otchedwa [1791]: zone localhost / IN: yolembedwa serial 0 Jan 29 10:05:32 dns otchedwa [1791]: mabacteria onse amanyamula
Jan 29 10: 05: 32 dns amatchedwa [1791]: athamanga
Jan 29 10:05:32 dns systemd [1]: Yayamba Berkeley Internet Name Domain (DNS). Jan 29 10:05:32 dns otchedwa [1791]: zone 10.168.192.in-addr.arpa/IN: kutumiza kukudziwitsani (serial 1)

Macheke

Macheke amatha kuyendetsedwa pa seva yomweyo kapena pamakina olumikizidwa ku LAN. Timakonda kuzichita kuchokera mgululi sysadmin.kuchokera.fan komwe tidapereka chilolezo chowonekera kuti ipange Zone Transfers. Fayilo /etc/resolv.conf a gululi ndi awa:

buzz @ sysadmin: ~ $ paka /etc/resolv.conf 
# Yopangidwa ndi NetworkManager kusaka kuchokera ku linux.fan nameserver 192.168.10.5

buzz @ sysadmin: ~ $ dig kuchokera ku linux.fan axfr
; << >> DiG 9.9.5-9 + deb8u1-Debian << >> desdelinux.fan axfr ;; zosankha zapadziko lonse lapansi: + cmd kuchokera ku linux.fan. 10800 MU SOA dns.fromlinux.fan. root.dns.kuchokera.fan. 1 86400 3600 604800 10800 kuchokera ku linux.fan. 10800 mu NS dns.fromlinux.fan. kuchokera ku linux.fan. 10800 MU MX 10 makalata.fromlinux.fan. kuchokera ku linux.fan. 10800 MU TXT "KuchokeraLinux, Blog yanu yoperekedwa ku Free Software" ad-dc.desdelinux.fan. 10800 MU A 192.168.10.3 blog.desdelinux.fan. 10800 MU 192.168.10.7 dns.fromlinux.fan. 10800 MU A 192.168.10.5 fileserver.fromlinux.fan. 10800 MU A 192.168.10.4 ftpserver.fromlinux.fan. 10800 MU A 192.168.10.8 mail.fromlinux.fan. 10800 MU 192.168.10.9 tidzakulowereni.fromlinux.fan. 10800 MU A 192.168.10.6 sysadmin.fromlinux.fan. 10800 KU Mpaka 192.168.10.1 kuchokera ku linux.fan. 10800 MU SOA dns.fromlinux.fan. root.dns.kuchokera.fan. 1 86400 3600 604800 10800 ;; Nthawi yofunsira: 0 msec ;; NTCHITO: 192.168.10.5 # 53 (192.168.10.5) ;; NTHAWI: Sun Jan 29 11:44:18 EST 2017 ;; Kukula kwa XFR: zolemba 13 (mauthenga 1, bytes 385)

buzz @ sysadmin: ~ $ dig 10.168.192.in-addr.arpa axfr
; << >> DiG 9.9.5-9 + deb8u1-Debian << >> 10.168.192.in-addr.arpa axfr ;; zosankha zapadziko lonse lapansi: + cmd 10.168.192.in-addr.arpa. 10800 IN SOA dns.fromlinux.fan.10.168.192.in-addr.arpa. root.dns.fromlinux.fan.10.168.192.in-addr.arpa. 1 86400 3600 604800 10800 10.168.192.in-addr.arpa. 10800 IN NS dns.fromlinux.fan. 1.10.168.192.in-addr.arpa. 10800 Mu PTR sysadmin.fromlinux.fan. 3.10.168.192.in-addr.arpa. 10800 MU PTR ad-dc.fromlinux.fan. 4.10.168.192.in-addr.arpa. 10800 MU PTR fileserver.fromlinux.fan. 5.10.168.192.ku-ddr.arpa. 10800 MU PTR dns.fromlinux.fan. 6.10.168.192.in-addr.arpa. 10800 MU tidzakulowereni pa PTR.fromlinux.fan. 7.10.168.192.in-addr.arpa. 10800 MU PTR blog.desdelinux.fan. Onetsani: 8.10.168.192.in-addr.arpa. 10800 Mu PTR ftpserver.fromlinux.fan.fan. 9.10.168.192.in-addr.arpa. 10800 MU PTR makalata.fromlinux.fan. Onetsani: 10.168.192.in-addr.arpa. 10800 IN SOA dns.fromlinux.fan.10.168.192.in-addr.arpa. root.dns.fromlinux.fan.10.168.192.in-addr.arpa. 1 86400 3600 604800 10800 ;; Nthawi yofunsira: 0 msec ;; NTCHITO: 192.168.10.5 # 53 (192.168.10.5) ;; NTHAWI: Sun Jan 29 11:44:57 EST 2017 ;; Kukula kwa XFR: zolemba 11 (mauthenga 1, byte 352)

buzz @ sysadmin: ~ $ dig IN SOA kuchokera ku linux.fan
buzz @ sysadmin: ~ $ dig IN MX kuchokera ku linux.fan buzz @ sysadmin: ~ $ dig IN TXT kuchokera ku linux.fan
buzz @ sysadmin: ~ $ wolandila dns
dns.fromlinux.fan ili ndi adilesi 192.168.10.5
buzz @ sysadmin: ~ $ wolandila sysadmin
sysadmin.desdelinux.fan ili ndi adilesi 192.168.10.1 ... Ndi ma cheke ena aliwonse omwe timafunikira
  • Pakadali pano, tili ndi maziko a seva ya DNS mu netiweki ya SME. Tikukhulupirira kuti mwasangalala ndi njira yonseyi, yomwe inali yosavuta, sichoncho? 😉

Timakhazikitsa ndikusintha DHCP

[root @ dns ~] # yum kukhazikitsa dhcp
Mapulagini odzaza: fastestmirror, malipoti oyambira ma centos | 3.4 kB 00:00:00 masentimita-zosintha | 3.4 kB 00:00:00 Kutsegula magalasi othamanga kuchokera pamafayilo osungidwa Kuthetsa kudalira -> Kuyesa kugulitsa zochitika ---> Package dhcp.x86_64 12: 4.2.5-42.el7.centos iyenera kukhazikitsidwa -> Kuthetsa kudalira Kuthetsa Kutha Kotsimikizika ================================================= ============================================= =================================== Phukusi Zomangamanga Mtundu Wosungira Kukula =========== ============================================= ============================================= ====================== Kuyika: dhcp x86_64 12: 4.2.5-42.el7.centos-base 511k Transaction Summary ==== ============================================= ============================================= ============================ Ikani Phukusi 1 Kukula kwathunthu: 511k Kukula koyikidwa: 1.4 M Kodi izi ndi zabwino [y / d / N]: y Kutsitsa mapaketi: dhcp-4.2.5-42.el7.centos.x86_64.rpm | 511 kB 00:00:00 Kufufuza kothamangitsa Kuyesa kothamangitsa kuyeserera Kuchita bwino Kuyendetsa Kukhazikitsa: 12: dhcp-4.2.5-42.el7.centos.x86_64 1/1 Kufufuza: 12: dhcp-4.2.5-42. el7.centos.x86_64 1/1 Kuyika: dhcp.x86_64 12: 4.2.5-42.el7.centos Yachita!

[miz @ dns ~] # nano /etc/dhcp/dhcpd.conf
# # Fayilo Yokonza Seva ya DHCP. # onani / usr/share/doc/dhcp*/dhcpd.conf.example # onani dhcpd.conf (5) man page # ddns-update-style-interim; zosintha za ddns pa; ddns -namename "desdelinux.fan."; ddns-rev-domainname "mu-addr.arpa."; samanyalanyaza zosintha zamakasitomala; odalirika; kusankha ip-kutumiza kutali; dzina losankha "desdelinux.fan"; # njira ntp-server 0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, 3.pool.ntp.org; onjezani "/etc/dhcp.key"; zone kuchokera ku linux.fan. {yoyamba 127.0.0.1; fungulo la dhcp; } gawo 10.168.192.in-addr.arpa. {yoyamba 127.0.0.1; fungulo la dhcp; } gawo logawidwa limodzi {subnet 192.168.10.0 netmask 255.255.255.0 {option routers 192.168.10.1; subnet-mask kusankha 255.255.255.0; adilesi yakusankhira 192.168.10.255; dzina -ma seva-dzina 192.168.10.5; njira netbios-name-server 192.168.10.5; osiyanasiyana 192.168.10.30 192.168.10.250; }} # KUMALIZA dhcpd.conf

[miz @ dns ~] # dhcpd -t
Internet Systems Consortium DHCP Server 4.2.5 Copyright 2004-2013 Internet Systems Consortium. Maumwini onse ndi otetezedwa. Kuti mumve zambiri, chonde pitani ku https://www.isc.org/software/dhcp/ Osasanthula LDAP popeza ldap-server, ldap-port ndi ldap-base-dn sizinatchulidwe mu fayilo ya config

[root @ dns ~] # systemctl amathandiza dhcpd
Adapanga symlink kuchokera ku /etc/systemd/system/multi-user.target.wants/dhcpd.service to /usr/lib/systemd/system/dhcpd.service.

[root @ dns ~] # systemctl kuyamba dhcpd

[root @ dns ~] # systemctl udindo dhcpd
● dhcpd.service - DHCPv4 Server Daemon Yodzaza: yodzaza (/usr/lib/systemd/system/dhcpd.service; imathandizira; kukonzedweratu kwa ogulitsa: olumala) Yogwira: yogwira (ikuyenda) kuyambira dom 2017-01-29 12:04:59 IWO T; 23s ago Docs: man: dhcpd (8) man: dhcpd.conf (5) Main PID: 2381 (dhcpd) Udindo: "Kutumiza mapaketi ..." CGroup: /system.slice/dhcpd.service └─2381 / usr / sbin / dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid Jan 29 12:04:59 dns dhcpd [2381]: Internet Systems Consortium DHCP Server 4.2.5 Jan 29 12 : 04: 59 dns dhcpd [2381]: Copyright 2004-2013 Internet Systems Consortium. Jan 29 12:04:59 dns dhcpd [2381]: Ufulu wonse ndi wotetezedwa. Jan 29 12:04:59 dns dhcpd [2381]: Kuti mumve zambiri, chonde pitani ku https://www.isc.org/software/dhcp/ Jan 29 12:04:59 dns dhcpd [2381]: Osasanthula LDAP kuyambira ldap -server, ldap-port ndi ldap-base-dn sanatchulidwe mu fayilo yoyikirako Jan 29 12:04:59 dns dhcpd [2381]: Adalemba ma lease 0 kuti apange renti. Jan 29 12:04:59 dns dhcpd [2381]: Kumvetsera LPF / eth0 / 52: 54: 00: 12: 17: 04 / redlocal Jan 29 12:04:59 dns dhcpd [2381]: Kutumiza pa LPF / eth0 / 52: 54: 00: 12: 17: 04 / redlocal Jan 29 12:04:59 dns dhcpd [2381]: Kutumiza pa Socket / fallback / fallback-net Jan 29 12:04:59 dns systemd [1]: Yayamba DHCPv4 Server Daemon.

Kodi chatsala kuti chichitike ndi chiyani?

Zosavuta. Yambitsani Windows 7 kapena kasitomala wina ndi Free Software ndikuyamba kuyesa ndikuwona. Tidachita ndi makasitomala awiri: alirezatalischi y suse-desktop.fromlinux.fan. Macheke anali motere:

buzz @ sysadmin: ~ $ host seven
seveni.fromlinux.fan ili ndi adilesi 192.168.10.30

buzz @ sysadmin: ~ $ host seven.fromlinux.fan
seveni.fromlinux.fan ili ndi adilesi 192.168.10.30

buzz @ sysadmin: ~ $ dig MU TXT seven.fromlinux.fan
.... ;; CHIGAWO CHAFUNSO :; seven.fromlinux.fan. MU TXT ;; Yankho la gawo: seven.desdelinux.fan. 3600 MU TXT "31b7228ddd3a3b73be2fda9e09e601f3e9"....

Tasintha dzina la "asanu ndi awiri" kukhala "LAGER" ndikuyambiranso. Pambuyo poyambitsanso LAGER yatsopano, timayang'ana:

buzz @ sysadmin: ~ $ host seven
Okhazikitsa asanu ndi awiri sanapezeke: 5 (WAKHALA)

buzz @ sysadmin: ~ $ host seven.fromlinux.fan
Kukhazikitsa seven.desdelinux.fan sikupezeka: 3 (NXDOMAIN)

Buzz@sysadmin: ~ $ wolandila lager
lager.desdelinux.fan ili ndi adilesi 192.168.10.30

Buzz@sysadmin: ~ $ wolandila lager.fromlinux.fan
lager.desdelinux.fan ili ndi adilesi 192.168.10.30

buzz @ sysadmin: ~ $ dig MU TXT lager.fromlinux.fan
.... ;; CHIGAWO CHAFUNSO :; lager.fromlinux.fan. MU TXT ;; Yankho la gawo: lager.fromlinux.fan. 3600 MU TXT "31b7228ddd3a3b73be2fda9e09e601f3e9"....

Ponena za kasitomala wa suse-desktop:

buzz @ sysadmin: ~ $ host suse-dektop
Suse-dektop yakupezeka sapezeka: 5 (YAKHALA)

buzz @ sysadmin: ~ $ host suse-desktop
suse-desktop.desdelinux.fan ili ndi adilesi 192.168.10.33

buzz @ sysadmin: ~ $ host suse-desktop.fromlinux.fan
suse-desktop.desdelinux.fan ili ndi adilesi 192.168.10.33

buzz @ sysadmin: ~ $ host 192.168.10.33
33.10.168.192.in-addr.arpa dzina lapa pointer suse-desktop.desdelinux.fan.

buzz @ sysadmin: ~ $ host 192.168.10.30
30.10.168.192.in-addr.arpa dzina lolozera LAGER.desdelinux.fan.
buzz @ sysadmin: ~ $ kukumba -x 192.168.10.33
.... ;; CHIGAWO CHAFUNSO: 33.10.168.192.in-addr.arpa. MU PTR ;; YANKHO CHIGAWO: 33.10.168.192.in-addr.arpa. 3600 IN PTR suse-desktop.fromlinux.fan. ;; CHIGAWO CHOYENERA: 10.168.192.in-addr.arpa. 10800 IN NS dns.fromlinux.fan. ;; Chigawo chowonjezera: dns.fromlinux.fan. 10800 MU 192.168.10.5 ....

buzz @ sysadmin: ~ $ dig MU TXT suse-desktop.fromlinux.fan ....
; suse-desktop.desdelinux.fan. MU TXT ;; Yankho la gawo: suse-desktop.desdelinux.fan. 3600 MWA NKHANI "31b78d287769160c93e6dca472e9b46d73"

;; CHIGAWO CHABWINO: desdelinux.fan. 10800 IN NS dns.fromlinux.fan. ;; Chigawo chowonjezera: dns.fromlinux.fan. 10800 MU 192.168.10.5
....

Tiyeni tigwiritsenso ntchito malamulo awa

[root @ dns ~] # dig kuchokera ku linux.fan axfr
; << >> DiG 9.9.4-RedHat-9.9.4-29.el7_2.4 << >> desdelinux.fan axfr ;; zosankha zapadziko lonse lapansi: + cmd kuchokera ku linux.fan. 10800 MU SOA dns.fromlinux.fan. root.dns.kuchokera.fan. 6 86400 3600 604800 10800 kuchokera ku linux.fan. 10800 mu NS dns.fromlinux.fan. kuchokera ku linux.fan. 10800 MU MX 10 makalata.fromlinux.fan. kuchokera ku linux.fan. 10800 MU TXT "KuchokeraLinux, Blog yanu yoperekedwa ku Free Software" ad-dc.desdelinux.fan. 10800 MU A 192.168.10.3 blog.desdelinux.fan. 10800 MU 192.168.10.7 dns.fromlinux.fan. 10800 MU A 192.168.10.5 fileserver.fromlinux.fan. 10800 MU A 192.168.10.4 ftpserver.fromlinux.fan. 10800 MU A 192.168.10.8 LAGER.fromlinux.fan. 3600 MU TXT "31b7228ddd3a3b73be2fda9e09e601f3e9"LAGER.fromlinux.fan."   3600 MU 192.168.10.30 mail.fromlinux.fan. 10800 MU 192.168.10.9 tidzakulowereni.fromlinux.fan. 10800 MU A 192.168.10.6 suse-desktop.fromlinux.fan. 3600 MU TXT "31b78d287769160c93e6dca472e9b46d73"suse-desktop.desdelinux.fan. 3600 MU 192.168.10.33 sysadmin.fromlinux.fan. 10800 KU Mpaka 192.168.10.1 kuchokera ku linux.fan. 10800 MU SOA dns.fromlinux.fan. root.dns.kuchokera.fan. 6 86400 3600 604800 10800

Zotulutsa pamwambapa, tidafotokozera molimba mtima ndi Mtengo wa TTL -kamasekondi- kwa makompyuta omwe ali ndi ma adilesi a IP operekedwa ndi DHCP, iwo omwe ali ndi chidziwitso chotsimikiza cha TTL 3600 choperekedwa ndi DHCP. Ma IP osasunthika amatsogoleredwa ndi $ TTL ya 3H -3 maola = 10800 masekondi- adalengezedwa mu mbiri ya SOA ya fayilo iliyonse.

Atha kuyang'ananso zakutsogolo momwemonso.

[miz @ dns ~] # kukumba 10.168.192.in-addr.arpa axfr

Malamulo ena osangalatsa kwambiri ndi awa:

[miz @ dns ~] # yotchedwa-journalprint /var/named/dynamic/db.desdelinux.fan.jnl
[miz @ dns ~] # yotchedwa-journalprint /var/named/dynamic/db.10.168.192.in-addr.arpa.jnl
[miz @ dns ~] # mtolankhani -f

Kusinthidwa kwamanja kwamafayilo a Zigawo

DHCP ikayamba kugwira ntchito yosinthira mafayilo amtundu wa dzina lakeNgati tifunikira kusintha mafayilo am'manja pamanja, tiyenera kuchita izi, koma tisanadziwe zambiri za momwe ntchito imagwirira ntchito rndc pakuwongolera ma seva.

[root @ dns ~] # munthu rndc
....
       amaundana [zone [class [view]]]
           Imani zosintha kudera lamphamvu. Ngati palibe zone yomwe yatchulidwa, ndiye kuti madera onse amayimitsidwa. Izi zimalola kusintha kwamanja kuchitidwa kudera lomwe nthawi zambiri limasinthidwa ndikusintha kwamphamvu. Zimapangitsanso kusintha mu fayilo yamagazini kuti igwirizane ndi fayilo yayikulu. Zoyeserera zonse zamphamvu zidzakanidwa pomwe zone ili yozizira.

       sungunuka [zone [class [view]]]
           Onetsani zosintha mdera lamphamvu lachisanu. Ngati palibe zone yomwe yatchulidwa, ndiye kuti magawo onse achisanu amatha. Izi zimapangitsa kuti seva itsitsenso zone kuchokera pa disk, ndikuthandizanso zosintha zamphamvu pakatha katunduyo. Pambuyo poyimitsa zone, zosintha zamphamvu sizidzakanidwanso. Ngati zone yasintha ndipo njira ya ixfr-kuchokera-kusiyana ikugwiritsidwa ntchito, ndiye kuti fayilo ya magaziniyo idzasinthidwa kuti iwonetse zosintha m'deralo. Kupanda kutero, ngati zone yasintha, fayilo iliyonse yamakalata yomwe ilipo idzachotsedwa. ....

Kodi, mukuganiza kuti ndikulemba buku lonselo? ... chidutswa ndipo amapita pagalimoto. Zina zonse ndikusiyirani inu. 😉

Kwenikweni:

  • rndc amaundana [zone [class [view]]], imayimitsa kusintha kwamphamvu kwa zone. Ngati mmodzi sanatchulidwe, onse adzasungunuka. Lamuloli limalola kusintha kwamanja kwa malo ozizira kapena madera onse. Kusintha kwamphamvu kulikonse kudzakanidwa pomwe kukuzizira.
  • rndc kusungunuka [zone [class [view]]], imathandizira zosintha zamphamvu pamalo omwe kale anali achisanu. Seva ya DNS imatsitsanso fayilo yoyendera kuchokera pa diski, ndipo zosintha zamphamvu zimathandizidwanso kukonzanso kumatha.

Chenjezo lomwe liyenera kutengedwa tikasintha fayilo yoyendera? Zomwezo ngati kuti timazilenga, osayiwala kuwonjezera nambala ya serial ndi 1 kapena chosalekeza musanapulumutse fayilo ndikusintha komaliza.

Chitsanzo:

[root @ dns ~] # rndc amaundana kuchokera ku linux.fan

[miz @ dns ~] # nano /var/named/dynamic/db.fromlinux.fan
Ndikusintha fayilo yoyendera pazifukwa zilizonse, zofunikira kapena ayi. Ndimasunga zosinthazo

[root @ dns ~] # rndc thaw kuchokera ku linux.fan
Kukonzanso malo ndikuyamba kusungunuka kunayambika. Chongani mitengo kuti muwone zotsatira.

[miz @ dns ~] # mtolankhani -f
Jan 29 14:06:46 dns otchedwa [2257]: malo osungunulira 'desdelinux.fan/IN': kupambana
Jan 29 14:06:46 dns otchedwa [2257]: zone kuchokera ku linux.fan/IN: zone serial (6) sinasinthe. zone ikhoza kulephera kusamutsa akapolo.
Jan 29 14:06:46 dns otchedwa [2257]: zone desdelinux.fan/IN: serial serial 6

Zolakwitsa zomwe zidatulutsidwa kale, zomwe zimawonetsedwa mofiyira pa kontrakitala, ndichifukwa chakuti "ndayiwala" kuti ndichulukitse nambala ya 1. Ndikadatsata ndondomekoyi molondola, zotulukazo zikadakhala:

[miz @ dns ~] # mtolankhani -f
- Mitengo imayamba pa Sun 2017-01-29 08:31:32 EST. - Jan 29 14:06:46 dns otchedwa [2257]: zone desdelinux.fan/IN: serial serial 6 Jan 29 14:10:01 dns systemd [1]: Yayamba Gawo 43 la mizu ya ogwiritsa. Jan 29 14:10:01 dns systemd [1]: Kuyambira Gawo 43 la mizu ya ogwiritsa. Jan 29 14: 10: 01 dns CROND [2693]: (mizu) CMD (/ usr / lib64 / sa / sa1 1) Jan 1 29:14:10 dns yotchedwa [45]: analandira control channel command 'freeze from linux. wokonda 'Jan 2257 29:14:10 dns otchedwa [45]: malo ozizira' desdelinux.fan/IN ': kupambana Jan 2257 29:14:10 dns otchedwa [58]: adalandira control channel command' thaw desdelinux.fan 'Jan 2257 29:14:10 dns yotchedwa [58]: thawing zone 'desdelinux.fan/IN': success Jan 2257 29:14:10 dns named [58]: zone desdelinux.fan/IN: file file yatha ntchito: kuchotsa magazini ya Jan 2257 29:14:10 dns otchedwa [58]: zone desdelinux.fan/IN: loaded serial 2257
  • Abwenzi owerenga, ndikubwereza kuti muyenera kuwerenga mosamala zotsatira za malamulowo. Pazinthu zomwe opanga ake adakhala akugwiritsa ntchito kwambiri pulogalamu iliyonse, ngakhale ikhale yosavuta bwanji.

Chidule

Pakadali pano tathana ndi kukhazikitsidwa kwa ma DNS - DHCP awiri, ntchito zofunika komanso zofunikira pakuchita bwino kwa SME Network yathu, ponena za kupatsidwa ma adilesi olimba kudzera mu DHCP ndikuwongolera mayina amakompyuta ndi madera kudzera pa DNS.

Tikukhulupirira kuti mwasangalala ndi machitidwe onse monga tidachitira. Ngakhale zingawoneke zovuta kugwiritsa ntchito kontrakitala, ndizosavuta komanso zamaphunziro kukhazikitsa ntchito ku UNIX® / Linux mothandizidwa.

Amandikhululukira pakumasulira kolakwika kulikonse kwamalingaliro, kupangidwa, kulembedwa, kusinthidwa, kulembedwanso, ndikusindikizidwa mchilankhulo cha Shakespeare, osati Cervantes. 😉

Kutumiza kotsatira

Ndikuganiza chimodzimodzi - ndimaphunziro owonjezera pa zolemba za DNS - koma ku Debian. Sitingathe kuiwala kugawa, sichoncho?


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Ndemanga za 15, siyani anu

Siyani ndemanga yanu

Anu email sati lofalitsidwa. Amafuna minda amalembedwa ndi *

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.

  1.   Christian Merchan anati

    Zikomo kwambiri chifukwa cha ntchito yanu yotamandika yolemba nkhani zopindulitsa. Zikhala zothandiza kwambiri kwa ine

  2.   federico anati

    Ndipo zikomo kwambiri, Cristian, ponditsata ine ndikuwunika kwanu za positiyi. Kupambana!

  3.   Ismael Alvarez Wong anati

    Pambuyo poyang'ana koyamba posachedwa ndi Federico, ukadaulo wabwino womwe udawonedwa mu «PYMES» mndandanda ukuwonekeranso; Kuphatikiza pazambiri zomwe zikuwonetsa madambwe anu pazantchito ziwiri zofunika kwambiri (DNS ndi DHCP) zamtundu uliwonse. Pamwambowu komanso mosiyana ndi ndemanga zanga zam'mbuyomu, ndili ndi ndemanga yachiwiri yomwe ndikuyembekezera nditagwiritsa ntchito zomwe zalembedwa.

  4.   alireza anati

    Palibe ndemanga, pa '400 !!! Fico zikomo chifukwa mukudziwa bwino kuti ndawerenga zolemba zanu ndipo sitingathe kufunsa zina. Mumayamba ndi bungwe labwino kwambiri, kuyambira momwe mungakhazikitsire ndikukhazikitsa zadongosolo la wogwiritsa ntchito, malo ogwirira ntchito ndiye maziko, ndikumvetsetsa kwa ma netiweki omwe mumafotokozera bwino. Mwakhala mukukwera ndipo ngakhale zili zowona kuti mulingo ukuwonjezeka, ndizowona kuti mwalemba ndikusindikiza kwa iwo omwe ndi ochepera kuposa omwe akuyamba, kwa iwo omwe akhala ngati ine kwakanthawi komanso otsogola kwambiri.
    Popita nthawi ndazindikira kuti ndikudziwa kuti ambiri afika kale, chiphunzitsochi, chomwe chimatitengera ndalama zambiri kuti tipeze chifukwa chosafuna kuwerenga, chifukwa kuweruza kumakhala kosavuta tikadziwa zomwe timachita, chifukwa ???, mafunso, komwe angapeze ndi momwe angatulukire cholakwikacho chomwe chimapweteketsa mutu kwambiri pomwe sitikudziwa komwe achokera, ndikuyenera kuchotsedwa ntchito.
    Pachifukwachi, sindingakonde kuti musiyire kumbuyo zinthu zomwe mungapange zokhudza zolemba za DNS mukabuku kotsatira momwe mudalengezera, makamaka pankhani ya DEBIAN wokondedwa ndi wokondedwa.
    Zikomo kwambiri ndipo tikuyembekezera.

  5.   zovuta anati

    Zabwino kwambiri monga kale Fico! Ndikuyembekezera mtundu wa Debian, ndakhala ndikusewera chilichonse ndi distro kwazaka zambiri.

  6.   federico anati

    Wong: Malingaliro anu mukawerenga ndiofunika kwambiri. Ndikudikirira ndemanga zanu mukamayesa zomwe zili, chifukwa ndikudziwa momwemo momwe mumafunira. 😉

  7.   federico anati

    Crespo: Monga nthawi zonse, ndemanga zanu zimalandiridwa bwino. Ndikuwona kuti mwajambula mzere wonse womwe ndakweza popanga mndandandawu. Ndikukhulupirira kuti, monga inu, ambiri azindikira kale. Zikomo chifukwa cha ndemanga yanu.

  8.   federico anati

    Dhunter: Ndibwino kuti ndikuwerengeninso! Simuyenera kudikirira nthawi yayitali. Pofika Lolemba posachedwa-kapena isanathe - zikhala zitatsirizidwa kuti zifalitsidwe. Musaganize kuti ndikosavuta kwa ine kulemba ma distros atatu, koma a Respectable Reader, amafunsa. Osati Debian ndi Ubuntu kokha, koma Zitatu zochokera ku ma SME.

  9.   alireza anati

    Ngati mwafalitsa, ndichifukwa choti mungathe, tikukuthandizani ndipo tikudziwa kuti mudzatsatira izi.
    Monga dhunter, ndikuyembekezera kumasulidwa kwa Debian ndi mano akuthwa. Zingakhale bwino ngati mutafotokoza pang'ono za NTP. Sl2 ndikukumbatira kwakukulu. Ngati aphunzitsi anga akanandiphunzitsa chilichonse monga choncho, HAHAJJA, Platinum Degree, HAHAJJA.

  10.   federico anati

    Mulingo wazambiri pakulamula ndikofunikira kuwonetsa kufunikira kwake. Amanena zambiri. Ndizowona kuti ndizolemba zochepa zomwe zimafotokoza tsatanetsatane wake, chifukwa amaganiza kuti atenga nkhani zazitali komanso zolemera kuti aziwerenga. Ntchito ya SysAdmin ndikuwerenga zotulukapo zolemetsa, osati pakukumana ndi vuto, komanso poyang'anizana ndi macheke.

  11.   Ismael Alvarez Wong anati

    Moni Federico, ndidalonjeza kale, kuti ndilembe ndemanga nditawerenga mosamala positi; Izi ndi izi:
    - Njira yabwino mmalo mopanga kiyi ya TSIG yamphamvu pakusintha kwa DNS ndi DHCP, kukopera kiyi rndc.key ngati dhcp.key, izi zikuwoneka ngati "zosavuta" zikuwonetsa kuti cholinga sichongokhala luso za HOWTO-INSTALL-DNS - & - DHCP koma kutiphunzitsa kuganiza, 5 NYENYEZI KWA WOLEMBA.
    - Zosangalatsa kwambiri mu fayilo yosinthira ya DNS, yotchedwa.conf, kupezeka kwa mzere «kulola-kusamutsa {localhost; 192.168.10.1; }; » kuyesa Domain «desdelinux.fan» kuchokera ku malo ogwirira ntchito a SysAdmin ndi localhost (seva ya DNS yokha), komanso kuyika chinsinsi cha TSIG kuti musinthe DNS kuchokera ku DHCP.
    - Zabwino kwambiri kukhazikitsidwa kwa zigawo zachindunji ndi zosintha za DNS limodzi ndi malongosoledwe "atsatanetsatane" amitundu yawo, kuphatikiza pakupereka kwa lamulo "# wotchedwa-checkconf -zp" kuti awone mawu onse otchulidwa asanachitike kukhazikitsanso molimba, komanso zitsanzo zogwiritsa ntchito lamulo la "dig" kuti muwone mitundu yosiyanasiyana ya ma DNS.
    . Mukusintha kwa DHCP (pogwiritsa ntchito fayilo ya /etc/dhcp/dhcpd.conf):
    - Momwe mungawonjezere netiweki yakomweko ndi mitundu yake ya ma adilesi amtundu wa IP kuti mupatse, tanthauzo la dzina-seva, ndi zina; komanso momwe ungauzire DHCP kuti isinthe zolemba za DNS pogwiritsa ntchito mizere ya "ddns- ..." pakukonzekera kwake.
    . Zonse zikayamba kugwira ntchito, 5 STARS FOR THE WUTHOR, pochita lamulo "# dig desdelinux.fan axfr" kuti muwone TTL yamakompyuta omwe ali pa LAN omwe ali ndi IP static ya iwo omwe ali ndi IP yamphamvu yopatsidwa.
    . Pomaliza, WABWINO, kusinthidwa kwamafayilo am'deralo powaziziritsa koyamba ndi "# rndc freeze desdelinux.fan", kenako ndikupanga kusinthako ndikuwazimitsa ndi "# rndc thaw desdelinux.fan"
    . NDIPONSO ZABWINO KWAMBIRI, ZINTHU ZONSE ZINAKHALITSIDWA KUCHEDWA.
    Pitirizani Fico.

    1.    Joy anati

      moni,
      Ik kom net kijken, malinga ndi kafukufuku wofufuza zomwe zingachititse kuti pakhale vuto lililonse. Ik heb totaal geen control meer over mijn eigen computer on mobiel.
      Het zit m dus ook mu het dns mu dhcp. Ik weet echt niet hoe ik dit moet oplossen en het kan verwijderen. Misschien dat iemand mij akufuna kuthandiza? Dit ndi namelijk buiten mij om geinstalleerd. Walgelijk gedrag vind ik het.

  12.   federico anati

    Wong: ndemanga yanu imakwaniritsa nkhaniyi. Kwambiri, zikuwonetsa kuti mwaphunzira mozama. Kupanda kutero, simukanakhoza kuyankha ndi tsatanetsatane wa zomwe mumachita. Ingowonjezerani lolani-kusamutsa Amagwiritsidwa ntchito makamaka tikakhala ndi DNS Slave ndipo timaloleza kusamutsa magawo kuchokera kwa mbuye mpaka pamenepo. Ndimagwiritsa ntchito njirayi chifukwa ndi njira yosavuta yochitira macheke osakhala owopsa pakompyuta imodzi. Zikomo kwambiri chifukwa cha kuchuluka kwanu 5. Moni! ndipo ndikudikirirani m'nkhani zotsatira.

  13.   @Alirezatalischioriginal anati

    Moni Federico. Ndikudziwa ndachedwa pang'ono, koma ndikufuna ndikufunseni funso.
    Kodi njirayi ingandithandizire ngati ndikufuna kulozera madera anga a vps?

    Mphindi 15 iliyonse ndimalandira mauthenga amtunduwu:

    DHCPREQUEST pa eth0 mpaka doko 67 (xid =…)
    DHCPACK kuchokera (xid =…)
    akuyenera - kukonzanso masekondi 970.

    Ndipo kuchokera pazomwe ndikumvetsetsa ndiyenera kupanga A mbiri ndi dzina langa komanso ip ya seva yanga yodzipereka.

    * Ndikuthokozani ndikuthokozani chifukwa cha nkhaniyi, sindikudziwa ngati ndi zomwe ndimafuna koma ndidaziwona zosangalatsa komanso zolongosoka bwino. Ndilinso ndi malingaliro ochokera ku "DNS ndi BIND" omwe ndakhala ndikunena za iwo pang'ono ndipo zikuwoneka zosangalatsa.

    Moni waku Argentina!

    1.    Antonio valdes toujague anati

      chonde nditumizireni kudzera valdestoujague@yandex.com