install and config bind9(named) on linux server

來源:互聯網
上載者:User

標籤:linux   dns   bind   network   

This article shows my process of installing and configuring bind9 DNS server on a linux server. I didn‘t touch every aspects of bind9, but following the process, a DNS server is configured with A/AAAA, NAPTR and SRV resource record types. The DNS server is able to be used for testing.

## download bind-9.10.0-P1.tar.gzhttps://www.isc.org/downloads/bind/## untar the package tar xzvf bind-9.10.0-P1.tar.gz## config and install cd bind-9.10.0-P1./configure ./make ./make install ## test named is installednamed -vnamed -g ## generate rndc.keycd /etcrndc-confgen -a## generate /etc/named.conf with contents cat /etc/named.confzone "lingcloud.com" {type master;file "/etc/bind/zones/lingcloud.com.db";};## config zone with example contentscat /etc/bind/zones/lingcloud.com.db; BIND data file for lingcloud.com;$TTL 14400 ;lingcloud.com;start of authority resource record type. Every domain must have a Start of Authority record at the cutoverts parent domain.@ IN SOA ns1.lingcloud.com. host.lingcloud.com. (201006601 ; Serial7200 ; Refresh120 ; Retry2419200 ; Expire604800) ; Default TTL;; NS record indicate which name server are authoritative for the zone/domain. It is primarily used if you wlingcloud.com. IN NS ns1.lingcloud.com.;A recordlingcloud.com. IN A 10.41.104.171; ns seems to be name server's ipns1 IN A 10.41.104.232nodeB IN A 10.41.104.171nodeB.realmB IN A 10.41.104.171nodeC IN A 10.41.104.171nodeC.realmC IN A 10.41.104.171;NAPTR recordrealmB IN NAPTR 50 100 "s" "aaa:diameter.tcp" "" _diameter._tcp.srvB.realmB.lingcloud.com.realmC IN NAPTR 51 101 "s" "aaa:diameter.tcp" "" _diameter._tcp.srvC.realmC.lingcloud.com.;SRV record_diameter._tcp.srvB.realmB IN SRV 0 1 3868 nodeB.realmB.lingcloud.com._diameter._tcp.srvC.realmC IN SRV 0 1 3868 nodeC.realmC.lingcloud.com.## start named/usr/local/sbin/named## check named status rndc status## nslookup can be used to query DNS server nslookup> server 127.0.0.1Default server: 127.0.0.1Address: 127.0.0.1#53> lingcloud.comServer:127.0.0.1Address:127.0.0.1#53Name:lingcloud.comAddress: 10.41.104.172> nodeB.lingcloud.comServer:127.0.0.1Address:127.0.0.1#53Name:nodeB.lingcloud.comAddress: 10.41.104.171> set type=NAPTR> realm1.lingcloud.com     Server:127.0.0.1Address:127.0.0.1#53realm1.lingcloud.comnaptr = 50 100 "s" "aaa:diameter.tcp" "" _diameter._tcp.srv1.lingcloud.com.> set type=SRV> _diameter._tcp.srv1Server:127.0.0.1Address:127.0.0.1#53_diameter._tcp.srv1.lingcloud.comservice = 0 1 3868 nodeB.lingcloud.com.

Reference:

http://www.servermom.org/how-to-install-and-setup-bind9-on-ubuntu-server/136/
https://kb.isc.org/article/AA-00768/0/Getting-started-with-BIND-how-to-build-and-run-named-with-a-basic-recursive-configuration.html
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-bind-rndc.html


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.