DNS me DHCP kei CentOS 7 - SMB Networks

Taupū whanui o te raupapa: Tuihono Rorohiko mo nga SME: Whakataki

Kia ora e hoa !. Ka kite taatau i roto i tenei tuhinga me pehea e taea ai te whakamahi i nga ratonga nui e rua mo nga hononga i hangaia e te DNS me DHCP kei runga i te CentOS - Linux, motuhake i roto i tana putanga 7.2.

  • Ko etahi tuhinga e pa ana ki DNS e kii ana ko te whakatutukitanga o tenei ratonga he pouri, he uaua hoki. Kaore ahau i te tino whakaae ki taua korero. Ka pai ake ahau ki te kii he paku kaupapa tenei me te maha o ona konae whirihora he wetiweti piirangi. Waimarie, he taputapu taatau hei tirotiro, he taahiraa i ia taahiraa, te wetewete o ia konae whirihoranga ka whakarerekehia e maatau. Na reira, ka tarai taatau kia pai te paanui ki tenei panui, kia koa ana ka taea..

Mo te hunga e rapu ana i nga putake o nga ratonga e rua, e tino taunaki ana kia tiimata to rapunga i runga i Wikipedia, i nga waahanga Paniora me nga Ingarihi. Kaore i te iti ake te pono ko nga tuhinga i te reo Ingarihi tata tonu te whakaoti me te honohono. Ano, he pai rawa te tiimata o Wikipedia.

Mo koutou e hiahia ana ki te ako mo te DNS me te BIND, ka tūtohu matou kia panuihia te pukapuka «OReilly - DNS me te BIND 4ed"i tuhia e Paora albitz y Kirikiti Liu, he whakaputanga ranei e whai ake nei.

Kua oti ta maua tuhinga te kaupapa mo te kaupapa «DNS me DHCP i openSUSE 13.2 Harlequin - SME Networks»Mo te hunga e aroha ana ki te taiao whakairoiro. Heoi, mai i tenei wa ka aro atu ratau ki nga tuhinga mo tenei kaupapa -kore mo etahi atu- i tuhia me te whakamahi i te emulator o te taatai ​​whakamarie ranei. Wow, i roto i te momo taera e whakamahia ana e UNIX® / Linux Kaiwhakahaere Whakahaere.

Ki te hiahia koe ki te mohio atu mo te ingoa whakamutunga o te taitara o tenei tuhinga «Whatunga SME»Ka taea e koe te toro atu ki te whaarangi kei roto i tenei blog«Whatunga SME: tapahi mariko tuatahi«. I roto i taua tuhinga ka kitea e koe he hono ki etahi atu tuhinga kua oti te whakaputa.

  • I muri i te whakaurutanga o te punaha Mahi CentOS 7 kua oti me nga kohinga e taunaki ana matou, el whaiaronga /usr/share/doc/bind-9.9.4/ He maha nga tuhinga kei roto e taunaki ana koe kia korero koe i mua i te urunga ki te rapu Ipurangi me te kore e mohio, mai i o ringaringa me tou ake kaainga, ka kitea e koe taau e rapu nei.

Whakauru punaha turanga

Nga korero whanui mo te rohe me te kaituku DNS

Ingoa rohe: desdelinux.fan
Ingoa tūmau DNS: dns.fromlinux.fan
Wāhitau IP: 192.168.10.5
Te kanohi kanohi ki raro: 255.255.255.0

Tāutanga

Ka tiimata taatau me te whakauru maamaa hou ranei o te punaha whakahaere CentOS 7 kia rite ki te korero o te tuhinga o mua «CentOS 7 Kaitohutohu I - SMB Whatunga«. Me whakarereke enei waahanga e whai ake nei:

  • I roto i te 22 image «SELECTION KOREUTU«, Ka tūtohu matou kia kowhiria i te pou maui«Taiao Taiao»Ko te kōwhiringa e pa ana ki te«Tūmau Hanganga«, I te waa e tika ana«Mono mo te Taiao i Whurangihia»Tīpakohia te pouaka taki«Kaiwhakarato ingoa DNS«. Ka whakauruhia e maatau te kaituku DHCP a muri ake nei.
  • Kia mahara tatou ki te whakaaturanga o etahi atu putunga korero e whakaaturia ana i te 23 image, i muri i te whakatakoto i te «NETWORK & TEAM INOA".
  • Ko nga whakaahua e pa ana ki nga waahanga taapiri e hangaia ana e maatau i runga i to maatau pakeke, ka hoatu noa hei kaiarahi. Kia pai ki te kowhiri i nga waahanga wehewehe ki taau ake whakaaro, mahi, me to whakaaro pai.
  • Hei whakamutunga, i roto i te Whakaahua 13 «NETWORK & TEAM INOA»Me whakarereke nga uara kia rite ki nga taapiri whanui o te rohe kua whakaatuhia me te kaituku DNS, me te kore e wareware ki te tohu i te ingoa o te kaitautoko -DNS«- i muri i te otinga o te whirihoranga whatunga. He pai ki te mahi ping -mai tetahi atu kaihauturu- ki te wāhitau IP kua tohua i muri i te hoahoatanga o te whatunga:

DNS me DHCP kei runga i te CentOS

He tino ruarua rawa nga whakarereketanga e tino tika ana kia pa ana ki te tuhinga o mua.

Nga arowhai tuatahi me nga whakatikatika

Whai muri i te whakauru i te punaha whakahaere, me arotake e tatou nga konae e whai ake nei, a, mo tenei ka tiimata taatau waahanga ma te SSH mai i ta maatau rorohiko sysadmin.fromlinux.fan:

buzz @ sysadmin: ~ $ ssh 192.168.10.5
buzz@192.168.10.5 kupuhipa: Takiuru whakamutunga: Mane Hanuere 28 09:48:05 2017 mai i te 192.168.10.1
[buzz @ dns ~] $

Ko te mahi o runga ake pea he roa atu i te waa noa, a ko te mea ke na te mea kaore ano o maatau DNS i te LAN. Tirohia a muri ake kei te mahi te DNS.

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

[buzz @ dns ~] $ ngeru / etc / ingoa ingoa
DNS

[buzz @ dns ~] $ ngeru / etc / sysconfig / tuhinga-tuhi / 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 ~] $ ngeru /etc/resolv.conf 
# Hangaia e te RapuManager rapunga mai i linux.fan nameserver 127.0.0.1

Ko nga whirihoranga matua ka whakautu ki a maatau whiringa. Kia mahara mena kei runga i te kaituku Potae Whero 7 - CentOS 7, kua whirihorahia e te taunoa i te KaiwhakahaereAitua na koinei te tangata e whakahaere ana i nga hononga whatunga, ahakoa he waea, waea koreutu ranei (WiFi), hononga VPN, hononga PPPoE, me etahi atu hononga hononga.

[buzz @ dns ~] $ sudo systemctl mana honohono
[sudo] kupuhipa mo te buzz: ● networkmanager.service Utaina: kaore i kitea (Take: Kaore he konae, he raarangi ranei) Hohe: koretake (kua mate)

[buzz @ dns ~] $ sudo systemctl mana NetworkManager
● NetworkManager.service - Kaiwhakahaere Whatunga i utaina: utaina (/usr/lib/systemd/system/NetworkManager.service; whakahohea; kaihoko tatūkē: whakahohea) Hohe: kaha (rere) mai i te Sat 2017-01-28 12:23:59 EST; 12min i mua PID Matua: 705 (NetworkManager) CGroup: /system.slice/NetworkManager.service └─705 / usr / sbin / NetworkManager --no-daemon

Potae Whero - Ma te CentOS koe e hono me te momotu i nga hononga whatunga ma te whakamahi i nga whakahau tawhito mena e Tuhinga o mua. Kia rere a i runga i te papatohu kaiwhakarato:

[pakiaka @ dns ~] # ifdown eth0
He pai te momotu o te taputapu 'eth0'.

[root @ dns ~] # mena he eth0
I angitu te whakahoahono i te hononga (D-Bus ara kaha: / org / freedesktop / NetworkManager / ActiveConnection / 1)
  • Ka whakaarohia e maatau kaua e whakarereke i nga tautuhinga taunoa e whakaatuhia ana e CentOS 7 KaiwhakahaereAitua.

Ka tino kii maatau i nga waahi ka whakamahia e maatau ka whakahou i te punaha whakahaere mena e tika ana:

[buzz @ dns ~] $ su Kupuhipa: [root @ dns buzz] # cd /etc/yum.repos.d/
[pakiaka @ dns yum.repos.d] # ls -l
katoa 28 -waru-r - r--. 1 pakiaka pakiaka 1664 Dec 9 2015 CentOS-Base.repo -rw-r - r--. 1 pakiaka pakiaka 1309 Dec 9 2015 CentOS-CR.repo -rw-r - r--. 1 pakiaka pakiaka 649 Tihema 9 2015 CentOS-Debuginfo.repo -rw-r - r--. 1 pakiaka pakiaka 290 Dec 9 2015 CentOS-fasttrack.repo -rw-r - r--. 1 pakiaka pakiaka 630 Dec 9 2015 CentOS-Media.repo -rw-r - r--. 1 pakiaka pakiaka 1331 Hakihea 9 2015 CentOS-Pūtake.repo -rw-r - r--. 1 pakiaka pakiaka 1952 Hakihea 9 2015 CentOS-Vault.repo

He pai ki te panui nga korero o nga konae whakapuakanga taketake mai i nga papa tiaki a te CentOS. Ko nga whakarereketanga e mahia ana e matou i konei na te kore o a maatau Ipurangi, me te mahi tahi me nga taapori o te rohe i tangohia mai i te WWW Village, na nga hoa mahi i ngawari ake ai o maatau oranga. 😉

[root @ dns yum.repos.d] # mkdir taketake
[root @ dns yum.repos.d] # mv CentOS- * taketake /

[root @ 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 horoia katoa
Kua utaina nga monomai: tere, whakaeke, horoi i nga putunga: centos-base centos-whakahou Whakapai i nga mea katoa

[root @ dns yum.repos.d] # whakahoutanga
Mono kua utaina: whakaata whakaohooho, pokapu-pokapū pokapū | 3.4 kB 00:00 centos-whakahoutanga | 3.4 kB 00:00 (1/2): centos-base / primary_db | 5.3 MB 00:00 (2/2): centos-whakahoutanga / tuatahi_db | 9.1 MB 00:00 Te whakatau i nga whakaata tere rawa Kaore he putea i tohua hei whakahou

Ko te kupu «Kaore (kei reira) nga kohinga kua tohua hei whakahou» - «Kaore he putea i tohua hei whakahou»E whakaatu ana, ma te whakaatu i nga putunga taonga hou e waatea ana ki a maatau i te wa e whakauru ana, ko nga putea i tino whakauruhia.

Mo te horopaki SELinux me te pātūahi

Ka arotahi tatou ki tenei tuhinga - matua - ki te whakamahi i nga ratonga DNS me te DHCP, koinei te Kaupapa Matua.

Mena kua tohua e tetahi kaipānui tetahi Kaupapahere Haumaru i te wa o te whakauru, pera i te tohu i te 06 image o te tuhinga korero «CentOS 7 Kaitohutohu I - SMB Whatunga»I whakamahia mo te whakauru i tenei DNS - DHCP server, a ka kite koe kaore koe e mohio me pehea te whirihora tika i a SELinux me te Putaahi CentOS, ka kii koe kia whakahaerea enei e whai ake nei:

Whakakētia te konae / etc / sysconfig / selinux me te panoni SELINUX = te whakauru e SELINUX = whakaweto

[root @ dns ~] # nano / etc / sysconfig / selinux
# Ko tenei konae e whakahaere ana i te ahua o SELinux i runga i te punaha. # SELINUX = ka taea te tango i tetahi o enei uara e toru: # uruhi - E whakamanahia ana te kaupapahere haumaru SELinux. # whakaaetanga - Ka taarua e SELinux nga whakatupato kaua ki te uruhi. # monokia - Kaore he kaupapahere SELinux i utaina.
SELINUX = te hauā
# SELINUXTYPE = ka taea te tango i tetahi o nga uara e rua: # whaainga - Ka tiakina nga mahinga whainga, # iti rawa - Te whakarereke kaupapa here kua whaaia Ko nga mahinga kua tohua ko te $ # mls - te ahuru Haumaru Taumata Maha. SELINUXTYPE = whaainga

Na ka whakahaere i nga whakahau e whai ake nei

[root @ dns ~] # huinga 0
[root @ dns ~] # kati pātūahi ratonga
Ko te huringa ki / ipu / systemctl kati i te pātūahi.service

[root @ dns ~] # systemctl mono i te pātūahi
Tangohia te symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Tango symlink /etc/systemd/system/basic.target.wants/firewalld.service.

Mena kei te whakamahi koe i tetahi kaiwhakarato DNS e anga atu ana ki te Ipurangi, kaua e KORE e mahi i runga ake, engari me whirihora tika i te horopaki SELinux me te Pātūahi. Tirohia "Whirihoranga Tūmau me te GNU / Linux, na te kaituhi a Joel Barrios Dueñas" ko nga tuhinga CentOS ano - Potae Whero

Ka whirihorahia e maatau te BIND - kua whakaingoatia

  • El whaiaronga /usr/share/doc/bind-9.9.4/ he maha nga tuhinga e taunaki ana matou me korero i mua i te urunga ki te rapu Ipurangi me te kore e mohio, mai i o ringaringa me tou ake kaainga, ka kitea e koe taau e rapu ana

I roto i nga tohatoha maha ko te ratonga DNS kua whakauruhia mai ma te PAIherehere e kiia ana ingoa (Ingoa Daemon). I roto i te CentOS 7 kua whakauruhia hei taunoa, e ai ki nga putanga o nga whakahau e whai ake nei, e kii ana ko tona mana «hauora«, Na ko tenei ahuatanga kua whakaritea e tana« kaihoko »- tatūkē kaihoko. Mo te rekoata, BIND he Raupaparorohiko Koreutu.

Te whakahohe i te ratonga ingoa

[root @ dns ~] # statusctl mana kua whakaingoatia
● whakaingoa.service - Domain Ingoa Ipurangi Berkeley (DNS) Utaina: utaina (/usr/lib/systemd/system/named.service; hauora; kaihoko tatūkē: hauā) Hohe: koretake (kua mate)

[root @ dns ~] # systemctl whakahohe i tapaina
Symlink i hangaia mai i /etc/systemd/system/multi-user.target.wants/named.service ki /usr/lib/systemd/system/named.service.

[root @ dns ~] # systemctl timatanga ingoa

[root @ dns ~] # statusctl mana kua whakaingoatia
● whakaingoa.service - Domain Ingoa Ipurangi Berkeley (DNS) Utaina: utaina (/usr/lib/systemd/system/named.service; whakahohea; kaihoko tatūkē: hauā)
   Tino: kaha (rere) mai i te Sat 2017-01-28 13:22:38 EST; 5minin i mua Tukanga: 1990 ExecStart = / usr / sbin / ingoa -u ko te $ OPTIONS (code = exited, status = 0 / SUCCESS) Tukanga: 1988 ExecStartPre = / bin / bash -c mena [! "$ DISABLE_ZONE_CHECKING" == "āe"]; ka / usr / sbin / ingoa-haki -z /etc/named.conf; ki te kore echo "Kua tirohia te tirotiro i nga konae rohe"; fi (code = exited, status = 0 / SUCCESS) Matua PID: 1993 (ingoa) CGroup: /system.slice/named.service └─1993 / usr / sbin / ingoa -u ko Jan 28 13:22:45 dns te ingoa [1993]: hapa (whatunga kaore e tae atu) whakatau './NS/IN': 2001: 500: 2f :: f # 53 Hanuere 28 13: 22: 47 kua whakaingoatia te ingoa [1993]: hapa (whatunga kaore e taea te whakatau) whakatau './ DNSKEY / IN ': 2001: 500: 3 :: 42 # 53 Jan 28 13:22:47 dns te ingoa [1993]: hapa (whatunga kaore e taea) te whakatau' ./NS/IN ': 2001: 500: 3 :: 42 # 53 Hanuere 28 13: 22: 47 kua whakaingoatia te ingoa [1993]: hapa (whatunga kaore e taea) te whakatau './DNSKEY/IN': 2001: 500: 2d :: d # 53 Hanuere 28 13:22:47 ]: hapa (whatunga kaore e tae atu) whakatau './NS/IN': 1993: 2001: 500d :: d # 2 Hanuere 53 28: 13: 22 kua whakaingoatia te ingoa [47]: hapa (whatunga kaore e taea te whakatau) whakatau './DNSKEY/ IN ': 1993: dc2001 :: 3 # 35 Jan 53 28:13:22 dns ingoa [47]: hapa (whatunga kaore e taea) te whakatau' ./NS/IN ': 1993: dc2001 :: 3 # 35 Jan 53 28: 13:22 dns te ingoa [47]: hapa (whatunga kaore e tae atu) whakatau ana './DNSKEY/IN': 1993: 2001fe :: 7 # 53 Jan 53 28:13:22 dns te ingoa [47]: hapa (whatunga kaore e tae atu) res olving './NS/IN': 1993: 2001fe :: 7 # 53 Jan 53 28:13:22 dns te ingoa [48]: kua whakahaere-mau-matua-rohe: Kaore e taea te tiki DNSKEY kua whakaritea '.': pau ke

[root @ dns ~] # systemctl whakaara ano i te ingoa

[root @ dns ~] # statusctl mana kua whakaingoatia
● whakaingoa.service - Domain Ingoa Ipurangi Berkeley (DNS) Utaina: utaina (/usr/lib/systemd/system/named.service; whakahohea; tatūkē kaihoko: monokia)
   Tino: kaha (rere) mai i te Sat 2017-01-28 13:29:41 EST; 1s ago Tukanga: 1449 ExecStop = / bin / sh -c / usr / sbin / rndc mutu> / dev / null 2> & 1 || / bin / whakamate -TERM $ MAINPID (code = exited, status = 0 / SUCCESS) Tukanga: 1460 ExecStart = / usr / sbin / ingoa -u ko te $ OPTIONS (waehere = putaatu, tuunga = 0 / angitu) Tukanga: 1457 ExecStartPre = / bin / bash -c mena [! "$ DISABLE_ZONE_CHECKING" == "āe"]; ka / usr / sbin / ingoa-haki -z /etc/named.conf; ki te kore echo "Kua tirohia te tirotiro i nga konae rohe"; fi (code = exited, status = 0 / SUCCESS) Matua PID: 1463 (ingoa) CGroup: /system.slice/named.service └─1463 / usr / sbin / te ingoa -u ko Jan 28 13:29:41 [1463]: Whakahaerehia-Kaha-Rohe: Kua tawhito te konae konae: tango i te konae kohinga Jan 28 13:29:41 dns te ingoa [1463]: kua whakahaere-mau-mau-rohe: kua utaina nga rangatere Jan 2 28 13:29:41 dns ingoa [1463]: rohe 0.in-addr.arpa/IN: utaina rangatū 0 Hanu 28 13:29:41 dns ingoa [1463]: rohe localhost.localdomain / IN: utaina rangatū 0 Hanuere 28 13:29:41 dns ingoa [1463]: rohe 1.0.0.127.in-addr.arpa/IN: utaina rangatū 0 Hanuere 28 13:29:41 dns ko te ingoa [1463]: rohe 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: utaina rangatū 28 Hanuere 13 29:41:1463 dns ingoa [0]: rohe localhost / IN: utaina rangatū 28 Hanuere 13 29 : 41: 1463 dns te ingoa [28]: ko nga rohe katoa i utaina Jan 13 29:41:1463 dns te ingoa [28]: running Jan 13 29:41:1 dns systemd [XNUMX]: Started Berkeley Internet Name Domain (DNS).

I muri ka taea e maatau te ratonga ingoa a ka tiimata mo te wa tuatahi, te putanga o te whakahau mana systemctl ingoa whakaatu hapa. Ka tiimata ano te ratonga i raro ake nei, ka ingoa hanga ana i nga konae whirihoranga katoa, ma te taunoa, e tika ana mo tana mahi tika. No reira, ka mahia ano e matou te whakahau mana systemctl ingoa kaore he hapa e whakaatuhia ana.

  • E te Kaipupuri, te utu nui, me te uaua: ki te hiahia koe ki te rapu -ari ko tehea te ara e tae atu ana ki te pito o te koha rapeti, me ata panui nga putanga taipitopito o ia whakahau. 😉 Ae ra ka ahua roa te tuhinga nei, engari kaua e whakakahore ka hua te whakamarama me te maarama.

Ka whakarerekehia e matou te konae /etc/named.conf

He maha nga korero a te kaipānui e whakaatu ana -Kaore au i te kii- te mania kei roto i nga kaitautoko o nga tohatoha Linux rereke, mo te whakatakoto i nga konae whirihoranga pūnaha ki roto i nga kōpaki me nga ingoa rereke kei i te distro. He tika ta raatau. Engari me aha e maatau, nga kaiwhakamahi ngawari e whakamahi ana i enei tohatoha? Whakarite! 😉

I te ara, i roto i te FreeBSD, UNIX® taakahi «Te Takenga», kei roto te konae /usr/local/etc/namedb/named.conf; i a Debian, hei taapiri ki te wehe ki nga konae e wha ingoa.conf, ingoa.conf.options, ingoa.conf.default-rohe, me te ingoa.conf.local, kei te kōpaki / etc / here /. Ko te hunga e hiahia ana ki te mohio ki te wahi e tuu ai te whare whanui, panuihia «DNS me DHCP i openSUSE 13.2 Harlequin - SME Networks«. He tika nga Kaipanui! 😉

Ka rite ki ta tatou e mahi nei i nga wa katoa: i mua i te whakarereke i tetahi mea, ka tiakina e matou te konae whirihoranga taketake i raro i tetahi atu ingoa.

[root @ dns ~] # cp /etc/named.conf /etc/named.conf.original

Kia maama ai te ora, kaua ki te whakaputa i te ki TSIG mo nga whakahoutanga DNS whakahihiko na DHCP, ka taarua taatau keehi ano rndc.key como dhcp.key.

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

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

Na ko te ingoa ka taea te paanui i te konae ka taarua, ka whakarereke i tana roopu rangatira:

[root @ dns ~] # root chown: ingoa /etc/dhcp.key [root @ dns ~] # ls -l /etc/rndc.key /etc/dhcp.key -rw-r -----. 1 pakiaka ingoa 77 Hanuere 28 16:36 PM /etc/dhcp.key -rw-r -----. 1 pakiaka i tapaina ko 77 Hanuere 28 13:22 /etc/rndc.key

Ko nga korero iti penei i nga korero o mua ko nga mea ka haurangi i a maatau ki te rapu, inaianei ... kei hea te raru ...? me etahi kupu ahua ano, kaore e tuhia e taatau hei whakaute i te Mea Whakahonore.

Mena mena - ka mutu! - ka whakarereke i te konae /etc/named.conf. Ko nga whakarereketanga taapiri ranei kua mahia e maatau, mo te mea taketake, kei roto maia. Tirohia mena te tokoiti.

[root @ dns ~] # nano /etc/named.conf
// // named.conf // // Na Red Hat te kohinga here hei whirihora i te ISC BIND i tapaina te ingoa (8) DNS // hei kaiwhakarato ingoa ingoa (hei kaitautoko DNS localhost anake). // // Tirohia / usr / tohatoha / tuhinga / here * / tauira / hei tauira ko nga konae whirihoranga. //

// Raarangi Mana Whakauru e whakaatu ana ko nga whatunga ka taea te korero
// taku kaituku ingoa
acl ngeru {
 127.0.0.0 / 8;
 192.168.10.0 / 24;
};

kōwhiringa {
 // E kii ana ahau ko te daemon kua whakaingoatia hoki e whakarongo ana mo te hononga
 // eth0 kei a ia te IP: 192.168.10.5
    tauranga whakarongo 53 {127.0.0.1; 192.168.10.5; };
    whakarongo-i-v6 tauranga 53 {:: 1; }; whaiaronga "/ var / ingoa"; putu-konae "/var/named/data/cache_dump.db"; tatauranga-konae "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt";

 // Tuhinga o mua
 // mua {
 // 0.0.0.0;
 // 1.1.1.1;
 //};
    // whakamua tuatahi;

    // Ka whakaae noa ahau ki nga paatai ​​ki taku ACL kapi
    allow-query {mired; }; // Ki te tirotiro me te whakahau keri desdelinux.fan axfr // mai i te mahinga mahi SysAdmin me te localhost anake // Kaore o maatau pononga DNS pononga. Kaore e hiahiatia e maatau ... tae noa ki tenei wa.
 tukua-whakawhiti {localhost; 192.168.10.1; };

    / * - Mena kei te hangaia e koe he kaitoha DNS AUTHORITATIVE, KAUA e whakahoungia te hokinga mai. - Mena kei te hangaia e koe he kaiwhakarato DNS (keteroki) DNS, me whakahohe koe. - Mena he IP IP a to kaiwhakarato recursive, me whakauru e koe te uru ki te whakaiti i nga patai ki o kaiwhakamahi tika. Ki te kore e pena, ka uru to kaiwhakarato ki te whakaeke i te rahi o te whakaeke i te DNS. Ko te whakatinana i te BCP38 ki roto i to whatunga ka tino whakaitihia te papa whakaeke * /
    // Kei te hiahia matou ki tetahi kaituku AUTHORITY mo ta maatau LAN - SME
    recursion kahore;

    dnssec-whakahohe ae; dnssec-whakamanatanga ae; / * Ara ki te matua ISC DLV * / bindkeys-file "/etc/named.iscdlv.key"; whakahaere-mau-matua-whaiaronga "/ var / whakaingoa / hihiri"; pid-file "/run/named/named.pid"; session-keyfile "/run/named/session.key"; }; takiuru {hongere default_debug {konae "raraunga / ingoa.run"; te kaha hihiri; }; }; rohe "." IN {momo tohu; konae "names.ca"; }; whakauruhia "/etc/named.rfc1912.zones"; whakauruhia "/etc/named.root.key";

// Ka whakauruhia e maatau te tohu TSIG mo nga whakahoutanga DNS kaha // na DHCP
whakauruhia "/etc/dhcp.key";

// Whakapuakanga o te ingoa, momo, waahi, me te whakaaetanga whakahou
// o nga Rohe Rekoata DNS // Ko nga Rohe e rua he MURI
rohe "desdelinux.fan" {
 momo rangatira;
 konae "hihiko / db.fromlinux.fan";
 tukua-whakahou {key dhcp-key; };
};

rohe "10.168.192.in-addr.arpa" {
 momo rangatira;
 konae "hihiko / db.10.168.192.in-addr.arpa";
 tukua-whakahou {key dhcp-key; };
};

Ka tirohia e matou te taarua

[root @ dns ~] # ingoa-haki 
[pakiaka @ dns ~] #

I te mea kaore te whakahau i runga ake nei e whakahoki i tetahi mea, kei te pai te wetiweti. Heoi, ki te mahia e taatau taua whakahau, engari me taapiri -z, ko te putanga:

[root @ dns ~] # ingoa-haki -z
rohe localhost.localdomain / IN: utaina rangatū 0 rohe localhost / IN: utaina rangatū 0 rohe 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: utaina rangatū 0 rohe 1.0.0.127.in-addr.arpa/IN: utaina rangatū 0 rohe 0.in-addr.arpa/IN: utaina rangatū 0 rohe mai i linux.fan/IN: utaina mai i te rangatira he hihiri / db.from mai i te linux.fan kua rahua: kaore i kitea he rohe mai i linux.fan/IN: kaore i utaina na nga hapa _default / desdelinux.fan / IN: te konae kaore i kitea te rohe 10.168.192.in-addr.arpa/IN: i utaina mai i te konae konae hihiri / db.10.168.192.in-addr.arpa i rahua: kaore i kitea te rohe 10.168.192 .in-addr.arpa / IN: kaore i utaina na nga hapa. _default / 10.168.192.in-addr.arpa / IN: kaore i kitea te konae

Ae ra he he era i puta mai i te mea kaore ano kia hangahia e maatau nga Rohe Rehitatanga DNS mo ta maatau rohe.

  • Mo etahi atu korero mo te whakahau ingoa-haki, oma tangata te ingoa-checkconf, i mua i te rapu i etahi atu korero i runga i te Ipurangi. He pono taku ki a koe, ka ea te waa.

Ka hangaia e matou te konae Rohe Tika mai i linux.fan

... kaore he waahanga o te ariā i te tuatahi. 😉

Hei tauira hei hanga i te konae raraunga rohe, ka taea e taatau te /var/named/named.empty, ko te /usr/share/doc/bind-9.9.4/sample/var/named/named.empty. He orite nga mea e rua.

[pakiaka @ dns ~] # ngeru /var/named/named.empty 
$ TTL 3H @ IN SOA @ rname.invalid. (0; 1D rangatū; tāmata 1H; ngana anō 1W; pau te 3H); te wa iti, te kino ranei, te wa hei tirotiro i te noho NS @ A 127.0.0.1 AAAA :: 1

Te wa o te ora - Te wa ki te ora TTL Rekoata SOA

Kia mau ki tetahi whakapae whakamaarama ki te TTL - Te wa hei oranga mai te rēhita SOA - Te tiimata o te Mana Tuhinga o mua. He mea pai ki te mohio ki o raatau tikanga mo te wa e hiahia ana matou ki te whakarereke i o raatau uara.

$ TTL: Te wa o te ora - Te wa ki te ora mo nga rekoata katoa kei roto i te konae e whai ana i te whakapuakitanga (engari i mua i tetahi atu panui $ TTL) a kaore he korero TTL marama.

rangatū: Tau rangatū o te rohe Rohe. I nga wa katoa ka whakarereke a ringa i te rekoata DNS ki tetahi rohe, me piki e matou taua nama ki te 1, ina koa he pononga he pononga tuarua, he tuarua ranei taatau. I nga wa katoa ka whakapiri atu te kaitoha DNS tuarua, pononga wahine ranei ki tana kaitoha matua, ka tono ia mo te maha o nga tuhinga a te rangatira. Mena he iti ake te tau rangatahi o te pononga, kaare he tawhito nga korero mo tera rohe i runga i te kaituku pononga, a ka mahia e te pononga te whakawhiti rohe ki te whakahou i a ia ano.

tāmata: Ka korerohia ki te kaitoha pononga te wa waahi kia tirohia mena he mea hou tonu ana korero mo te rangatira.

raupapa: Mena kaore i te waatea te kaitoha matua - na te mea i turoro, me kii - mo te pononga i muri i te waa kua roa tāmata, raupapa Ka korero ki te pononga kia pehea te roa e tatari ana i mua i te ngana ki te whakapiri atu ki tona rangatira.

mutu: Mena kaore e taea e te pononga te whakapiri atu ki tona rangatira mo etahi wa mutu, na mena kua weto te hononga o te rohe pononga-rangatira, ana kaore he whiringa ma te kaiwhakarato pononga me mate noa te rohe e whakahuatia ana. Ko te paunga o te rohe na te kaitoha DNS pononga ka mutu te whakautu ki nga paatai ​​DNS e pa ana ki tera rohe, na te mea he tawhito rawa nga korero e waatea ana hei whai hua.

  • Ko nga korero o runga ake nei e ako tika ana i a tatou me te utaina me te tino mohio - te mea iti noa o te mohio- mena ka kore e hiahiatia he kaitoha DNS pononga mo te whakahaere i a maatau SME, kaore e whakatinanahia, ki te kore e tino hiahiatia. Me ngana tonu ki te haere mai i te ngawari ki te matatini.

minimun: I nga putanga i mua o KAUPAPA 8.2, te rekoata whakamutunga soa He tohu ano hoki mo te oranga Taunoa - Te wa taunoa hei oranga, me te Pakihi Katoa o te Ora - Te wa kino kino mo te nohonoho mo te Rohe. Ko tenei waa e pa ana ki nga whakautu kino katoa i tukuna e te kaituku mana mo te Rohe.

Kōnae Rohenga /var/named/dynamic/db.fromlinux.fan

[root @ dns ~] # nano /var/named/dynamic/db.fromlinux.fan
$ TTL 3H @ IN SOA dns.fromlinux.fan. pakiaka.dns.fromlinux.fan. (1; 1D rangatū; tāmata 1H; ngana anō 1W; pau te 3H); iti rawa ranei; Te wa tirotiro kino kino hei oranga; @ IN NS dns.fromlinux.fan. @ IN MX 10 mēra.fromlinux.fan. @ IN TXT "FromLinux, to Blog i whakatapua ki te Raupaparorohiko Koreutu"; sysadmin IN A 192.168.10.1 ad-dc IN A 192.168.10.3 fileserver IN A 192.168.10.4 dns IN A 192.168.10.5 proxyweb IN A 192.168.10.6 blog IN A 192.168.10.7 ftpserver IN A 192.168.10.8 mail IN A 192.168.10.9

Ka tirohia /var/named/dynamic/db.fromlinux.fan

[root @ dns ~] # ingoa-checkzone mai i linux.fan / var / ingoa / hihiri / db. mai i telinux.fan
rohe mai i linux.fan/IN: kua utaina he rangatū 1 OK

Ka hangaia e matou te konae Reverse Zone 10.168.192.in-addr.arpa

  • Ko nga rekoata SOA o tenei Rohe he orite ki tera o te Rohe Tika kaore e whakaarohia te rekoata MX..
[root @ dns ~] # nano /var/named/dynamic/db.10.168.192.in-addr.arpa
$ TTL 3H @ IN SOA dns.fromlinux.fan. pakiaka.dns.fromlinux.fan. (1; 1D rangatū; tāmata 1H; ngana anō 1W; pau te 3H); iti rawa ranei; Te wa tirotiro kino kino hei oranga; @ IN NS dns.fromlinux.fan. ; 1 IN PTR sysadmin.fromlinux.fan. 3 IN PTR ad-dc.fromlinux.fan. 4 IN PTR fileserver.fromlinux.fan. 5 IN PTR dns.fromlinux.fan. 6 IN PTR takawaenga.desdelinux.fan. 7 IN PTR blog.desdelinux.fan. 8 IN PTR ftpserver.fromlinux.fan. 9 IN PTR mail.fromlinux.fan.

[root @ dns ~] # ingoa-tirotono 10.168.192.in-addr.arpa /var/named/dynamic/db.10.168.192.in-addr.arpa 
rohe 10.168.192.in-addr.arpa/IN: utaina rangatū 1 OK

I mua i te whakaoho ano i te ingoa ka tirohia tana whirihoranga

  • Kia mohio ra ano taatau ko nga konae whirihoranga i tapaina ko te ingoa Mena ka mahi tatou i tenei ka whakarereke i tetahi konae rohe, me whakanui e tatou te tau rangatū o te rohe whakarerekehia kia 1.
  • Kia titiro a ki te "." i te mutunga o nga ingoa rohe me nga ingoa rangatira.
[root @ dns ~] # ingoa-haki 
[root @ dns ~] # ingoa-haki -z
rohe localhost.localdomain / IN: utaina rangatū 0 rohe localhost / IN: utaina rangatū 0 rohe 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: utaina rangatū 0 rohe 1.0.0.127.in-addr.arpa/IN: utaina rangatū 0 rohe 0.in-addr.arpa/IN: utaina rangatū 0 rohe mai i linux.fan/IN: utaina rangatū 1 rohe 10.168.192.in-addr.arpa/IN: utaina rangatū 1

Katoa te whirihoranga ingoa o naianei

Kia marama ake ai, ahakoa kua roa te tuhinga, ka hoatutia e matou te katoa o te whakahau ingoa-haki -zp:

[root @ dns ~] # ingoa-haki -zp
rohe localhost.localdomain / IN: utaina rangatū 0 rohe localhost / IN: utaina rangatū 0 rohe 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: utaina rangatū 0 rohe 1.0.0.127.in-addr.arpa/IN: utaina rangatū 0 rohe 0.in-addr.arpa/IN: utaina rangatū 0 rohe mai i linux.fan/IN: utaina rangatū 1 rohe 10.168.192.in-addr.arpa/IN: utaina rangatū 1 whiringa {bindkeys-file "/etc/named.iscdlv.key"; session-keyfile "/run/named/session.key"; whaiaronga "/ var / ingoa"; putu-konae "/var/named/data/cache_dump.db"; tauranga whakarongo-whakarongo 53 {127.0.0.1/32; 192.168.10.5/32; }; whakarongo-i-v6 tauranga 53 {:: 1/128; }; whakahaere-mau-matua-whaiaronga "/ var / ingoa / hihiri"; memstatistics-file "/var/named/data/named_mem_stats.txt"; pid-file "/run/named/named.pid"; tatauranga-konae "/var/named/data/named_stats.txt"; dnssec-whakahohe ae; dnssec-whakamanatanga ae; recursion kahore; allow-query {"mired"; }; tukua-whakawhiti {192.168.10.1/32; }; }; acl "mired" {127.0.0.0/8; 192.168.10.0/24; }; takiuru {hongere "default_debug" {konae "raraunga / ingoa.run"; te kaha hihiri; }; }; matua "dhcp-key" {algorithm "hmac-md5"; muna "OI7Vs + TO83L7ghUm2xNVKg =="; }; rohe "." IN {momo tohu; konae "names.ca"; }; rohe "localhost.localdomain" IN {momo momo; konae "names.localhost"; allow-update {"none"; }; }; rohe "localhost" IN {momo momo; konae "names.localhost"; allow-update {"none"; }; }; rohe "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 {momo rangatira; konae "names.loopback"; allow-update {"none"; }; }; rohe "1.0.0.127.in-addr.arpa" IN {momo rangatira; konae "names.loopback"; allow-update {"none"; }; }; rohe "0.in-addr.arpa" IN {momo rangatira; konae "names.empty"; allow-update {"none"; }; }; rohe "desdelinux.fan" {momo rangatira; konae "hihiko / db.fromlinux.fan"; allow-update {key "dhcp-key"; }; }; rohe "10.168.192.in-addr.arpa" {momo rangatira; konae "hihiko / db.10.168.192.in-addr.arpa"; allow-update {key "dhcp-key"; }; }; taviri-whakahaere {"." matua tuatahi-257 August 3 "AwEAAagAIKlVZrpC8Ia6gEzahOR + 7W9euxhJhVVLOyQbSEW29O0gcCjF FVQUTf8v6fLjwBd58YI0EzrAcQqBGCzh / RStIoO0g8NfnfL0MTJRkxoX bfDaUeVPQuYEhg2NZWAJQ37VnMVDxP / VHL9M / QZxkjf496 / Efucp5gaD X2RS6CXpoY6LsvPVjR68ZSwzz0apAzvN1dlzEheX9ICJBBtuA7G6LQpz W3hOA5hzCTMjJPJ2LbqF8dsV6DoBQzgul6sGIcGOYl0OyQdXfZ7relS Qageu + ipAdTTJ57AsRTAoub25ONGcLmqrAmRLKBP8dfwhYB1N4knNnulq QXA + Uk7ihz1 ="; };
  • Whai i nga tikanga mo te whakarereke i te ingoa.conf E ai ki o maatau hiahia me te tirotiro, me te hanga i ia konae rohe ka tirotiro, ka ruarua matou ka pa atu ki nga raru whirihoranga nui. I te mutunga ka mohio taatau he taakaro taane ia, he maha nga kaupapa me te wetewete. 😉

Na nga haki i whakahoki nga hua pai, na reira ka taea e taatau te whakaara i te TAI - ingoa.

Ka tiimata ano e maatau nga ingoa ka tirohia tona ahuatanga

[root @ dns ~] # systemctl ka whakaara ano i te ingoa. ratonga
[root @ dns ~] # Tūngai systemctl ingoa. ratonga

Mena ka kitea he hapa i te putanga o te whakahau whakamutunga, me tiimata ano e tatou te whakaingoa.service ka tirotiro ano i to tūnga. Mena kua ngaro nga hapa, ka pai te tiimata o te ratonga. Ki te kore, me arotake marie e tatou nga konae katoa i whakarereke me nga konae i hanga, me whakahoki ano te tikanga

Ko te putanga tika o te mana:

[root @ dns ~] # Tūngai systemctl ingoa. ratonga
● whakaingoa.service - Domain Ingoa Ipurangi Berkeley (DNS) Utaina: utaina (/usr/lib/systemd/system/named.service; whakahohea; tatūkē kaihoko: monokia) Hohe: hohe (rere) mai i te Ra 2017-01-29 10:05:32 EST; 2min 57s ago Tukanga: 1777 ExecStop = / bin / sh -c / usr / sbin / rndc mutu> / dev / null 2> & 1 || / bin / whakamate -TERM $ MAINPID (code = exited, status = 0 / SUCCESS) Tukanga: 1788 ExecStart = / usr / sbin / ingoa -u ko $ OPTIONS (waehere = exited, status = 0 / SUCCESS) Tukanga: 1786 ExecStartPre = / bin / bash -c mena [! "$ DISABLE_ZONE_CHECKING" == "āe"]; ka / usr / sbin / ingoa-haki -z /etc/named.conf; ki te kore echo "Kua tirohia te tirotiro i nga konae rohe"; fi (code = exited, status = 0 / SUCCESS) Matua PID: 1791 (ingoa) CGroup: /system.slice/named.service └─1791 / usr / sbin / ingoa -u ko Jan 29 10:05:32 ingoa [1791]: rohe 1.0.0.127.in-addr.arpa/IN: utaina rangatū 0 Hanuere 29 10:05:32 dns ingoa [1791]: rohe 10.168.192.in-addr.arpa/IN: utaina rangatū 1 Hanuere 29 10:05:32 dns te ingoa [1791]: rohe 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 : utaina rangatū 0 Hanuere 29 10:05:32 dns ingoa [1791]: rohe desdelinux.fan/IN: utaina rangatū 1 Hanuere 29 10:05:32 ingoa ingoa [1791]: rohe localhost.localdomain / IN: utaina rangatū Jan 0 29:10:05 dns ingoa [32]: rohe localhost / IN: utaina rangatū 1791 Hanuere 0 29:10:05 dns ingoa [32]: kua utaina nga rohe katoa
Hanuere 29 10:05:32 dns te ingoa [1791]: rere
Jan 29 10:05:32 dns systemd [1]: I tiimata te Berkeley Ingoa Ingoa Rohe (DNS). Jan 29 10:05:32 dns ingoa [1791]: rohe 10.168.192.in-addr.arpa/IN: te tuku korero (rangatū 1)

Arowhai

Ka taea te whakahaere i nga arowhai i runga i te tuuranga kotahi i runga ranei i te miihini hono ki te LAN. He pai ake ta maatau ki te mahi ma te kapa sysadmin.fromlinux.fan i tukuna e maatau he whakaaetanga ki te whakawhiti Whakawhiti Rohe. Ko te konae /etc/resolv.conf o taua roopu e whai ake nei:

buzz @ sysadmin: ~ $ ngeru /etc/resolv.conf 
# Hangaia e te RapuManager rapunga mai i linux.fan nameserver 192.168.10.5

buzz @ sysadmin: ~ $ keria mai i te linux.fan axfr
; << >> DiG 9.9.5-9 + deb8u1-Debian << >> desdelinux.fan axfr ;; whiringa ao: + cmd mai i linux.fan. 10800 IN SOA dns.fromlinux.fan. pakiaka.dns.fromlinux.fan. 1 86400 3600 604800 10800 mai i linux.fan. 10800 IN NS dns.fromlinux.fan. Tuhinga ka whai mai. 10800 IN MX 10 mēra.fromlinux.fan. Tuhinga ka whai mai. 10800 IN TXT "Mai i Linux, to Blog i whakatapua ki te Raupaparorohiko Koreutu" ad-dc.desdelinux.fan. 10800 IN A 192.168.10.3 blog.desdelinux.fan. 10800 IN A 192.168.10.7 dns.fromlinux.fan. 10800 IN A 192.168.10.5 fileserver.fromlinux.fan. 10800 IN A 192.168.10.4 ftpserver.fromlinux.fan. 10800 IN A 192.168.10.8 mail.fromlinux.fan. 10800 IN A 192.168.10.9 proxyweb.fromlinux.fan. 10800 IN A 192.168.10.6 sysadmin.fromlinux.fan. 10800 IN Ki te 192.168.10.1 mai i linux.fan. 10800 IN SOA dns.fromlinux.fan. pakiaka.dns.fromlinux.fan. 1 86400 3600 604800 10800 ;; Te waa Uiui: 0 msec ;; SERVER: 192.168.10.5 # 53 (192.168.10.5) ;; WHENUA: Ra Ra Hanuere 29 11:44:18 EST 2017 ;; Rahi XFR: 13 rekoata (nga karere 1, paita 385)

buzz @ sysadmin: ~ $ keri 10.168.192.in-addr.arpa axfr
; << >> DiG 9.9.5-9 + deb8u1-Debian << >> 10.168.192.in-addr.arpa axfr ;; nga whiringa o te ao: + 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 IN PTR sysadmin.fromlinux.fan. 3.10.168.192.in-addr.arpa. 10800 IN PTR ad-dc.fromlinux.fan. 4.10.168.192.in-addr.arpa. 10800 IN PTR fileserver.fromlinux.fan. 5.10.168.192.in-addr.arpa. 10800 IN PTR dns.fromlinux.fan. 6.10.168.192.in-addr.arpa. 10800 IN PTR takawaenga.fromlinux.fan. 7.10.168.192.in-addr.arpa. 10800 IN PTR blog.desdelinux.fan. 8.10.168.192.in-addr.arpa. 10800 IN PTR ftpserver.fromlinux.fan. 9.10.168.192.in-addr.arpa. 10800 IN PTR mail.fromlinux.fan. 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 ;; Te waa Uiui: 0 msec ;; SERVER: 192.168.10.5 # 53 (192.168.10.5) ;; WHENUA: Ra Ra Hanuere 29 11:44:57 EST 2017 ;; Rahi XFR: 11 rekoata (karere 1, paita 352)

buzz @ sysadmin: ~ $ keria IN SOA mai i linux.fan
buzz @ sysadmin: ~ $ keri IN MX mai i linux.fan buzz @ sysadmin: ~ $ keria IN TXT mai i linux.fan
buzz @ sysadmin: ~ $ manaaki dns
dns.fromlinux.fan he wahitau 192.168.10.5
buzz @ sysadmin: ~ $ manaaki sysadmin
sysadmin.desdelinux.fan he wahitau 192.168.10.1 ... Me etahi atu arowhai e hiahiatia ana e maatau
  • I tenei wa, kei a maatau te putake mo te kaituku DNS i roto i ta maatau hononga SME. Ko te tumanako i pai ki a koe te katoa o nga whakahaere, i te mea tinowari, nene? 😉

Ka whakauruhia e maatau, ka whirihora hoki i te DHCP

[root @ dns ~] # yum whakauru dhcp
Mono kua utaina: whakaata whakaohooho, pokapu-pokapū pokapū | 3.4 kB 00:00:00 centos-whakahoutanga | 3.4 kB 00:00:00 Kei te uta i nga whakaata whakaata mai i te papaanga kaapuaki Te whakatau i nga whakawhirinaki -> Whakahaerehia te whakamatautau whakawhiti --- kua whakakorea nga Whakaaetanga Whakatau =________________________________________________________ =________________________________________ =________________________________________ Paapene Architecture Putanga Repository Rahi =========== =________________________________________________________ =________________________________________ ==================== Te whakauru: dhcp x86_64 12: 4.2.5-42.el7.centos-base 86k Whakawhitinga Whakawhiti ==== =________________________________________ =________________________________________ =________________________________________________________ 64 Whakauru 12 Katoa Te rahi o te tango: 4.2.5k Rahinga kua whakauruhia: 42 M He pai tenei [y / d / N]: y Te tango i nga kohinga: dhcp-7-511.el1.centos.x511_1.4.rpm | 4.2.5 kB 42:7:86 Whakahaerehia te tirotirohanga Whakahaere Whakatautau Whakawhiti Whakawhiti Whakawhiti angitu Whakahaere Whakawhiti Whakawhiti: 64: dhcp-511-00.el00.centos.x00_12 4.2.5/42 Tirohia: 7: dhcp-86-64 el1.centos.x1_12 4.2.5/42 Kua Whakauruhia: dhcp.x7_86 64: 1-1.el86.centos Kua Oti!

[root @ dns ~] # nano /etc/dhcp/dhcpd.conf
# # DHCP Kōnae Whirihoranga. # tirohia /usr/share/doc/dhcp*/dhcpd.conf.example # tirohia dhcpd.conf (5) tangata whaarangi # ddns-whakahou-momo-waahi; ddns-whakahoutanga i runga i; ddns-domainname "desdelinux.fan."; ddns-rev-domainname "in-addr.arpa."; waihohia nga whakahoutanga-a-kaihoko; mana; kōwhiringa ip-whakamua atu; kōwhiringa ingoa-ingoa "desdelinux.fan"; # kōwhiringa ntp-tūmau 0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, 3.pool.ntp.org; whakauruhia "/etc/dhcp.key"; rohe mai i linux.fan. {tuatahi 127.0.0.1; kī dhcp-kī matua; } rohe 10.168.192.in-addr.arpa. {tuatahi 127.0.0.1; kī dhcp-kī matua; } tohatoha-whatunga hononga {subnet 192.168.10.0 netmask 255.255.255.0 {pouara whiringa 192.168.10.1; kōwhiringa subnet-mask 255.255.255.0; kōwhiringa haapurororaa-wahitau 192.168.10.255; kōwhiringa rohe-ingoa-kaitoha 192.168.10.5; kōwhiringa netbios-ingoa-kaitoha 192.168.10.5; awhe 192.168.10.30 192.168.10.250; }} # MURI dhcpd.conf

[pakiaka @ dns ~] # dhcpd -t
Kaituku Ratonga Ipurangi Kaihoko DHCP Tūmau 4.2.5 Manatārua 2004-2013 Kaituku Ratonga Ipurangi Pūmau te mana. Mo nga korero, tirohia koa https://www.isc.org/software/dhcp/ Kaore e rapu LDAP mai i te kore-ldap-server, ldap-port me ldap-base-dn kaore i tohua i te konae

[root @ dns ~] # systemctl whakahohe i te dhcpd
Hanga symlink mai i /etc/systemd/system/multi-user.target.wants/dhcpd.service ki /usr/lib/systemd/system/dhcpd.service.

[root @ dns ~] # systemctl tiimata dhcpd

[root @ dns ~] # systemctl mana dhcpd
● dhcpd.service - DHCPv4 Server Daemon Loaded: utaina (/usr/lib/systemd/system/dhcpd.service; whakahohea; tatūkē kaihoko: hauā) Hohe: hohe (rere) mai dom 2017-01-29 12:04:59 ITS T; 23s ago Tuhinga: tangata: dhcpd (8) tangata: dhcpd.conf (5) PID Matua: 2381 (dhcpd) Tūnga: "Te tohatoha i nga peeke ..." 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]: Kaiwhakarato Ipurangi Ratonga DHCP Tūmau 4.2.5 Jan 29 12 : 04: 59 dns dhcpd [2381]: Mana pupuri 2004-2013 Kaituku Ratonga Ipurangi. Jan 29 12:04:59 dns dhcpd [2381]: Kua tiakina nga mana katoa. Jan 29 12:04:59 dns dhcpd [2381]: Mo nga korero, tirohia koa https://www.isc.org/software/dhcp/ Jan 29 12:04:59 dns dhcpd [2381]: Kaore e rapu LDAP mai i te ldap -Server, ldap-port and ldap-base-dn kaore i tohua i te konae whirihora Jan 29 12:04:59 dns dhcpd [2381]: Wrote 0 riihi hei riihi i te konae. Hanuere 29 12:04:59 dns dhcpd [2381]: Whakarongo ki te LPF / eth0 / 52: 54: 00: 12: 17: 04 / redlocal Jan 29 12:04:59 dns dhcpd [2381]: Te tuku ki te LPF / eth0 / 52: 54: 00: 12: 17: 04 / redlocal Hanuere 29 12:04:59 dns dhcpd [2381]: Te tuku i runga i te Tuakiri / hokinga / hokinga-net Daemon Tūmau DHCPv29.

Me aha ake?

Māmā. Tīmatahia te Matapihi 7, tetahi atu kaihoko ranei me te Raupaparorohiko Koreutu ka tiimata ki te whakamatautau me te tirotiro. I mahia e matou me nga kaihoko e rua: whitu.fromlinux.fan y suse-desktop.fromlinux.fan. I penei nga arowhai:

buzz @ sysadmin: ~ $ manaaki e whitu
e whitu.fromlinux.fan he wahitau 192.168.10.30

buzz @ sysadmin: ~ $ manaaki e whitu.fromlinux.fan
e whitu.fromlinux.fan he wahitau 192.168.10.30

buzz @ sysadmin: ~ $ keri INTTT e whitu.fromlinux.fan
.... ;; PĀTAI PĀTAI :; e whitu.fromlinux.fan. I TE TXT ;; WĀHANGA PANUI: e whitu.desdelinux.fan. 3600 IN TXT "31b7228ddd3a3b73be2fda9e09e601f3e9"....

Ka whakaingoahia te kapa "whitu" ki "LAGER" ka whakaara ano. I muri i te tiimata o te LAGER hou, ka tirohia:

buzz @ sysadmin: ~ $ manaaki e whitu
Kaihautu e whitu kaore i kitea: 5 (REFUSED)

buzz @ sysadmin: ~ $ manaaki e whitu.fromlinux.fan
Kaihautū e whitu.desdelinux.fan kaore i kitea: 3 (NXDOMAIN)

buzz@sysadmin: ~ $ manaaki takiuru
Kei te lager.desdelinux.fan he wahitau 192.168.10.30

buzz@sysadmin: ~ $ host lager.fromlinux.fan
Kei te lager.desdelinux.fan he wahitau 192.168.10.30

buzz @ sysadmin: ~ $ keri INTTTT lager.fromlinux.fan
.... ;; PĀTAI PĀTAI :; lager.fromlinux.fan. I TE TXT ;; WĀHANGA PANUI: lager.fromlinux.fan. 3600 IN TXT "31b7228ddd3a3b73be2fda9e09e601f3e9"....

Mo te kaihoko-papa-mahi desktop:

buzz @ sysadmin: ~ $ manaaki suse-dektop
Suse-dektop manaaki kaore i kitea: 5 (REFUSED)

buzz @ sysadmin: ~ $ manaaki suse-papamahi
suse-desktop.desdelinux.fan he wahitau 192.168.10.33

buzz @ sysadmin: ~ $ host suse-desktop.fromlinux.fan
suse-desktop.desdelinux.fan he wahitau 192.168.10.33

buzz @ sysadmin: ~ $ manaaki 192.168.10.33
33.10.168.192.in-addr.arpa ingoa ingoa pointer suse-desktop.desdelinux.fan.

buzz @ sysadmin: ~ $ manaaki 192.168.10.30
30.10.168.192.in-addr.arpa ingoa tohu tohu LAGER.desdelinux.fan.
buzz @ sysadmin: ~ $ keri -x 192.168.10.33
.... ;; PĀTAI PĀTAI :; 33.10.168.192.in-addr.arpa. KI TE PTR ;; PANUITANGA HE WOHANGA: 33.10.168.192.in-addr.arpa. 3600 IN PTR suse-desktop.fromlinux.fan. ;; WĀHANGA AUTHORITY: 10.168.192.in-addr.arpa. 10800 IN NS dns.fromlinux.fan. ;; WĀHANGA TAPU: dns.fromlinux.fan. 10800 IN A 192.168.10.5 ....

buzz @ sysadmin: ~ $ dig IN TXT suse-desktop.fromlinux.fan ....
; suse-desktop.desdelinux.fan. I TE TXT ;; PANUITANGA WHAKAUTU: suse-desktop.desdelinux.fan. 3600 IN TXT "31b78d287769160c93e6dca472e9b46d73"

;; WĀHANGA AUTHORITY: desdelinux.fan. 10800 IN NS dns.fromlinux.fan. ;; WĀHANGA TAPU: dns.fromlinux.fan. 10800 IN A 192.168.10.5
....

Me whakahaere hoki nga whakahau e whai ake nei

[pakiaka @ dns ~] # keria mai i te linux.fan axfr
; << >> DiG 9.9.4-RedHat-9.9.4-29.el7_2.4 << >> desdelinux.fan axfr ;; whiringa ao: + cmd mai i linux.fan. 10800 IN SOA dns.fromlinux.fan. pakiaka.dns.fromlinux.fan. 6 86400 3600 604800 10800 mai i linux.fan. 10800 IN NS dns.fromlinux.fan. Tuhinga ka whai mai. 10800 IN MX 10 mēra.fromlinux.fan. Tuhinga ka whai mai. 10800 IN TXT "Mai i Linux, to Blog i whakatapua ki te Raupaparorohiko Koreutu" ad-dc.desdelinux.fan. 10800 IN A 192.168.10.3 blog.desdelinux.fan. 10800 IN A 192.168.10.7 dns.fromlinux.fan. 10800 IN A 192.168.10.5 fileserver.fromlinux.fan. 10800 IN A 192.168.10.4 ftpserver.fromlinux.fan. 10800 IN A 192.168.10.8 LAGER.fromlinux.fan. 3600 IN TXT "31b7228ddd3a3b73be2fda9e09e601f3e9"LAGER.fromlinux.fan.   3600 IN A 192.168.10.30 mail.fromlinux.fan. 10800 IN A 192.168.10.9 proxyweb.fromlinux.fan. 10800 IN A 192.168.10.6 suse-desktop.fromlinux.fan. 3600 IN TXT "31b78d287769160c93e6dca472e9b46d73"suse-desktop.desdelinux.fan. 3600 IN A 192.168.10.33 sysadmin.fromlinux.fan. 10800 IN Ki te 192.168.10.1 mai i linux.fan. 10800 IN SOA dns.fromlinux.fan. pakiaka.dns.fromlinux.fan. 6 86400 3600 604800 10800

I roto i nga whakaputanga o runga ake nei, kua marama taatau maia te TTL -i roto i nga hēkona- mo nga rorohiko me nga wahitau IP i whakawhiwhia e te ratonga DHCP ki era e whakaatu marama ana i te TTL 3600 na DHCP i tuku. Ko nga IP kua whakaritea ka aratakina e te $ TTL o 3H -3 haora = 10800 hēkona- kua panuitia ki te rekoata SOA o ia konae rohe.

Ka taea e raatau te tirotiro i te rohe whakamuri i te ara ano.

[root @ dns ~] # keri 10.168.192.in-addr.arpa axfr

Ko etahi atu whakahau whakahirahira ko:

[root @ dns ~] # ingoa-haangai /var/named/dynamic/db.desdelinux.fan.jnl
[root @ dns ~] # ingoa-haangai /var/named/dynamic/db.10.168.192.in-addr.arpa.jnl
[pakiaka @ dns ~] # journalctl -f

Te whakarereke a-ringa i nga konae Rohe

I muri mai ka uru mai te DHCP ki te whakahou i nga konae rohe o te ingoaMena ka hiahia maatau ki te whakarereke a ringa i tetahi konae rohe, me whakahaere e maatau nga tikanga e whai ake nei, engari kaore i mua i te mohio ki nga korero mo te whakamahinga o te whaipainga Tuhinga o mua mō te mana tūmau ingoa.

[root @ dns ~] # tangata rndc
....
       whakatio [rohe [akomanga [tirohanga]]]
           Taihoa te whakahou ki te rohe hihiri. Mena kaore i te tohua he rohe, kaare e tarewatia nga rohe katoa. Ma tenei ka taea te whakatika a-ringa ki tetahi rohe e whakahoutia ana e te whakahou kaha. Ka waiho ano hei huringa i roto i te konae kauhono ki te hono ki te konae rangatira. Ko nga nganatanga whakahoutanga hihiri katoa ka paopao ka whakatotoka ana te rohe.

       rewa [rohe [karaehe [tirohanga]]]
           Whakahohea nga whakahou ki te rohe hihiri hukapapa. Mena kaore i te tohua he rohe, ka whakahohehia nga rohe hukapapa katoa. Ma tenei ka utaina e te kaituku te rohe mai i te kōpae, ka whakaahei ano i nga whakahou kaha i muri i te utanga o te kawenga. I muri ka rewa te rohe, ka kore e whakakahorehia nga whakahou kaha. Mena kua rereke te rohe ka whakamahia te whiringa ixfr-mai-rereketanga, ka whakahouhia te konaehi me te whakaatu i nga rereketanga o te rohe. Ki te kore, ki te mea kua rereke te rohe, ka tangohia katoahia tetahi konae pukapuka. ....

Ki to whakaaro, ka tuhia e ahau te pukapuka katoa? ... he waahanga ka haere ma te motuka. Ko te toenga ka waiho e ahau ki a koe. 😉

Tino:

  • rndc whakatio [rohe [akomanga [tirohanga]]], ka whakamutua te whakahoutanga hihiko o tetahi rohe. Mena kaore i te tohuhia, ka hukapapa katoa. Ma te whakahau e ahei te whakatika a-ringa o te rohe whakatotoka, o nga rohe katoa ranei. Tetahi whakahoutanga hihiri ka whakakahoretia i te wa e whakatotoka ana.
  • rndc rewa [rohe [akomanga [tirohanga]]], taea ai nga whakahou kaha i runga i te rohe hukapapa o mua. Ka whakaweto e te kaituku DNS te konae rohe mai i te kopae, ka whakahouhia ano nga whakahoutanga kaha i muri i te otinga o te utaina ano.

Kia tūpato ina whakatika ā-ringa i tetahi konae rohe? He rite ano ki te mea kei te hangaia e maatau, me te kore e wareware ki te whakapiki i te tau rangatahi ma te 1 ranei rangatū i mua i te penapena i te konae me nga panoni whakamutunga.

Hei tauira:

[pakiaka @ dns ~] # whakatio tio mai i linux.fan

[root @ dns ~] # nano /var/named/dynamic/db.fromlinux.fan
Ka whakarerekehia e au te konae rohe ahakoa he aha, e tika ana kaore ranei. Ka penapenahia e au nga panoni

[root @ dns ~] # rndc rewa mai i linux.fan
I tiimata ano te rekoata me te rewa. Tirohia nga rakau hei kite i te mutunga.

[pakiaka @ dns ~] # journalctl -f
Jan 29 14:06:46 dns ingoa [2257]: rohe rewa 'desdelinux.fan/IN': angitu
Jan 29 14:06:46 dns te ingoa [2257]: rohe mai i linux.fan/IN: rohe rangatū (6) kaore i whakarereke. ka kore pea te rohe e whakawhiti ki nga pononga.
Jan 29 14:06:46 dns ingoa [2257]: rohe desdelinux.fan/IN: utaina rangatū 6

Ko te he o te putanga o mua, e whakaatuhia ana i te whero i runga i te papatohu, na te mea i "wareware" ahau ki te whakapiki i te tau rangatahi ma te 1. Mena i whai tika au i te tikanga, ko te putanga:

[pakiaka @ dns ~] # journalctl -f
- Ka tiimata nga rakau i te Ra 2017-01-29 08:31:32 EST. - Hanuere 29 14:06:46 dns ingoa [2257]: rohe desdelinux.fan/IN: utaina rangatū 6 Hanuere 29 14:10:01 dns systemd [1]: I tiimata te Wahanga 43 o te pakiaka kaiwhakamahi. Jan 29 14:10:01 dns systemd [1]: Timata Wahanga 43 o te pakiaka kaiwhakamahi. Jan 29 14:10:01 dn CROND [2693]: (pakiaka) CMD (/ usr / lib64 / sa / sa1 1 1) Hanuere 29 14:10:45 dns te ingoa [2257]: i whakawhiwhia ki te whakahau a te hongere te mana 'whakatio mai i linux. fan 'Jan 29 14:10:45 dns te ingoa [2257]: rohe whakatio' desdelinux.fan/IN ': angitu Jan 29 14:10:58 dns te ingoa [2257]: riro mana whakahauanga hongere' thaw desdelinux.fan 'Jan 29 14:10:58 ingoa ingoa [2257]: rohe rewa 'desdelinux.fan/IN': angitu Ian 29 14:10:58 ingoa ingoa [2257]: rohe desdelinux.fan/IN: kua tawhito te konae pukapuka: te tango i te konae konae Jan 29 14:10:58 dns te ingoa [2257]: rohe desdelinux.fan/IN: utaina rangatū 7
  • E nga hoa paanui, ka kii ano ahau me ata panui e koe nga putanga whakahau. Mo tetahi mea kua whakapau kaha nga kaihoahoa ki te whakahou i ia kaupapa whakahau, ahakoa pehea te ngawari.

Whakarāpopoto

I tenei wa kua korerohia e matou te whakatinanatanga o te DNS - DHCP takirua, ratonga nui whakahirahira mo te pai o te mahi a te Whatunga SME, e pa ana ki te whakawhiwhi i nga wahitau hihiri ma te DHCP me te whakatau i nga ingoa rorohiko me nga ingoa rohe ma te DNS.

Ko te tumanako ka pai ki a koe te pai ki a koe i nga whakahaere katoa penei i a maatau. Ahakoa he uaua ake pea te whakamahi i te papatohu, he maamaa ake me te maatauranga ki te whakamahi i tetahi ratonga ki UNIX® / Linux me tana awhina.

Ka murua e raatau taku pohehe mo nga whakamaaramatanga pohehe o nga ariā i whakaarohia, i hangaia, i tuhia, i whakahouhia, i tuhia ano, i whakaputaina i te reo o Shakespeare, ehara i nga Cervantes. 😉

Te tuku ā muri ake

Ki taku whakaaro he iti ake nei - me nga taapiri taapiri ki nga rekoata DNS - engari ki a Debian. Kaore e taea te wareware i taua tohatoha, tika?


Ko nga korero o te tuhinga e piri ana ki o maatau kaupapa o matatika whakatika. Ki te ripoata i tetahi paatene paato Here.

15 korero, waiho maau

Waiho to korero

Ka kore e whakaputaina tō wāhitau īmēra. Kua tohua ngā āpure e hiahiatia ana ki *

*

*

  1. He kawenga mo nga raraunga: Miguel Ángel Gatón
  2. Te kaupapa o te raraunga: Whakahaerehia te SPAM, te whakahaere korero.
  3. Ture: To whakaae
  4. Whakawhitinga korero: Kaore nga korero e tukuna ki nga taha tuatoru engari ma te ture herenga.
  5. Rokiroki raraunga: Paetukutuku e whakahaerehia ana e Occentus Networks (EU)
  6. Tika: I nga wa katoa ka taea e koe te whakaiti, te whakaora me te muku i o korero.

  1.   Cristian Merchan ka mea

    Ka nui te mihi ki a koe mo o mahi whakamoemiti i te tuhi i nga tuhinga whai hua. Ka nui te painga ki ahau

  2.   kaikaiwhenua ka mea

    Ka nui te mihi ki a koe, Cristian, mo to whai i ahau me to aromatawai i tenei pou. Angitu!

  3.   Ismael Alvarez Wong ka mea

    I muri i tana tirohanga tuatahi ki tenei pou hou a Federico, kua kitea te ngaiotanga nui puta noa i te raupapa «PYMES»; hei taapiri atu ki nga korero taapiri e whakaatu ana i to rohe i runga i nga ratonga nui e rua (DNS me DHCP) o tetahi whatunga. I tenei waa kaore ano i rite ki aku korero o mua, he korero tuarua kei te tatari i muri i taku whakatinana i nga korero o tenei pou.

  4.   Crespo88 ka mea

    Kaore he korero, pa '400 !!! E mihi atu ana ki a Fico na te mea kua tino mohio koe kua panuihia e au o pou kaore e taea e taatau te tono atu. Ka tiimata koe me tetahi whakahaere tino pai, mai i te whakauru me te whakarite i te papamahi a te kaiwhakamahi, ko te papamahi te turanga, ko te ahua o era ratonga whatunga e tino marama ana koe. Kei te piki koe na ahakoa he pono kei te piki haere te taumata, he pono kua tuhi koe ka whakaputa hoki mo te hunga he iti ake i te hunga e tiimata ana, mo era kua rite ki ahau mo etahi wa roa mo nga mea tino mohio hoki.
    Ka haere te wa kua tae ake taku whakatau e mohio ana ahau kua tae mai nga tini, te kaupapa, he utu nui ki a tatou ki te hoko mo te mea ngawari kaore e hiahia ki te panui, na te mea he maamaa ake te whakahaere ka mohio ana taatau e mahi nei, he aha te take ???, nga patai, kei hea te rapu me pehea te puta i te hapa e tino mamae ana te upoko, kaore hoki tatou e mohio no hea ratou, he nui te utu.
    Mo tenei take, kaore ahau e pai kia waiho e koe era waahanga kaupapa ka uru atu ai koe ki nga rekoata DNS i roto i te panui ka whai ake nei i te mea kua panuihia e koe, he iti ake te korero mo te DEBIAN e arohaina ana
    NGA MAHI KATOA me te tatari ano matou.

  5.   Pūoro ka mea

    Tino pai rite tonu Fico! Kei te tatari ahau mo te putanga Debian, kua maha nga tau e purei ana ahau i taua mea katoa ki taua distro.

  6.   kaikaiwhenua ka mea

    Wong: Ko to whakaaro i muri o te panui he nui te utu. Kei te tatari au mo o korero ka whakamatauhia e koe te kaupapa, na te mea e mohio ana ahau he pai tena ki a koe. 😉

  7.   kaikaiwhenua ka mea

    Crespo: Pea i nga wa katoa, he pai te manako ki o korero. Kei te kite ahau kua mau i a koe te raina whanui i whakaarahia ake e au mo te tuhinga o te tuhinga. Ko te tumanako ka rite ki a koe, he maha kua kite. Mauruuru mo o korero.

  8.   kaikaiwhenua ka mea

    Dhunter: He pai ki te panui ano i a koe! Kaore koe e tatari roa. Ka tae ki te Mane te mea hou rawa -pe i mua- ka oti mo te whakaputa. Kaua e whakaaro he mea ngawari ki ahau te uhi i nga kopae rereke e toru, engari ma te Kaipakitaki Whakaute e tono. Ehara ko Debian me Ubuntu anake, engari ko nga Mea e toru ki nga SME.

  9.   Crespo88 ka mea

    Mena kua whakaputahia e koe, na te mea ka taea e koe, ka tautoko matou i a koe, ka mohio matou ka whai koe i taua raina.
    Ka rite ki te kaiparau, kei te tumanako ahau ki te tukuna a Debian me nga niho koi. He mea pai mena ka hipokina e koe mo te NTP. Sl2 me te awhi nui. Mena i akohia au e aku kaiako ki nga mea katoa penei, HAHAJJA, Tiwhikete Platinum, HAHAJJA.

  10.   kaikaiwhenua ka mea

    Ko te taumata taipitopito o nga putanga whakahau e tika ana hei whakaatu i tona hiranga. He nui ta ratou korero. He pono he paku noa nga tuhinga e pa ana ki tenei taumata taipitopito, na te mea ki a ratau ka roa ake, me nga tuhinga taumaha hoki ki te panui. Ana, ko tetahi waahanga o te mahi a SysAdmin ko te panui i nga putanga taumaha me te taipitopito, kaore i te aroaro o te raru, engari i te aroaro o nga arowhai.

  11.   Ismael Alvarez Wong ka mea

    Kia ora Federico, i oati ahau i mua, ki te tuhi i etahi korero i muri i te ata tirotiro i te pou e paatai ​​ana; Ana, anei raatau ka whai ake:
    - He tikanga pai hei utu mo te whakaputa i te kī TSIG mo nga whakahoutanga DNS hihiko na DHCP, me te kape i te matua rndc.key rite dhcp.key, ko tenei "tino ngawari" e whakaatu ana ko te whaainga ehara i te mea hangarau noa iho. o te HOWTO-INSTALL-DNS - & - DHCP engari e ako ana kia whakaarohia, E 5 NGARU MO TE KAIWHAKI.
    - He tino pai ki te konae whirihoranga DNS, names.conf, te aroaro o te raina «allow-transfer {localhost; 192.168.10.1; }; » hei whakamatautau i te Rohe «desdelinux.fan» mai i te raumahi mahi SysAdmin me te localhost (te kaiwhakarato DNS ake), me te whakauru ano i te ki TSIG hei whakahou i te DNS mai i te DHCP.
    - He pai rawa te hanga o nga rohe tika me te porowini o te DNS me te whakamaarama "taipitopito" mo a raatau momo rekoata, hei taapiri ki te whakahaere i te whakahau "# ingoa-checkconf -zp" ki te tirotiro i nga wetereo katoa o te ingoa i mua atu o ona tautuhi pakeke, tae atu ki nga tauira o te whakahaere i te whakahau "keri" ki te manatoko i nga momo rekoata DNS.
    . I roto i te whirihoranga DHCP (ma te whakamahi i te /etc/dhcp/dhcpd.conf file):
    - Me pehea te taapiri i ta maatau whatunga rohe me tana awhe mo nga wahitau IP hihiri hei toha atu, te whakamaarama o te ingoa-kaitoha, aha atu; me pehea hoki te korero ki te DHCP ki te whakahou i nga rekoata DNS ma te whakamahi i nga raina "ddns- ..." i roto i tana whirihoranga.
    . Ka oti ana te mahi nga mea katoa, E 5 NGARU MO TE AUTHOR, i te mahinga o te whakahau "# dig desdelinux.fan axfr" ki te tirotiro i te TTL o nga rorohiko kei runga i te LAN e whai IP pateko ana mo te hunga IP kaha kua tohaina.
    . Hei whakamutunga, NUI, te whakarereketanga a-ringa o nga konae Rohe ma te paari i a raatau ki te "# rndc freeze desdelinux.fan", katahi ka whakarerekehia ka mutu ka whakaweto i a raatau ki te "# rndc thaw desdelinux.fan"
    . ME TE MEA PAI, NGA MEA KATOA I MAHI MAI I TE TERMINAL.
    Kia mau tonu Fico.

    1.    koa ka mea

      Hello,
      Ka taea e koe te whakamahi i enei mea katoa i runga i te kaupapa nui o te rorohiko mo te rorohiko. Ka taea e ahau te tohu i te mana whakahaere mo te rorohiko rorohiko i runga i a mobiel.
      Het zit m dus ook in het dns in dhcp. Ik weet echt niet hoe ik dit moet oplossen en het kan verwijderen. Misschien dat iemand mij ka awhina koe? Dit is namelijk buiten mij om geinstalleerd. Walgelijk gedrag vind ik het.

  12.   kaikaiwhenua ka mea

    Wong: ko o korero te awhina i te tuhinga. Te mea nui, e whakaatu ana kua tino tirohia e koe. Ki te kore, kaore e taea e koe te korero me te taumata taipitopito e mahi ana koe. Me taapiri noa iho tukua-whakawhiti Ka whakamahia noa mo te wa he pononga to DNS ka tukuna e maatau te whakawhiti i nga rohe mai i te rangatira ki a ia. He penei taku whakamahi na te mea he mahi ngawari ki te whakamahi hei mahi arowhai kino mai i te rorohiko kotahi. Ka nui te mihi ki a koe mo to arotake i te 5. Tena koutou! a ka tatari tonu ahau ki a koe i roto i aku tuhinga ka whai ake.

  13.   IgnacioM ka mea

    Kia ora Federico. Kei te mohio ahau kua roa ahau, engari kei te patai atu ahau ki a koe.
    Ma tenei tikanga e awhina ahau ki te hiahia ahau ki te tohu rohe ki taku kaitoha vps?

    Ia 15 meneti ka whiwhi au i enei korero a te punaha:

    DHCPREQUEST i runga i te eth0 ki te tauranga 67 (xid =…)
    DHCPACK mai i (xid =…)
    kua herea ki - whakahoutanga i te 970 hēkona.

    Na te mea e maarama ana ahau me hanga e au he rekoata A me taku rohe me te ip o taku kaituku kua whakatapua.

    * Kei te mihi au, kei te mihi ki a koe mo tenei tuhinga, kaore au i te mohio mena koinei taku e rapu ana engari he tino pai ahau me te tino whakamarama. Hei taapiri ka tango ahau i te taunakitanga o "DNS me te TAI" kua roa ahau e kohukohu ana, me te mea nei he tino whakamere.

    Tena koutou a Argentina!

    1.    antonio valdes toujague ka mea

      tena koa whakapiri mai ki ahau valdestoujague@yandex.com