DNS ma le DHCP ile CentOS 7 - SMB Networks

Faʻasino lautele o le faʻasologa: Fesootaiga komepiuta mo SMEs: Faatomuaga

Talofa uo !. O le a tatou vaʻai i lenei tusitusiga pe faʻafefea ona tatou faʻaaogaina le taua taua o tautua mo fesoʻotaʻiga faia e le DNS ma le DHCP ile CentOS - Linux, faʻapitoa i lana lomiga 7.2.

  • O nisi tusitusiga e uiga i le DNS faʻasino i le mea moni e faʻapea o le faʻatinoina o lenei tautua e tau le malamalama ma faigata. Ou te le o malie i le faamatalaga lena. E sili ia te aʻu le fai atu o sina manatu puʻupuʻu ma o le tele o ana faila faila e iai faʻamatalaga faʻanumera. O le mea e laki ai, e i ai a tatou mea faigaluega e siaki ai, i lea laʻasaga ma lea laʻasaga, o le faʻasologa o faila faila taʻitasi matou te fesuiaʻi. O le mea lea, o le a matou taumafai e faʻataua le faitauina o lenei pou ma mea matagofie ma faʻafiafiaina pe a mafai..

Mo i latou o loʻo vaʻavaʻai i faʻavae o tautua uma e lua, matou te matua fautuaina le amataina o lau suʻesuʻega i luga o Wikipedia, uma i lana Sipaniolo ma le Igilisi. E le itiiti ifo le moni o tusitusiga i le Igilisi e toeititi lava maeʻa maeʻa ma felagolagomaʻi. Pea, Wikipedia o se lelei amata amataga.

Mo outou na e mananaʻo e aʻoaʻo DNS ma BIND, matou te fautuaina le faitauina o le tusi «OReilly - DNS ma BIND 4ed"tusia e Paul albitz y Kirikiti Liu, poʻo se isi lomiga mulimuli ane e mautinoa lava o loʻo iai.

Ua uma ona matou lolomiina se tusitusiga i luga o le mataupu faʻaulutalaina «DNS ma le DHCP i le openSUSE 13.2 Harlequin - SME Networks»Mo tagata fiafia i le siosiomaga kalafi. Ae ui i lea, mai le taimi nei o le a latou feagai ma tusitusiga i luga o lenei mataupu - ae le o luga o isi - tusia ma le tele o le faʻaaogaina o le emulator o se tigaina po o le faʻamafanafanaina. Wow, i le faiga masani faʻaaogaina e UNIX® / Linux System Administrators.

Afai e te fia iloa atili e uiga i le mulimuli igoa o le ulutala o lenei tusitusiga «SME Fesootaiga»E mafai ona e asia le itulau i lenei blog«SME network: muamua tipi tipi«. I totonu o le a e maua ai soʻotaga i le tele o isi lolomi tusitusiga.

  • A maeʻa le faʻapipiʻiina o le CentOS 7 Operating System ua maeʻa ma afifi matou te fautuaina, el tusi faʻasino /usr/share/doc/bind-9.9.4/ O loʻo iai le aofaʻi lelei o faʻamaumauga matou te fautuaina e te feutanaʻi ae e te leʻi alu i se sailiga i luga ole Initaneti e aunoa ma le muaʻi iloaina,, i ou tamatamai lima ma lou lava fale, e mafai ai ona e mauaina le mea o loʻo e sailia.

Faʻavaeina le faʻavaeina o masini

Faʻamatalaga lautele o le vaega ma le DNS server

Igoa ole igoa: mai linux.fan
DNS igoa igoa: dns.fromlinux.fan
Tuatusi IP: 192.168.10.5
Masini Subnet: 255.255.255.0

Faʻatulagaga

Tatou amata i se fou poʻo le mama faʻapipiʻiina o le CentOS 7 faʻagaioiga faʻagaioiga pei ona faʻailoa mai i le tala muamua «CentOS 7 Hypervisor I - SMB Networks«. Pau lava le mea e manaʻomia ona fai o suiga ia:

  • i le 22 Image «FILIFILIGA SOFTWARE«, Matou te fautuaina filifili i le koluma agavale«Siosiomaga Faavae»O le filifiliga faʻatatau i le«Atinaʻe o atinaʻe tetele«, Aʻo i le koluma taumatau«Plugins mo Filifiliga Siosiomaga»Filifili le pusa siaki«DNS igoa tautua«. O le a matou toe faʻatuina le DHCP server mulimuli ane.
  • Sei o tatou manatua le faʻaliga o isi fale teu oloa e pei ona faʻaalia i le 23 Image, ina ua maeʻa ona seti le «NETWORK & TEAM Igoa".
  • O ata e faʻasino i vaega o le a tatou faia i luga o la tatou hard drive ua na ona avea ma taʻiala. Lagona saoloto e filifili le vaeluaina i lau oe lava faitalia, faʻataʻitaʻiga, ma le mafaufau lelei.
  • I le iuga, i le Ata 13 «NETWORK & TEAM NAME», e tatau ona tatou suia tulaga taua e tusa ai ma lautele tapulaʻa o le vaega ma DNS server faʻalauiloaina, aunoa ma le galo e faʻamaoti mai le igoa talimalo -i lenei tulaga «dns«- a maeʻa le faʻatulagaina o fesoʻotaʻiga ua maeʻa. E lelei e fai ping -mai seisi talimalo- i le faʻamaoti IP tuatusi pe a maeʻa le upega tafailagi o galue:

DNS ma le DHCP ile CentOS

E i ai lava nai ma manino lava suiga e tatau ona tatou faia e tusa ai ma le muamua tusitusiga.

Uluai siaki ma fetuʻunaʻiga

A maeʻa ona tatou faʻatulagaina le faʻagaioiga, e tatau ona tatou iloiloina faila nei e le itiiti ifo, ma mo lenei mea tatou te amataina se sauniga e ala i le SSH mai la matou komepiuta sysadmin.fromlinux.fan:

buzz @ sysadmin: ~ $ ssh 192.168.10.5
buzz@192.168.10.5 'upega tafaʻilagi: Lauga mulimuli: Sat Ian 28 09:48:05 2017 mai le 192.168.10.1
[buzz @ dns ~] $

O le faʻagaioiga i luga e ono umi atu nai lo le masani ai, ma e mafua ona o le mea moni e leʻi iai sa tatou DNS i le LAN. Toe siaki mulimuli ane o loo galue le DNS.

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

[buzz @ dns ~] $ pusi / isi / igoa tau
dns

[buzz @ dns ~] $ pusi / 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 ~] $ pusi /etc/resolv.conf 
# Fausia e NetworkManager saili mai linux.fan nameserver 127.0.0.1

O le autu configurations tali atu ia tatou filifiliga. Manatua e oʻo lava i luga o se sapalai Red Hat 7 - CentOS 7, ua faʻamau e le masani ai pe a NetworkManager o lea la o le tagata lea e faʻatonutonu fesoʻotaʻiga fesoʻotaʻiga, ia latou uaea poʻo uaealesi (WiFi), VPN sootaga, PPPoE fesoʻotaʻiga, ma soʻo se isi fesoʻotaʻiga fesoʻotaʻiga.

[buzz @ dns ~] $ sudo systemctl tulaga networkmanager
[sudo] upu faʻatonu mo buzz: ● networkmanager.service Avega: le maua

[buzz @ dns ~] $ sudo systemctl tulaga NetworkManager
● NetworkManager.service - Network Manager Avega: utaina (/usr/lib/systemd/system/NetworkManager.service; mafai; tagata faʻatau preset: mafai) Galue: toaga (tamoʻe) talu mai Sat 2017-01-28 12:23:59 EST; 12min talu ai PID Autu: 705 (NetworkManager) CGroup: /system.slice/NetworkManager.service └─705 / usr / sbin / NetworkManager --no-daemon

Red Hat - E faʻatagaina foʻi oe e le CentOS e faʻafesoʻotaʻi ma momotu fesoʻotaʻiga fesoʻotaʻiga i le faʻaogaina o tulafono masani afai e afai i lalo. Tatou tamoʻe i luga o se 'auʻaunaga faʻamafanafana:

[Root @ dns ~] # ifdown eth0
Masini 'eth0' na motusia manuia.

[Root @ dns ~] # afai o le eth0
Ua faʻagaoioia ma le manuia le fesoʻotaʻiga (D-Bus auala galue: / org / freedesktop / NetworkManager / ActiveConnection / 1)
  • Matou te fautua atu aua le suia tulaga le lelei o loʻo ofoina mai e le CentOS 7 e tusa ai NetworkManager.

Matou te faʻailoa manino atu fale teuoloa o le a matou faʻaogaina ma faʻafouina le faʻagaioiga pe a manaʻomia:

[buzz @ dns ~] $ su Password: [root @ dns buzz] # cd /etc/yum.repos.d/
[root @ dns yum.repos.d] # ls -l
aofaʻi 28 -rw-r - r--. 1 aʻa aʻa 1664 Tes 9 2015 CentOS-Base.repo -rw-r - r--. 1 aʻa aʻa 1309 Tes 9 2015 CentOS-CR.repo -rw-r - r--. 1 aʻa aʻa 649 Tes 9 2015 CentOS-Debuginfo.repo -rw-r - r--. 1 aʻa aʻa 290 Tes 9 2015 CentOS-fasttrack.repo -rw-r - r--. 1 aʻa aʻa 630 Tes 9 2015 CentOS-Media.repo -rw-r - r--. 1 aʻa aʻa 1331 Tes 9 2015 CentOS-Punaoa.repo -rw-r - r--. 1 aʻa aʻa 1952 Tes 9 2015 CentOS-Vault.repo

E maloloina le faitau i mea o loʻo iai i faʻamaumauga mai le CentOS. O suiga na matou faia iinei e mafua mai ona o le leai o so matou Initaneti, ma matou te galulue faʻatasi ma fale teu oloa mai le WWW Village, e ni uo latou te faʻafaigofieina o matou olaga. 😉

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

[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 mama uma
Mauaina o plugini: vave tele, faʻamamaina o le fufuluina o fale teu oloa: centos-base centos-faʻamamaina Faʻamamaina mea uma

[root @ dns yum.repos.d] # yum faafouga
Uila plugins: saoasaoa o le moto, centos-base langpacks | 3.4 kB 00:00 centos-faʻafouga | 3.4 kB 00:00 (1/2): centos-base / primary_db | 5.3 MB 00:00 (2/2): centos-updates / primary_db | 9.1 MB 00:00 Fuafuaina vave faʻata leai ni afifi faʻailogaina mo le faʻafouga

O le feʻau «Leai (e iai) afifi na makaina mo le faʻafouga» - «Leai ni afifi faʻailogaina mo le faʻafouga»Faʻailoa mai, i le faʻalauiloaina o fale teuoloa sili ona lata mai o loʻo avanoa ia matou i le taimi na faʻapipiʻi ai, o le mea tonu lava na maeʻa faʻapipiʻi afifi.

E uiga i le SELinux matalalaga ma le firewall

O le a matou taulaʻi atu i lenei tusitusiga - faʻavae - i le faʻatinoina o le DNS ma le DHCP tautua, o lona autu lea.

Afai na filifilia e se tagata faitau se Faiga faʻavae Saogalemi i le taimi o le faʻapipiʻiina, pei ona faʻailoa mai i le 06 Image o le tala faatatau «CentOS 7 Hypervisor I - SMB Networks»Faʻaaoga mo le faʻapipiʻiina o lenei DNS - DHCP server, ma e te iloa e te le iloa pe faʻafefea ona faʻalelei setiina SELinux ma le CentOS Firewall, matou te fautua atu e te faʻatautaia mea nei:

Suia le faila / etc / sysconfig / selinux ma suia SININU = faamalosia e SELINUX = faamuta

[root @ dns ~] # nano / etc / sysconfig / selinux
# O lenei faila e faʻatonutonu le setete o SELinux i luga o le polokalama. # SELINUX = mafai ona avea se tasi o nei taua tolu: # faʻamalosia - SELinux security policy is faamalosia. # faʻatagaina - SELinux lolomi lapataiga nai lo le faʻamalosia. # le atoatoa - Leai se SELinux faʻavae e utaina.
SININUX = le atoatoa
# SELINUXTYPE = mafai ona avea le tasi o le tolu lua faʻatauaina: # taulaʻi - Faʻagasologa gaioiga e puipuia, # aupito maualalo - Suiga o faʻamoemoega faʻavae. Naʻo filifiliga filifilia o pr $ # mls - Multi Level Security puipuiga. SELINUXTYPE = faʻamoemoeina

Ona tamoe lea o tulafono nei

[root @ dns ~] # setenforce 0
[Root @ dns ~] # tautua firewalld taofi
Faʻatonutonuina i / bin / systemctl taofi firewalld.service

[Root @ dns ~] # systemctl faʻaputa le firewalld
Aveesea symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Aveesea symlink /etc/systemd/system/basic.target.wants/firewalld.service.

Afai o loʻo e faʻatinoina se DNS server feagai ma le Initaneti, e le tatau ona e faia le mea i luga, ae configure le SELinux mataupu ma le Firewall saʻo. Vaai "Suʻesuʻega a le aufaigaluega ma le GNU / Linux, e le tusitala o Joel Barrios Dueñas" poʻo le CentOS faʻamaumauga lava ia - Red Hat

Matou te faʻaleleiina le faʻamau - igoa

  • El tusi faʻasino /usr/share/doc/bind-9.9.4/ o loʻo iai le aofaʻi lelei o faʻamaumauga matou te fautuaina oe e te faʻatalanoa ae e te leʻi oʻo atu i se sailiga i luga ole Initaneti e aunoa ma le muaʻi iloaina,, i ou tamatamai lima ma i lou oe lava fale, oe mafai ona maua ai le mea o loʻo e sailia

I le tele o tufatufaga o le DNS tautua faʻapipiʻi ala i le BIND afifi e valaʻauina igoa (Igoa Daemon). I le CentOS 7 ua faapipiiina le atoatoa e ala i le le masani ai, e tusa ai ma le galuega faatino o le tulafono lea, lea o loʻo taua ai lona tulaga o levaivaiga«, Ma o lenei setete ua leva ona faʻamatalaina e lona« faʻatau atu »- tagata faʻatau preset. Mo le faʻamaumauga, BIND o Free Software.

Faʻaavanoaina le igoa tautua

[root @ dns ~] # systemctl tulaga faʻaigoaina
● names.service - Berkeley Initaneti Igoa (DNS) Avega: utaina (/usr/lib/systemd/system/named.service; vaivaiga; tagata faʻatau preset: le atoatoa) Galue: le toaga (maliu)

[root @ dns ~] # systemctl mafai faʻaigoa
Fausia symlink mai /etc/systemd/system/multi-user.target.wants/named.service i le /usr/lib/systemd/system/named.service.

[root @ dns ~] # systemctl amata faʻaigoa

[root @ dns ~] # systemctl tulaga faʻaigoaina
● names.service - Berkeley Initaneti Igoa (DNS) Avega: utaina (/usr/lib/systemd/system/named.service; mafai; tagata faʻatau preset: le atoatoa)
   Toaga: toaga (tamoʻe) talu mai le Sat 2017-01-28 13:22:38 EST; 5min talu ai Faʻagasologa: 1990 ExecStart = / usr / sbin / igoa -u faʻaigoaina $ OPTIONS (code = exited, status = 0 / SUCCESS) Faʻagasologa: 1988 ExecStartPre = / bin / bash -c pe a [! "$ DISABLE_ZONE_CHECKING" == "ioe"]; ona / usr / sbin / igoa-checkconf -z /etc/named.conf; a le o le isi faʻailoga "O le siakiina o faila sone ua le mafai"; fi (code = exited, status = 0 / SUCCESS) Autu PID: 1993 (igoa) CGroup: /system.slice/named.service └─1993 / usr / sbin / igoa -u igoa Jan 28 13:22:45 dns igoa [1993]: sese (network unreachable) foʻia './NS/IN': 2001: 500: 2f :: f # 53 Jan 28 13:22:47 dns igoa [1993]: sese (network unreachable) foia './ DNSKEY / IN ': 2001: 500: 3 :: 42 # 53 Jan 28 13:22:47 dns igoa [1993]: sese (network unreachable) fofo' ./NS/IN ': 2001: 500: 3 :: 42 # 53 Ian 28 13:22:47 dns igoa [1993]: sese (network unreachable) foʻia './DNSKEY/IN': 2001: 500: 2d :: d # 53 Jan 28 13:22:47 dns igoa [1993 ]: sese (network unreachable) foʻia './NS/IN': 2001: 500: 2d :: d # 53 Jan 28 13:22:47 dns igoa [1993]: error (network unreachable) foia './DNSKEY/ IN ': 2001: dc3 :: 35 # 53 Jan 28 13:22:47 dns igoa [1993]: sese (network unreachable) fofo' ./NS/IN ': 2001: dc3 :: 35 # 53 Jan 28 13: 22:47 dns igoa [1993]: sese (network unreachable) foʻia './DNSKEY/IN': 2001: 7fe :: 53 # 53 Jan 28 13:22:47 dns igoa [1993]: error (network unreachable) res olving './NS/IN': 2001: 7fe :: 53 # 53 Jan 28 13:22:48 dns igoa [1993]: pulea-ki-sone: Le mafai ona aumai DNSKEY seti '.': timed out

[root @ dns ~] # systemctl toe amata igoa

[root @ dns ~] # systemctl tulaga faʻaigoaina
● names.service - Berkeley Initaneti Igoa (DNS) Avega: utaina (/usr/lib/systemd/system/named.service; mafai; tagata faʻatau preset: le atoatoa)
   Toaga: toaga (tamoʻe) talu mai Sat 2017-01-28 13:29:41 EST; 1s talu ai Faʻagasologa: 1449 ExecStop = / bin / sh -c / usr / sbin / rndc stop> / dev / null 2> & 1 || / bin / fasioti -TERM $ MAINPID (code = exited, status = 0 / SUCCESS) Faʻagasologa: 1460 ExecStart = / usr / sbin / igoa -u faʻaigoaina $ OPTIONS (code = exited, status = 0 / SUCCESS) Faʻagasologa: 1457 ExecStartPre = / bin / bash -c pe a [! "$ DISABLE_ZONE_CHECKING" == "ioe"]; ona / usr / sbin / igoa-checkconf -z /etc/named.conf; a le o le isi faʻailoga "O le siakiina o faila sone ua le mafai"; fi (code = exited, status = 0 / SUCCESS) Autu PID: 1463 (igoa) CGroup: /system.slice/named.service └─1463 / usr / sbin / igoa -u igoa Jan 28 13:29:41 dns igoa [1463]: pulea-ki-sone: faila o tusi talaaga ua tuai: aveʻese faila faila Jan 28 13:29:41 dns igoa [1463]: pulea-ki-sone: utaina serial Jan 2 28 13:29:41 dns igoa [1463]: sone 0.in-addr.arpa/IN: utaina serial 0 Ian 28 13:29:41 dns igoa [1463]: sone localhost.localdomain / IN: utaina serial 0 Jan 28 13:29:41 dns igoa [1463]: sone 1.0.0.127.in-addr.arpa/IN: utaina serial 0 Ian 28 13:29:41 dns igoa [1463]: sone 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 serial 28 Jan 13 29:41:1463 dns igoa [0]: sone localhost / IN: utaina serial 28 Jan 13 29 : 41: 1463 dns igoa [28]: uma sone utaina Jan 13 29:41:1463 dns igoa [28]: tamoe Ian 13 29:41:1 dns systemd [XNUMX]: Amata Berkeley Initaneti Igoa Domain (DNS).

A maeʻa ona matou faʻatagaina le auaunaga igoa ma matou amataina mo le taimi muamua, o le gaosiga o le faʻatonuga systemctl tulaga igoa faʻaalia mea sese. A matou toe amataina le tautua i lalo, o le igoa fatuina uma faila faʻatulagaina e, i le le masani ai, e talafeagai mo lona saʻo faʻagaioiga. O le mea lea, pe a tatou toe faʻatinoina le faʻatonuga systemctl tulaga igoa ua le toe faʻailoa mai ni mea sese.

  • Lau pele, taugata, ma manaʻomia le Faitau: afai e te manaʻo e suʻesuʻe -o le a le auala e tau atu i le iʻuga o le pu lapiti, faʻamolemole faitau lemu le auiliiliga o faʻatonuga taʻitasi. 😉 E mautinoa lava o le tusitusiga o le a foliga mai e fai si umi, ae aua le faʻafitia e maua i le faʻamalamalamaga ma le manino.

Matou te fesuiaʻi le faila /etc/named.conf

Tele manatu a le au faitau e faʻailoa -Ou te le fai atu ai- o le mania o loʻo vaʻaia e le tele o tufatufaina Linux, o le tuʻuina o faila faʻavasega faila i faila ma igoa eseese faʻalagolago i le distro. E saʻo i latou. Ae o le a se mea e mafai ei matou, o tagata faʻaaoga faigofie o loʻo faʻaaogaina nei tufatufaina, ona faia? Fetuunai! 😉

I le auala, i le FreeBSD, UNIX® clone «Le Amataga», o le faila o lo i totonu /usr/local/etc/namedb/named.conf; a o iai i Debian, e faʻaopoopo i le vaevaeina i faila e fa names.conf, names.conf.options, names.conf.default-sone, ma names.conf.local, o loʻo i totonu o le faila / etc / fusifusia /. O i latou e fia iloa le mea e tatala ai le OpenSUSE, faitau «DNS ma le DHCP i le openSUSE 13.2 Harlequin - SME Networks«. E saʻo le au faitau! 😉

Ma e pei ona masani ona tatou faia: ae le i toe faʻafouina se mea, matou te sefe lava le faʻavae faʻavae i lalo o leisi igoa.

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

Ina ia faʻafaigofie le olaga, nai lo le fausiaina o le ki TSIG mo faʻalauteleina DNS faʻafouina e DHCP, matou kopiina le tutusa ki rndc.key como dhcp.key.

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

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

Ma o le igoa mafai ona faitau le faila na faʻapipiʻiina, matou te fesuiaʻia le ana le kulupu:

[root @ dns ~] # chown root: igoa /etc/dhcp.key [root @ dns ~] # ls -l /etc/rndc.key /etc/dhcp.key -rw-r -----. 1 aʻoga igoa 77 Ian 28 16:36 PM /etc/dhcp.key -rw-r -----. 1 aa faʻaigoa 77 Ian 28 13: 22 /etc/rndc.key

O tamaʻi faʻamatalaga e pei o muamua na mea o le a mafai ai ona faʻavalevalea i tatou i le taumafai e suʻesuʻe, nei ... o fea le faʻafitauli ...? faʻatasi ai ma nisi faʻaupuga, tatou te le tusiaina mo le faʻaaloalo i le faʻaaloalo.

Ma afai - mulimuli ane! - matou te fesuiaʻi le faila /etc/named.conf. O suiga poʻo faʻaopopoga na matou faia, e tusa ai ma le uluaʻi, o loʻo i totonu lototele. Tagaʻi lelei i le toʻaitiiti.

[root @ dns ~] # nano /etc/named.conf
// // named.conf // // Saunia e Red Hat bind package e faʻatulaga ai le ISC BIND ua faʻaigoaina (8) DNS // server o se cache naʻo le nameserver (naʻo le localhost DNS resolver naʻo ia). // // See / usr / share / doc / bind * / sample / mo se faʻataʻitaʻiga igoa faila faʻatulagaina. //

// Lisi Pulea Avanoa faʻalauiloa poʻo fea fesoʻotaʻiga o le a mafai ona feutagai
// my server igoa
acl uaea {
 127.0.0.0 / 8;
 192.168.10.0 / 24;
};

filifiliga {
 // Ou te taʻutino atu o le igoa daemon faʻalogo foi mo le interface
 // eth0 o iai le IP: 192.168.10.5
    faʻalogo-i luga ole taulaga 53 {127.0.0.1; 192.168.10.5; };
    faʻalogo-i-v6 taulaga 53 {:: 1; }; tusi faʻasino "/ var / names"; lafoaʻi-faila "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt";

 // Faʻamatalaga i luma
 // fa'asalalau {
 // 0.0.0.0;
 // 1.1.1.1;
 //};
    // muamua muamua;

    // Naʻo oʻu faʻatagaina fesili i laʻu ACL paʻu
    faataga-fesili {mired; }; // To check with the command dig desdelinux.fan axfr // from the SysAdmin workstation and localhost only // E leai ni a matou pologa DNS auauna. Matou te le manaʻomia ... seʻia oʻo mai nei.
 faataga-fesiitai {localhost; 192.168.10.1; };

    / * - Afai o loʻo e fausiaina le AUTHORITATIVE DNS server, AUA faʻatagaina se toe faʻafoʻi. - Afai o loʻo e fausiaina se RESURSIVE (cache) DNS server, oe manaʻomia le faʻafaigofie ona toe faʻaola. - Afai o lau recursive DNS server o loʻo iai se tuatusi IP lautele, e tatau ona e faʻaaogaina le faʻatagaina e faʻatapulaʻa ai fesili i au tagata faʻaoga tatau. O le le faia o lea e mafua ai ona avea lau 'auʻauna ma vaega o osofaʻiga tele a le DNS. Faʻaaogaina BCP38 i totonu o lau upega tafaʻilagi o le a matua faʻaititia ai le osofaʻiga luga * /
    // Matou te manaʻomia se tautua AUTHORITY mo la matou LAN - SME
    recursion leai;

    dnssec-mafai ioe; dnssec-faamaoniga ioe; / * Auala i le ISC DLV ki * / bindkeys-file "/etc/named.iscdlv.key"; pulea-ki-faʻasino "/ var / igoa / malosi"; pid-file "/run/named/named.pid"; session-keyfile "/run/named/session.key"; }; logging {channel default_debug {faila "data / named.run"; faigata malosi; }; }; sone "." I {ituaiga faʻaaliga; faila "names.ca"; }; aofia ai "/etc/named.rfc1912.zones"; aofia ai le "/etc/named.root.key";

// Matou te aofia ai le ki TSIG mo malosi DNS faʻafouina // e DHCP
aofia ai le "/etc/dhcp.key";

// Faʻalauiloaina o le igoa, ituaiga, nofoaga, ma le faʻafouga faʻatagaina
// of the DNS Records Zones // O Sone uma e lua o MASTERS
sone "desdelinux.fan" {
 ituaiga matai;
 faila "dynamic / db.fromlinux.fan";
 faʻatagaina-faʻafouina {ki dhcp-ki; };
};

sone "10.168.192.in-addr.arpa" {
 ituaiga matai;
 faila "dynamic / db.10.168.192.in-addr.arpa";
 faʻatagaina-faʻafouina {ki dhcp-ki; };
};

Matou te siakiina le faʻaupuga

[root @ dns ~] # faʻaigoa-checkconf 
[Root @ dns ~] #

Talu ai o le faʻatonuga i luga e le toe faafoiina se mea, o le syntax e OK. Ae peitaʻi, afai tatou te faia le tutusa faʻatonuga, ae ma le filifiliga -z, o le galuega faatino o le a:

[root @ dns ~] # faʻaigoa-checkconf -z
sone localhost.localdomain / IN: utaina serial 0 sone localhost / IN: utaina serial 0 sone 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 serial 0 sone 1.0.0.127.in-addr.arpa/IN: utaina serial 0 sone 0.in-addr.arpa/IN: utaina serial 0 sone mai linux.fan/IN: utaina mai matai Ua le manuia le faila / db.fromlinux.fan: ua le maua se faila mai lelinux.fan/IN: ua le utaina ona o mea sese. _default / desdelinux.fan / IN: faila e le maua sone 10.168.192.in-addr.arpa/IN: utaina mai le faila faila malosi / db.10.168.192.in-addr.arpa ua le manuia: faila e le maua sone 10.168.192 .in-addr.arpa / IN: le utaina ona o mea sese. _default / 10.168.192.in-addr.arpa / IN: faila e le maua

Ioe o mea sese ia e tutupu ona tatou te leʻi faia lava le DNS Rehone Zone mo la tatou vaega.

  • Mo nisi faʻamatalaga e uiga i le faʻatonuga igoa-checkconf, tamoʻe tamaloa igoa-checkconf, ae e te leʻi sailia nisi faʻamatalaga i luga ole Initaneti. Ou te tautino atu ia te oe o le a sefe tele tele o taimi.

Matou te fausiaina le Direct Zone file mai linux.fan

... leai aunoa ma sina vaega o teori muamua. 😉

I le avea ai o se faʻataʻitaʻiga e fausia ai le sone faʻamaumauga faila, e mafai ona tatou ave le /var/named/named.empty, poʻo le /usr/share/doc/bind-9.9.4/sample/var/named/named.empty. E tutusa uma mea e lua.

[root @ dns ~] # pusi /var/named/named.empty 
$ TTL 3H @ I SOA @ rname.invalid. (0; serial 1D; faʻafouina 1H; toe taumafai 1W; faamutaina 3H); aupito laʻititi pe Le lelei le taimi e teu ai ola e ola NS @ A 127.0.0.1 AAAA :: 1

Taimi o le olaga - Taimi e ola ai TTL Faʻamaumauga a le SOA

Sei o tatou ave se faʻailoga e faʻamatala ai le TTL - Taimi e ola ai mai le tusi resitala SOA - Amataga o le Pulega o le Master Zone. E manaia le iloa o latou uiga mo pe a tatou manaʻo e fesuiaʻi soʻo se o latou taua.

$ TTL: Taimi o le olaga - Taimi e ola ai mo faʻamaumauga uma i le faila e mulimuli i le faʻaliga (ae muamua i seisi $ TTL faʻasilasilaga) ma e leai sau faʻamatalaga TTL manino.

serial: Fua numera o faʻamatalaga a le Sone. Soʻo se taimi matou te suia ai lima se faamaumauga a DNS i se sone, e tatau ona tatou faʻateleina lena numera ile 1, ae maise pe a fai o matou pologa pe lua. Soʻo se taimi e faʻafesoʻotaʻi ai e le DNS poʻo le lua poʻo le pologa server lona master server, na te fesili atu mo le numera o faʻamaumauga a le matai. Afai o le numera numera o le pologa e laʻititi, ona faʻapea lea o faʻamaumauga mo lena sone i luga o le auauna pologa ua le aoga, ma o le pologa faia se sone fesiitaʻi e faʻafouina ia lava.

toe faʻafou: E taʻu atu i le auauna pologa le vaitau taimi e tatau ai ona siaki pe o ana faʻamatalaga e lata mai i le taimi nei e faʻatatau i le matai.

toe taumafai: Afai e le avanoa le master server - aua na maʻi, seʻi tatou fai atu - mo le pologa pe a maeʻa le taimi toe faʻafou, toe taumafai E taʻu i le pologa le umi e faatali ai ae e te leʻi toe taumafai e faʻafesoʻotaʻi ma lona matai.

ua muta: Afai e le mafai e le pologa ona faʻafesoʻotaʻi lona matai mo se vaitaimi ua mutaAfai la o le pologa-aliʻi sone faʻafesoʻotaʻiga na mimilo i luga, ma le auauna pologa e leai se filifiliga ae o le maeʻa le sone o loʻo fesiligia. O le faʻamutaina o le sone e se pologa DNS server o lona uiga o le a taofia le tali atu i fesili DNS e fesoʻotaʻi ma lena sone, aua o faʻamatalaga maua mai ua leva tele ona aoga.

  • O mea o loʻo taua i luga e aʻoaʻo faʻatatau i tatou ma utaina ma le mafaufau masani - o le mea e le masani ai - afai tatou te le manaʻomia pologa DNS auauna mo le faʻagaioiga o le tatou SME, tatou te le faʻataʻitaʻia, seʻi vagana ua matua tatau. Tatou taumafai i taimi uma e alu mai le faigofie i le faigata.

itiiti: I faʻamatalaga muamua atu i Fusi 8.2, le faʻamaumauga mulimuli SOA O loʻo faʻailoa mai ai foʻi le Leai Olaga - Leai taimi e ola ai, ma le Leaga Cache Olaga Atoa - Le lelei le taimi alu i le ola e ola ai mo le Sone. Ole taimi lenei e faʻasino uma i tali le lelei na tuʻuina mai e le pule aloaʻia mo le Sone.

Sone faila /var/named/dynamic/db.fromlinux.fan

[root @ dns ~] # nano /var/named/dynamic/db.fromlinux.fan
$ TTL 3H @ I SOA dns.fromlinux.fan. root.dns.fromlinux.fan. (1; serial 1D; faʻafouina 1H; toe taumafai 1W; faamutaina 3H); maualalo pe; Le lelei le taimi o le teuina o le ola e ola ai; @ I NS dns.fromlinux.fan. @ I MX 10 meli.fromlinux.fan. @ I TXT "FromLinux, lau Blog faʻapitoa mo Free Software"; 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

Matou te siaki /var/named/dynamic/db.fromlinux.fan

[root @ dns ~] # igoa-checkzone mai le linux.fan / var / named / dynamical / db. mai lelinux.fan
sone mai le linux.fan/IN: utaina serial 1 OK

Matou te faia le Reverse Zone faila 10.168.192.in-addr.arpa

  • O faamaumauga a le SOA o lenei Sone e tutusa ma le Sone Faʻatonu e aunoa ma le iloiloina o le faamaumauga MX..
[root @ dns ~] # nano /var/named/dynamic/db.10.168.192.in-addr.arpa
$ TTL 3H @ I SOA dns.fromlinux.fan. root.dns.fromlinux.fan. (1; serial 1D; faʻafouina 1H; toe taumafai 1W; faamutaina 3H); maualalo pe; Le lelei le taimi o le teuina o le ola e ola ai; @ I NS dns.fromlinux.fan. ; 1 I PTR sysadmin.fromlinux.fan. 3 I PTR ad-dc.fromlinux.fan. 4 I PTR faila faila.fromlinux.fan. 5 I PTR dns.fromlinux.fan. 6 I PTR sui sui.desdelinux.fan. 7 I PTR blog.desdelinux.fan. 8 I PTR ftpserver.fromlinux.fan. 9 I PTR meli.fromlinux.fan.

[root @ dns ~] # named-checkzone 10.168.192.in-addr.arpa /var/named/dynamic/db.10.168.192.in-addr.arpa 
sone 10.168.192.in-addr.arpa/IN: utaina serial 1 OK

Ae le i toe amataina le igoa matou siaki lona faʻatulagaina

  • Seʻi vagana ua matou mautinoa o faila faʻatulagaina o le names.conf, ma ona faila sone e leʻo saʻo ona faʻatautaia, matou te fautua atu e aua le toe amataina le daemon ua faʻaigoaina. Afai tatou te faia lenei mea ma mulimuli ane suia se faila sone, e tatau ona tatou faʻateleina le numera numera o le toe faʻaleleia sone i le 1.
  • Seʻi tatou vaʻai i le "." i le faʻaiuga o igoa ma igoa o talimalo.
[root @ dns ~] # faʻaigoa-checkconf 
[root @ dns ~] # faʻaigoa-checkconf -z
sone localhost.localdomain / IN: utaina serial 0 sone localhost / IN: utaina serial 0 sone 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.0ip.6ar.0 / IN: utaina serial 1.0.0.127 sone 0.in-addr.arpa/IN: utaina serial 0 sone 0.in-addr.arpa/IN: utaina serial 1 sone mai linux.fan/IN: utaina serial 10.168.192 sone 1. XNUMX.in-addr.arpa/IN: utaina serial XNUMX

Uiga uma o loʻo faʻaigoaina nei

Ina ia maua le manino, ma e ui lava o le tusitusiga avea umi, tatou te avatua le faʻatinoga atoa o le faʻatonuga igoa-checkconf -zp:

[root @ dns ~] # faʻaigoa-checkconf -zp
sone localhost.localdomain / IN: utaina serial 0 sone localhost / IN: utaina serial 0 sone 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.0ip.6ar.0 / IN: utaina serial 1.0.0.127 sone 0.in-addr.arpa/IN: utaina serial 0 sone 0.in-addr.arpa/IN: utaina serial 1 sone mai linux.fan/IN: utaina serial 10.168.192 sone 1. 53.in-addr.arpa/IN: utaina serial 127.0.0.1 filifiliga {bindkeys-file "/etc/named.iscdlv.key"; session-keyfile "/run/named/session.key"; tusi faʻasino "/ var / names"; lafoaʻi-faila "/var/named/data/cache_dump.db"; faʻalogo-i luga ole taulaga 32 {192.168.10.5/32; 6/53; }; faʻalogo-i-v1 taulaga 128 {:: 192.168.10.1/32; }; pulea-ki-faʻasino "/ var / igoa / malosi"; memstatistics-file "/var/named/data/named_mem_stats.txt"; pid-file "/run/named/named.pid"; statistics-file "/var/named/data/named_stats.txt"; dnssec-mafai ioe; dnssec-faamaoniga ioe; recursion leai; allow-query {"mired"; }; faʻataga-fesiitai {127.0.0.0/8; }; }; acl "mired" {192.168.10.0/24; 5/7; }; logging {channel "default_debug" {file "data / named.run"; faigata malosi; }; }; ki "dhcp-key" {algorithm "hmac-md83"; lilo "OI7Vs + TO2L1.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.0ghUm6xNVKg =="; }; sone "." I {ituaiga faʻaaliga; faila "names.ca"; }; sone "localhost.localdomain" IN {ituaiga pule; faila "names.localhost"; faʻataga-faʻafouina le "" leai "; }; }; sone "localhost" IN {ituaiga pule; faila "names.localhost"; faʻataga-faʻafouina le "" leai "; }; }; sone "1.0.0.127.ip0.arpa" IN {ituaiga matai; faila "names.loopback"; faʻataga-faʻafouina le "" leai "; }; }; sone "10.168.192.in-addr.arpa" IN {ituaiga matai; faila "names.loopback"; faʻataga-faʻafouina le "" leai "; }; }; sone "10.168.192.in-addr.arpa" IN {ituaiga pule; faila "names.empty"; faʻataga-faʻafouina le "" leai "; }; }; sone "desdelinux.fan" {ituaiga matai; faila "dynamic / db.fromlinux.fan"; allow-update {key "dhcp-key"; }; }; sone "257.in-addr.arpa" {ituaiga matai; faila "dynamic / db.3.in-addr.arpa"; allow-update {key "dhcp-key"; }; }; ki-faʻatonutonu {"." ki uluai-8 Aokuso 6 "AwEAAagAIKlVZrpC7Ia9gEzahOR + 29W0euxhJhVVLOyQbSEW8O6gcCjF FVQUTf58v0fLjwBd0YI8EzrAcQqBGCzh / RStIoO0g2NfnfL37MTJRkxoX bfDaUeVPQuYEhg9NZWAJQ496VnMVDxP / VHL5M / QZxkjf2 / Efucp6gaD X6RS68CXpoY0LsvPVjR1ZSwzz9apAzvN7dlzEheX6ICJBBtuA3G5LQpz W2hOA8hzCTMjJPJ6LbqF6dsV0DoBQzgul7sGIcGOYl57OyQdXfZ25relS Qageu + ipAdTTJ8AsRTAoub1ONGcLmqrAmRLKBP4dfwhYB7N1knNnulq QXA + Uk0ihzXNUMX ="; };
  • Mulimuli i taualumaga o le suia o le igoa.conf E tusa ai ma o matou manaʻoga ma siaki, ma fausia faila sone taʻitasi ma siaki ia, matou te masalosalo o le a matou feagai ma sili atu faʻafitauli faigata. Ile iʻuga ua matou iloa ose taʻaloga a le tama, ma le tele o manatu ma faʻasologa faʻanumera. 😉

O siaki na faʻafoʻi maia faʻaiuga lelei, o le mea lea e mafai ai ona tatou toe amataina le faʻamau - igoa.

Matou te toe amataina le igoa ma siaki lona tulaga

[root @ dns ~] # systemctl toe amata igoa.service
[root @ dns ~] # systemctl tulaga igoa.service

Afai tatou te maua soʻo se ituaiga o mea sese i le faʻatinoina o le mulimuli faʻatonuga, e tatau ona tatou toe amataina le igoa.service ma toe siaki lau tulaga. Afai ua o ese mea sese, ua amata ma le manuia le tautua. A leai, e tatau ona tatou faʻatinoina se iloiloga maeʻaeʻa o faila uma na fesuiaʻi ma faia, ma toe fai le faiga.

O le sao saʻo o le tulaga e tatau ona:

[root @ dns ~] # systemctl tulaga igoa.service
● names.service - Berkeley Initaneti Igoa Domain (DNS) Avega: utaina (/usr/lib/systemd/system/named.service; mafai; tagata faʻatau preset: le atoatoa) Toaga: toaga (tamoʻe) talu mai le Sun 2017-01-29 10:05:32 EST; 2min 57s talu ai Faʻagasologa: 1777 ExecStop = / bin / sh -c / usr / sbin / rndc stop> / dev / null 2> & 1 || / bin / fasioti -TERM $ MAINPID (code = exited, status = 0 / SUCCESS) Faʻagasologa: 1788 ExecStart = / usr / sbin / igoa -u ua taʻua $ OPTIONS (code = exited, status = 0 / SUCCESS) Faʻagasologa: 1786 ExecStartPre = / bin / bash -c pe a [! "$ DISABLE_ZONE_CHECKING" == "ioe"]; ona / usr / sbin / igoa-checkconf -z /etc/named.conf; a le o se isi suʻega "Siakiina o faila sone ua le mafai" fi (code = exited, status = 0 / SUCCESS) Autu PID: 1791 (igoa) CGroup: /system.slice/named.service └─1791 / usr / sbin / igoa -u igoa Jan 29 10:05:32 dns igoa [1791]: sone 1.0.0.127.in-addr.arpa/IN: utaina serial 0 Ian 29 10:05:32 dns igoa [1791]: sone 10.168.192.in-addr.arpa/IN: utaina serial 1 Ian 29 10:05:32 dns faaigoaina [1791]: sone 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 serial 0 Jan 29 10:05:32 dns igoa [1791]: sone desdelinux.fan/IN: utaina serial 1 Jan 29 10:05:32 dns igoa [1791]: sone localhost.localdomain / IN: utaina serial 0 Jan 29 10:05:32 dns igoa [1791]: sone localhost / IN: utaina serial 0 Ian 29 10:05:32 dns igoa [1791]: ua utaina uma sone
Ian 29 10:05:32 dns igoa [1791]: tamoʻe
Ian 29 10:05:32 dns systemd [1]: Amata Berkeley Initaneti igoa Igoa (DNS). Ian 29 10:05:32 dns igoa [1791]: sone 10.168.192.in-addr.arpa/IN: lafoina faʻasilasilaga (serial 1)

Siaki

O siaki e mafai ona faia i luga o le tutusa tautua pe i luga o se masini fesoʻotaʻi i le LAN. Matou te fiafia e faia ia mea mai le 'au sysadmin.fromlinux.fan lea na matou tuʻuina iai le faʻatagaga e faia ai Sone Fetufaʻiga. O le faila /etc/resolv.conf o le 'au lea o loʻo mulimuli mai:

buzz @ sysadmin: ~ $ cat /etc/resolv.conf 
# Fausia e NetworkManager saili mai linux.fan nameserver 192.168.10.5

buzz @ sysadmin: ~ $ eli mai le linux.fan axfr
; << >> DiG 9.9.5-9 + deb8u1-Debian << >> mai le linux.fan axfr ;; filifiliga a le lalolagi: + cmd mai le linux.fan. 10800 I SOA dns.fromlinux.fan. root.dns.fromlinux.fan. 1 86400 3600 604800 10800 mai le linux.fan. 10800 I NS dns.fromlinux.fan. mai linux.fan. 10800 I MX 10 meli.fromlinux.fan. mai linux.fan. 10800 IN TXT "MaiLinux, o lau Blog ua tuʻufaʻatasia mo le Polokalama Loloto" ad-dc.desdelinux.fan. 10800 I SE 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 I LE 192.168.10.8 meli.fromlinux.fan. 10800 IN A 192.168.10.9 proxyweb.fromlinux.fan. 10800 IN A 192.168.10.6 sysadmin.fromlinux.fan. 10800 IN I le 192.168.10.1 mai le linux.fan. 10800 I SOA dns.fromlinux.fan. root.dns.fromlinux.fan. 1 86400 3600 604800 10800 ;; Taimi ole fesili: 0 msec ;; SERVER: 192.168.10.5 # 53 (192.168.10.5) ;; WHEN: Sun Jan 29 11:44:18 EST 2017 ;; Tele XFR: 13 faʻamaumauga (feʻau 1, bytes 385)

buzz @ sysadmin: ~ $ eli 10.168.192.in-addr.arpa axfr
; << >> DiG 9.9.5-9 + deb8u1-Debian << >> 10.168.192.in-addr.arpa axfr ;; filifiliga i le lalolagi atoa: + 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 I NS dns.fromlinux.fan. 1.10.168.192.in-addr.arpa. 10800 I PTR sysadmin.fromlinux.fan. 3.10.168.192.in-addr.arpa. 10800 I PTR ad-dc.fromlinux.fan. 4.10.168.192.in-addr.arpa. 10800 I PTR faila faila.fromlinux.fan. 5.10.168.192.in-addr.arpa. 10800 I PTR dns.fromlinux.fan. 6.10.168.192.in-addr.arpa. 10800 I PTR sui sui.fromlinux.fan. 7.10.168.192.in-addr.arpa. 10800 I PTR blog.desdelinux.fan. 8.10.168.192.in-addr.arpa. 10800 I PTR ftpserver.fromlinux.fan. 9.10.168.192.in-addr.arpa. 10800 I PTR meli.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 ;; Taimi ole fesili: 0 msec ;; SERVER: 192.168.10.5 # 53 (192.168.10.5) ;; WHEN: Sun Jan 29 11:44:57 EST 2017 ;; Fua ole XFR: 11 faamaumauga (feau 1, bytes 352)

buzz @ sysadmin: ~ $ dig IN SOA mai le linux.fan
buzz @ sysadmin: ~ $ dig IN MX mai le linux.fan buzz @ sysadmin: ~ $ dig IN TXT mai le linux.fan
buzz @ sysadmin: ~ $ talimalo dns
dns.desdelinux.fan ei ai le tuatusi 192.168.10.5
buzz @ sysadmin: ~ $ talimalo sysadmin
sysadmin.desdelinux.fan ei ai le tuatusi 192.168.10.1 ... Ma nisi lava siaki tatou te manaʻomia
  • E oʻo mai i le taimi nei, o loʻo ia tatou le faʻavae mo le DNS server i la matou SME network. Matou te faʻamoemoe na e fiafia i le faʻataʻitaʻiga atoa, o fea na faigofie, a ea? 😉

Matou te faʻapipiʻi ma faʻatulaga le DHCP

[Root @ dns ~] # yum faatuina dhcp
Uila plugins: saoasaoa o le moto, centos-base langpacks | 3.4 kB 00:00:00 centos-updates | 3.4 kB 00:00:00 Utaina faʻata televave mai cache i hostfile Faʻamautuina faʻalagolago -> tamoʻe suʻega faʻataʻitaʻiga ---> afifi dhcp.x86_64 12: 4.2.5-42.el7.centos tatau ona faʻapipiʻi -> Faʻamautuina faʻalagolago na faʻamamaina Faʻamaoniga faalagolago =________________________________________ == =________________________________________ ==== =________________________________________ Afifiina Faʻataʻitaʻiga Lisi Teuina = === ==== =________________________________________ ==== =________________________________________ ==== ============ Faapipiiina: dhcp x86_64 12: 4.2.5-42.el7.centos-base 511k Transaction Aotelega ==== ============ ==== ==== ==== ==== ============ Faʻapipiʻi 1 Afifi Aofaʻi tele lapoʻa: 511k Faʻapipiʻi tele: 1.4 M O lenei ua lelei [y / d / N]: y Lolomiina afifi: dhcp-4.2.5-42. el7.centos.x86_64.rpm | 511 kB 00:00:00 Faʻatautaia o fefaʻatauaʻiga Faʻatautaia le faʻatautaia o fefaʻatauaʻiga Faʻatautaia le faʻatautaia o pisinisi: 12: dhcp-4.2.5-42.el7.centos.x86_64 1/1 Siakiina: 12: dhcp-4.2.5-42. el7.centos.x86_64 1/1 Faapipiiina: dhcp.x86_64 12: 4.2.5-42.el7.centos Faia!

[root @ dns ~] # nano /etc/dhcp/dhcpd.conf
# # DHCP Server Faʻamaumauga faila. # vaai /usr/share/doc/dhcp*/dhcpd.conf.example # see dhcpd.conf (5) tamaloa itulau # ddns-update-style interim; ddns-faʻafouga luga; ddns-domainname "desdelinux.fan."; ddns-rev-domainname "in-addr.arpa."; le amanaʻia le tagata faʻatau-faʻafouga; pule; filifiliga ip-lafo i luma; filifiliga domain-name "desdelinux.fan"; # filifiliga ntp-servers 0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org, 3.pool.ntp.org; aofia ai le "/etc/dhcp.key"; sone mai le linux.fan. {tulaga muamua 127.0.0.1; ki dhcp-ki; } sone 10.168.192.in-addr.arpa. {tulaga muamua 127.0.0.1; ki dhcp-ki; } fefaʻasoaaʻi-laina toe tuʻufaʻatasi {subnet 192.168.10.0 netmask 255.255.255.0 {filifiliga router 192.168.10.1; filifiliga subnet-mask 255.255.255.0; filifiliga faasalalau-tuatusi 192.168.10.255; filifiliga filifiliga-igoa-tautua 192.168.10.5; filifiliga netbios-igoa-tautua 192.168.10.5; tele 192.168.10.30 192.168.10.250; }} # FAʻAIʻU dhcpd.conf

[aa @ dns ~] # dhcpd -t
Internet Systems Consortium DHCP Server 4.2.5 Pule Tau Fatuga 2004-2013 Initaneti Consortium. Ua taofia aia tatau uma. Mo faʻamatalaga, faʻamolemole asiasi https://www.isc.org/software/dhcp/ Le sailia le LDAP talu ai ldap-server, ldap-port ma ldap-base-dn e leʻi faʻamaotiina mai i le faila faila

[root @ dns ~] # systemctl faʻatagaina le dhcpd
Fausia symlink mai /etc/systemd/system/multi-user.target.wants/dhcpd.service i le /usr/lib/systemd/system/dhcpd.service.

[Root @ dns ~] # systemctl amata dhcpd

[root @ dns ~] # systemctl tulaga dhcpd
● dhcpd.service - DHCPv4 Server Daemon Loaded: utaina (/usr/lib/systemd/system/dhcpd.service; mafai; tagata faʻatau preset: le atoatoa) Toaga: toaga (tamoʻe) talu dom 2017-01-29 12:04:59 LENEI T; 23s talu ai Docs: man: dhcpd (8) man: dhcpd.conf (5) Autu PID: 2381 (dhcpd) Tulaga: "Tuʻuina ato ..." 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]: Inisetiute Faʻavae Nusipepa DHCP Server 4.2.5 Ian 29 12 : 04: 59 dns dhcpd [2381]: Pule Tau Fatuga 2004-2013 Initaneti Faʻatonu Consortium. Ian 29 12:04:59 dns dhcpd [2381]: Ua taofia aia tatau uma. Ian 29 12:04:59 dns dhcpd [2381]: Mo faʻamatalaga, faʻamolemole asiasi ane https://www.isc.org/software/dhcp/ Jan 29 12:04:59 dns dhcpd [2381]: Le sailia LDAP talu ldap -server, ldap-port ma ldap-base-dn e leʻo faʻamaoti mai i le config file Jan 29 12:04:59 dns dhcpd [2381]: Wrote 0 lisi i lisi lisi. Ian 29 12:04:59 dns dhcpd [2381]: Faʻalogo i le LPF / eth0 / 52: 54: 00: 12: 17: 04 / toe faʻatulagaina Jan 29 12:04:59 dns dhcpd [2381]: Auina atu i le LPF / eth0 / 52: 54: 00: 12: 17: 04 / redlocal Ian 29 12:04:59 dns dhcpd [2381]: Auina atu i le mataʻupu / fallback / fallback-net Ian 29 12:04:59 dns systemd [1]: Amata DHCPv4 Server Daemon.

O le a le mea o totoe e fai?

Faigofie. Amata se Windows 7 poʻo seisi tagata maʻi ma Free Software ma amata suʻesuʻe ma siaki. Na matou faia ma tagata e toʻalua: fitu.fromlinux.fan y suse-desktop.fromlinux.fan. O siaki na faapea:

buzz @ sysadmin: ~ $ talimalo fitu
fitu.fromlinux.fan ei ai le tuatusi 192.168.10.30

buzz @ sysadmin: ~ $ talimalo fitu.fromlinux.fan
fitu.fromlinux.fan ei ai le tuatusi 192.168.10.30

buzz @ sysadmin: ~ $ eli IN TXT fitu.fromlinux.fan
.... ;; FESILI FESILI:; fitu.fromlinux.fan. I TXT ;; TALI Vaega: fitu.desdelinux.fan. 3600 IN TXT "31b7228ddd3a3b73be2fda9e09e601f3e9"....

Matou te toe faʻaigoaina le 'au "fitu" i le "LAGER" ma toe amata. A maeʻa ona toe amata le LAGER fou, ona matou siaki lea:

buzz @ sysadmin: ~ $ talimalo fitu
Talimalo fitu e le maua: 5 (MUSU E FAI)

buzz @ sysadmin: ~ $ talimalo fitu.fromlinux.fan
Host fitu.desdelinux.fan e le maua: 3 (NXDOMAIN)

uʻamea@sysadmin: ~ $ talimalo talimalo
lager.desdelinux.fan ei ai le tuatusi 192.168.10.30

uʻamea@sysadmin: ~ $ talimalo lager.fromlinux.fan
lager.desdelinux.fan ei ai le tuatusi 192.168.10.30

buzz @ sysadmin: ~ $ dig IN TXT lager.fromlinux.fan
.... ;; FESILI FESILI:; lager.fromlinux.fan. I TXT ;; TALI Vaega: lager.fromlinux.fan. 3600 IN TXT "31b7228ddd3a3b73be2fda9e09e601f3e9"....

E faʻatatau ile suse-desktop client:

buzz @ sysadmin: ~ $ talimalo suse-dektop
Host suse-dektop le maua: 5 (MUSU E FAI)

buzz @ sysadmin: ~ $ talimalo suse-desktop
suse-desktop.desdelinux.fan ei ai le tuatusi 192.168.10.33

buzz @ sysadmin: ~ $ talimalo suse-desktop.fromlinux.fan
suse-desktop.desdelinux.fan ei ai le tuatusi 192.168.10.33

buzz @ sysadmin: ~ $ talimalo 192.168.10.33
33.10.168.192.in-addr.arpa igoa igoa faʻailoga suse-desktop.desdelinux.fan.

buzz @ sysadmin: ~ $ talimalo 192.168.10.30
30.10.168.192.in-addr.arpa igoa igoa faʻailoga LAGER.desdelinux.fan.
buzz @ sysadmin: ~ $ dig -x 192.168.10.33
.... ;; FESILI FESILI:; 33.10.168.192.in-addr.arpa. I PTR ;; TALI Vaega: 33.10.168.192.in-addr.arpa. 3600 I PTR suse-desktop.fromlinux.fan. ;; AUTHORITY VAEGA: 10.168.192.in-addr.arpa. 10800 I NS dns.fromlinux.fan. ;; Vaega FAAOPOOPO: dns.fromlinux.fan. 10800 I LE 192.168.10.5 ....

buzz @ sysadmin: ~ $ dig IN TXT suse-desktop.fromlinux.fan ....
; suse-desktop.desdelinux.fan. I TXT ;; TALI Vaega: suse-desktop.desdelinux.fan. 3600 I LE TXT "31b78d287769160c93e6dca472e9b46d73"

;; TUSI FAʻAMATALAGA: desdelinux.fan. 10800 I NS dns.fromlinux.fan. ;; Vaega FAAOPOOPO: dns.fromlinux.fan. 10800 I LE 192.168.10.5
....

Seʻi tatou tamomoʻe foi i tulafono nei

[root @ dns ~] # eli mai le linux.fan axfr
; << >> DiG 9.9.4-RedHat-9.9.4-29.el7_2.4 << >> desdelinux.fan axfr ;; filifiliga a le lalolagi: + cmd mai le linux.fan. 10800 I SOA dns.fromlinux.fan. root.dns.fromlinux.fan. 6 86400 3600 604800 10800 mai le linux.fan. 10800 I NS dns.fromlinux.fan. mai linux.fan. 10800 I MX 10 meli.fromlinux.fan. mai linux.fan. 10800 IN TXT "MaiLinux, o lau Blog ua tuʻufaʻatasia mo le Polokalama Loloto" ad-dc.desdelinux.fan. 10800 I SE 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 I LE 192.168.10.30 meli.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 I le 192.168.10.1 mai le linux.fan. 10800 I SOA dns.fromlinux.fan. root.dns.fromlinux.fan. 6 86400 3600 604800 10800

I galuega faatino i luga atu, na matou faamamafaina i luga lototele le TTL -i sekone- mo komepiuta ma IP tuatusi faʻatagaina e le DHCP tautua i latou o loʻo iai se faʻamatalaga manino o le TTL 3600 na tuʻuina mai e le DHCP. O IPs tumau e taʻitaʻia e le $ TTL o 3H -3 itula = 10800 sekone- folafolaina i le faamaumauga a le SOA o faila sone taʻitasi.

E mafai ona latou siakiina le sone faʻafeagai i le auala lava e tasi.

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

Isi tulafono sili ona manaia o:

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

Faʻatonutonuina o faila a Sone

A maeʻa ona sau le DHCP i le faʻamalosia o le toe faʻafouina o faila sone o le igoaAfai tatou te manaʻomia le fesuiaʻiga lima se faila sone, e tatau ona tatou faia le auala lea, ae le i luma o le iloa sina mea e uiga i le faʻagaioiga o le aoga rndc mo le pule igoa tautua.

[root @ dns ~] # tamaloa rndc
....
       liu aisa [vasega [vasega [vaʻai]]]
           Taofi le faʻafouga i se sone malosi. Afai e leai se sone faʻapitoa, ona faʻataʻamilomilo uma lea o sone. E faʻatagaina lenei faʻatonutonuina o tusi e faia i se sone e masani ona faʻafou e le malosi fou. E mafua ai foi ona suia suiga i le faila faila i totonu o le faila sili. O taumafaiga faʻafouina malosi uma o le a teʻena a o le sone ua faʻisa.

       suavai [sone [vasega [vaʻai]]]
           Faʻafesoʻotaʻiga faʻafouga i se aisa malo faʻaʻaisa. Afai e leai se sone faʻapitoa, o lona uiga ua faʻaʻaofia uma nofoaga faʻapipiʻi. Lenei mafua ai le 'auʻaunaga e toe uta le sone mai disk, ma toe faʻaaogaina le faʻafouina malosi pe a maeʻa le avega. A maeʻa se sone ona liu suavai, o le a le toe teʻena ni faʻafouga malosi. Afai ua suia le sone ma o loʻo faʻaaoga le filifiliga i le ixfr-mai-eseesega, ona faʻafouina lea o le faila faila e atagia ai suiga i le sone. A leai, afai ua suia le sone, soʻo se faila faila o loʻo i ai nei o le a aveʻesea. ....

O le a, na e manatu o le a ou tusia le atoa tusi lesona? ... se fasi ma latou o i le taʻavale. O mea o totoe ou te tuʻuina atu ia te oe. 😉

Autu:

  • rndc freeze [sone [vasega [vaʻai]]], taofia le tumau le toe faʻaleleia o se sone. Afai e le faʻamaoti mai se tasi, o le a faʻaʻaisa uma. O le faʻatagaina le faʻatonutonuina o le sone faʻaisa pe o sone uma. Soʻo se malosi faʻafouina o le a teʻena aisa.
  • rndc liu suavai [sone [vasega [vaʻai]]], faʻafaigofie faʻafouina malosiaga luga o le muamua paʻa sone. E toe ave e le DNS server le faila o le sone mai le disk, ma toe faʻafouina malosiaga e toe faʻamalosia pe a maeʻa le toe uta.

Lapataiga e tatau ona faia pe a tatou lima faʻasaʻo se sone faila? Tutusa pei o tatou o faia, e aunoa ma le faʻagaloina e faʻateleina le numera numera i le 1 poʻo le serial ae e leʻi sefeina le faila ma suiga mulimuli.

Faataitaiga:

[Root @ dns ~] # rndc liu aisa mai le linux.fan

[root @ dns ~] # nano /var/named/dynamic/db.fromlinux.fan
Ou te fesuiaʻia le sone faila mo soʻo se mafuaʻaga, tatau pe leai. Ou te sefeina suiga

[Root @ dns ~] # rndc liu suavai mai linux.fan
O le sone toe uta ma liu suavai na amata. Siaki le ogalaau e vaʻaia ai le faʻaiuga.

[root @ dns ~] # journalctl -f
Ian 29 14:06:46 dns igoa [2257]: liu suavai 'desdelinux.fan/IN': manuia
Ian 29 14:06:46 dns igoa [2257]: sone mai linux.fan/IN: sone serial (6) le suia. sone ono le mafai ona faʻamatuʻu atu i pologa.
Ian 29 14:06:46 dns igoa [2257]: sone desdelinux.fan/IN: utaina serial 6

O le mea sese i le taimi ua teʻa, lea e faʻaali mai i le mumu i luga o le console, e mafua mai i le mea moni na ou "faʻagaloina" e faʻateleina le numera numera i le 1. Afai na ou mulimuli i le faʻatinoga saʻo, o le mea na tupu o le:

[root @ dns ~] # journalctl -f
- Laʻau amata i le Sun 2017-01-29 08:31:32 EST. - Ian 29 14:06:46 dns igoa [2257]: sone desdelinux.fan/IN: utaina serial 6 Ian 29 14:10:01 dns systemd [1]: Amata le Sauniga 43 o aʻa aʻa. Ian 29 14:10:01 dns systemd [1]: Amata le Sauniga 43 o le aʻa aʻa. Ian 29 14:10:01 dns CROND [2693]: (root) CMD (/ usr / lib64 / sa / sa1 1 1) Jan 29 14:10:45 dns igoa [2257]: mauaina le faʻatonutonu laina auala 'liu aisa mai le linux. fan 'Ian 29 14:10:45 dns igoa [2257]: liu aisa' desdelinux.fan/IN ': manuia Ian 29 14:10:58 dns igoa [2257]: mauaina pulea auala faatonuga' thaw desdelinux.fan 'Jan 29 14:10:58 dns igoa [2257]: liu suavai 'desdelinux.fan/IN': manuia Ian 29 14:10:58 dns igoa [2257]: sone desdelinux.fan/IN: faila faila ua tuai: aveʻese faila faila faila Jan 29 14:10:58 dns igoa [2257]: sone desdelinux.fan/IN: utaina serial 7
  • Le au faitau, uo ou te toe fai atu e tatau ona e faitau ma le faʻaeteete iʻuga o poloaʻiga. Mo se mea na faʻaaluina tele e le au atiaʻe polokalame tele o poloaʻiga taʻitasi, tusa poʻo le a lona faigofie.

Aotelega

E oʻo mai i le taimi nei ua matou feagai ma le faʻatinoina o le DNS - DHCP paʻaga, taua ma taua auaunaga mo le lelei faʻatinoina o la matou SME Network, e faʻasino i le faʻatagaina o tuatusi malosi e ala ile DHCP ma le iugafono o komipiuta ma igoa igoa e ala i le DNS.

Matou te faʻamoemoe lava ua e fiafia i le faʻataʻitaʻiga atoa pei o matou. E ui e foliga mai e sili atu ona faigata le faʻaogaina o le console, e sili atu ona faigofie ma sili atu aʻoaʻoga e faʻatino ai se tautua i le UNIX® / Linux ma lana fesoasoani.

Latou te faʻamagaloina aʻu mo soʻo se faʻauiga sese o manatu na mafaufauina, fausiaina, tusiaina, toe iloiloina, toe tusia, ma lolomiina i le gagana a Shakespeare, ae le o Cervantes. 😉

Le tilivaina atu

Ou te manatu e tai tutusa lava - ma faʻamatalaga faʻaopoopo i luga o faamaumauga a DNS - ae i le Debian. E le mafai ona galo ia tatou lena tufatufaina, a ea?


O mataupu o le tusitusiga e tausisi ia tatou mataupu silisili o amio lelei faʻatonu. E lipotia se mea sese kiliki iinei.

15 manatu, tuʻu lau

Tuʻu lau faamatalaga

o le a le lomia lou tuatusi imeli.

*

*

  1. E tali atu mo faʻamatalaga: Miguel Ángel Gatón
  2. Faamoemoega o faʻamatalaga: Pulea le SPAM, faʻamatalaga pulega.
  3. Tulaga faʻatulafonoina: Lau maliega
  4. Fesoʻotaʻiga o faʻamatalaga: O faʻamatalaga o le a le fesoʻotaʻi atu i isi vaega vagana i tulafono faʻatulafonoina.
  5. Teuina o faʻamatalaga: Faʻamaumauga tuʻufaʻatasia e Occentus Networks (EU)
  6. Aia Tatau: I soo se taimi e mafai ai ona e faʻatapulaʻaina, toe maua ma aveʻese au faʻamatalaga.

  1.   Christian Merchan malo

    Faafetai tele lava mo lau galuega faamalo i le tusiaina o na tusitusiga fua. O le a aoga tele ia te aʻu

  2.   Feterika malo

    Ma faafetai tele lava, Cristian, mo le mulimuli mai ia te aʻu ma mo lau iloiloga o lenei tulaga. Manuia!

  3.   Ismael Alvarez Wong malo

    Ina ua maeʻa ona tilotilo muamua i lenei pou fou e Federico, o le sili atu tomai faʻapitoa na vaʻaia i le vaega atoa «PYMES» ua toe vaʻaia foi; i se faʻaopopoga i le sili auiliiliga o loʻo faʻailoa mai ai lou tulaga i luga o lua o le sili ona taua auaunaga (DNS ma DHCP) o soʻo se upega tafailagi. I lenei taimi ma e le pei o aʻu tala muamua, o loʻo ia te aʻu le lona 2 faʻamatalaga o loʻo talia pe a maeʻa ona faʻataʻitaʻia le mea o loʻo taʻua i lenei tulaga.

  4.   crespo88 malo

    Leai ni tala, pa '400 !!! Faʻafetai lava aua ua e iloa lelei na ou faitauina au pou ma e le mafai ona matou fesili mo nisi mea. E te amata i se faʻalapotopotoga sili ona lelei, mai le faʻafefea ona faʻapipiʻi ma seti le tagata lava ia desktop, o le nofoaga faigaluega o le faʻavae, o le lagona o le avea ma na 'upega tafaʻilagi tautua e te faʻamatalaina lelei. Sa e aʻe ma e ui e moni o le tulaga ua faʻateleina, e moni na e tusia ma lolomiina mo i latou e le atoa nai lo i latou o amataina, mo i latou na pei o aʻu mo sina taimi ma mo sili ona alualu i luma.
    I le aluga o taimi na ou maua ai le faʻaiuga ua ou iloa ua toʻatele ua taunuʻu mai, o le talitonuga, o le mea e taugata tele ai tatou e maua mo le faigofie mea moni o le le mananaʻo e faitau, aua o le faʻataunuʻuina ua sili atu ona faigofie pe a tatou iloa mea o tatou faia, aisea ???, o fesili, o fea e maua ai ma faʻafefea ona o ese mai le mea sese e maua ai le tele tiga o le ulu pe a tatou le iloa poʻo fea na latou o mai ai, aoga le redundancy.
    Mo lenei mafuaʻaga, ou te le manaʻo ia te oe e tuʻulafoaʻi i lalo o na talitonuga elemeni elemeni o le a e aofia ai e uiga i DNS faʻamaumauga i le isi lolomiina e pei ona e faʻasilasilaina, sili atu pe a oʻo mai i le pele ma pele DEBIAN.
    FAAFETAI TELE LOA ma o loʻo matou faʻatali.

  5.   tagata faʻaaoga malo

    Sili ona lelei pei o taimi uma Fico! Ou te faʻatali mo le Debian version, ua ou taʻalo mea uma ile distro mo le tele o tausaga.

  6.   Feterika malo

    Wong: O lou manatu pe a maeʻa le faitau e taua tele. Ou te faʻatali i au tala pe a e faʻataʻitaʻia le aano, aua ou te iloa o le auala lena e te manaʻo ai e faia. 😉

  7.   Feterika malo

    Crespo: E pei ona masani ai, o au manatu e talia lelei. Ua ou vaʻaia ua e mauaina le laina lautele na ou siitiaina i le tuʻufaʻatasiga o lenei faʻasologa. Ou te faamoemoe e pei o oe, e toatele ua uma ona matauina. Faʻafetai mo lau faamatalaga.

  8.   Feterika malo

    Dhunter: Lelei e toe faitau oe! E te le tau faʻatali umi. E oʻo mai i le Aso Gafua i le mea sili ona lata mai -pe muamua foi - o le a maeʻa mo le lolomiina. Aua neʻi e manatu e faigofie ia te aʻu ona ufiufi ni distros eseʻese se tolu, ae o le Faʻataʻitaʻi Faitauga o loʻo talosagaina. E le gata ia Debian ma Ubuntu, ae o le Tolu faʻamasani i SMEs.

  9.   crespo88 malo

    Afai na e lolomiina, talu ai e te mafaia, matou te lagolagoina oe ma matou iloa o le a e mulimuli i lena laina.
    I le avea ai o se tagata poto tele, ou te faʻatali mo le tatalaina o Debian ma nifo maai. E manaia pe a fai e te ufiufi laʻititi e uiga i le NTP. Sl2 ma se opo lapoa. Afai na aʻoaʻoina aʻu e oʻu faiaoga i mea uma faapena, HAHAJJA, Platinum Degree, HAHAJJA.

  10.   Feterika malo

    O le tulaga o auiliiliga i poloaʻiga galuega faatino e talafeagai e faʻaalia ai lona taua. Latou fai mai tele. E moni e toʻaitiiti tala e faʻamatalaina lenei tulaga o auiliiliga, aua latou te manatu o le a umi ma mamafa tusitusiga e faitau. Ia, o se vaega o le galuega a le SysAdmin o le faitau o na galuega mamafa ma auiliiliina, e le gata i le feagai ai ma se faʻafitauli, ae faʻapea foi i luma o siaki.

  11.   Ismael Alvarez Wong malo

    Talofa Federico, na ou folafola atu muamua, e tusia ni faamatalaga ina ua maeʻa ona ou suʻesuʻeina ma le totoʻa le pou na fesiligia; Ia, ole latou lea e sosoʻo ai:
    - Sili metotia ae le o le fausiaina o le TSIG ki mo DNS malosi faʻafouina e DHCP, kopiina tutusa rndc.key ki pei dhcp.key, lenei foliga mai "matua faigofie" faʻaalia o le sini e le gata na o le poto ole HOWTO-INSTALL-DNS - & - DHCP ae aʻoaʻo mai matou ia mafaufau, 5 STARS FOR THE AUTHOR.
    - Matua manaia i le DNS faʻatulagaina faila, names.conf, o le i ai o le laina «faʻatagaina-fesiitai {localhost; 192.168.10.1; }; » e faʻataʻitaʻi ai le Domain «desdelinux.fan» naʻo le galuega a le SysAdmin ma le localhost (o le DNS server lava ia), ma faʻapipiʻi foʻi le ki TSIG e faʻafou ai le DNS mai le DHCP.
    - Lelei tele le fausiaina o sone tuʻusaʻo ma feliuaʻi o le DNS faʻatasi ai ma le "auiliili" faʻamalamalamaga o a latou ituaiga o faʻamaumauga, faʻapea foi ma le faʻatinoina o le faʻatonuga "# named-checkconf -zp" e siaki uma ai faʻaupuga a le igoa na muamua atu i lona faigata toe setiina, faʻapea foʻi ma faʻataʻitaʻiga o le tamoʻe i le "eli" faʻatonuga e faʻamaonia ai ituaiga eseese o DNS faʻamaumauga.
    . I le faʻatulagaina DHCP (faʻaaogaina le /etc/dhcp/dhcpd.conf faila):
    - Faʻafefea ona faʻaopopo la matou fesoʻotaʻiga i le lotoifale ma lona tulaga mo tuatusi IP malosi e tuʻuina atu, le faʻauigaina o le igoa-server, ma isi; faʻapea foʻi ma le faʻafefea ona taʻu atu i le DHCP e faʻafouina DNS faʻamaumauga e ala i le faʻaaogaina o le "ddns- ..." laina i lona faʻatulagaina.
    . A maeʻa ona faʻagaioia mea uma, 5 STARS FOR THE AUTHOR, i le faʻatinoina ole poloaʻiga "# dig desdelinux.fan axfr" e siaki le TTL o komupiuta i luga o le LAN o loʻo iai IP IP o latou na maoaʻe IP tofia.
    . I le iuga, sili, le faʻatonutonu suiga o faila Zones e ala i le faʻamalo muamua i le "# rndc freeze desdelinux.fan", ona faia ai lea o le fesuiaiga ma mulimuli ane faʻamamaina i latou i le "# rndc thaw desdelinux.fan"
    . MA LE LELEI, O MEA UMA NA FAIA MAI LE TERMINAL.
    Tuʻu pea Fico.

    1.    fiafiaga malo

      Talofa,
      Ik kom net kijken, dit omdat ik probeer te achterhalen hoe het kan dat alles gedeeld en verwijderd wordt op mijn computer zelfs mijn foto's. Ik heb totaal geen control meer over mijn eigen computer on mobiel.
      Het zit m dus ook in het dns i dhcp. Ik weet echt niet hoe ik dit moet oplossen en het kan verwijderen. Misschien dat iemand mij oe fia fesoasoani? Dit is namelijk buiten mij om geinstalleerd. Walgelijk gedrag vind ik het.

  12.   Feterika malo

    Wong: o lau faamatalaga faʻaopopo le tusitusiga. Matua, ua faʻaalia mai na e suʻesuʻeina maeʻaeʻa. A leai, e le mafai ona e faia se tala i le tulaga o auiliiliga. Na ona faʻaopopo lena faʻataga-fesiitaʻi E faʻaaoga faʻapitoa lava pe a fai sa matou iai le pologa DNS ma matou faʻatagaina le faʻaliliuina o sone mai le matai i ai. Ou te faʻaaogaina lena auala aua o se faigofie-e-faʻatino faiga mo le faia o siaki le mataʻutia mai se tasi komepiuta. Faʻafetai tele lava mo lau faʻailoga 5. Faʻafeiloaʻi! ma o le a ou faʻatali pea mo oe i laʻuisi tala.

  13.   IgnacioM malo

    Talofa Federico. Ou te iloa ua fai si ou tuai, ae ou te fia fesili atu ia te oe se fesili.
    Mata e fesoasoani lenei faiga ia te aʻu pe a ou manaʻo e tusi se laupepa i laʻu 'auʻaunaga vps?

    O 15 minute uma lava ou te mauaina ai nei polokalame:

    DHCPREQUEST luga ole eth0 ile uafu 67 (xid =…)
    DHCPACK mai le (xid =…)
    noatia i - faʻafouga i le 970 sekone.

    Ma mai le mea ou te malamalama ai e tatau ona ou faia se A faʻamaumauga ma laʻu vaega ma le ip o laʻu tuuto tuuto.

    * Ou te faʻamalo ma faʻafetai ia te oe mo lenei tusitusiga, ou te le iloa pe o le mea na ou sailia ae na ou mauaina e sili ona manaia ma faʻamatala lelei. Na ou mauaina foʻi le fautuaga mai le "DNS ma le BIND" ua uma ona ou faitatala mo sina mea ma e foliga mai e ese le manaia.

    Faʻafeiloaʻiga mai Atenitina!

    1.    antonio valdes toujague malo

      faʻamolemole faʻafesoʻotaʻi mai ia te aʻu valdestoujague@yandex.com