Ubuntu 12.04 Server 搭建DNS服务器
2012-12-01 20:12
204 查看
这边简单介绍一下,在Ubuntu 12.04 Server 搭建简单的DNS 服务器#apt-get -y install bind9 bind9utils这里我以 hasee.com 域名为例# cat /etc/name.conf=====================================================// This is the primary configuration file for the BIND DNS server named.//// Please read /usr/share/doc/bind9/README.Debian.gz for information on the// structure of BIND configuration files in Debian, *BEFORE* you customize// this configuration file.//// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local";include "/etc/bind/named.conf.default-zones";=====================================================接下来针对 /etc/bind/named.conf.default-zones 进行域名添加# vim /etc/bind/named.conf.default-zones========================================================// prime the server with knowledge of the root serverszone "." { type hint; file "/etc/bind/db.root";};
// be authoritative for the localhost forward and reverse zones, and for// broadcast zones as per RFC 1912
zone "localhost" { type master; file "/etc/bind/db.local";};
zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127";};
zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0";};
zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255";};
zone "hasee.com" { type master; file "/etc/bind/hasee.local";};
zone "1.in-addr.arpa" { type master; file "/etc/bind/db.192";};=============================================================#cp db.local hasee.local#cp db.127 db.192
#vim hasee.local
#vim db.192
#/etc/init.d/bind9 restartroot@ubuntu:/etc/bind# nslookup> www.hasee.comServer: 127.0.0.1Address: 127.0.0.1#53
Name: www.hasee.comAddress: 192.168.2.104>好这边已经能够正常解析
include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local";include "/etc/bind/named.conf.default-zones";=====================================================接下来针对 /etc/bind/named.conf.default-zones 进行域名添加# vim /etc/bind/named.conf.default-zones========================================================// prime the server with knowledge of the root serverszone "." { type hint; file "/etc/bind/db.root";};
// be authoritative for the localhost forward and reverse zones, and for// broadcast zones as per RFC 1912
zone "localhost" { type master; file "/etc/bind/db.local";};
zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127";};
zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0";};
zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255";};
zone "hasee.com" { type master; file "/etc/bind/hasee.local";};
zone "1.in-addr.arpa" { type master; file "/etc/bind/db.192";};=============================================================#cp db.local hasee.local#cp db.127 db.192
#vim hasee.local
#vim db.192
#/etc/init.d/bind9 restartroot@ubuntu:/etc/bind# nslookup> www.hasee.comServer: 127.0.0.1Address: 127.0.0.1#53
Name: www.hasee.comAddress: 192.168.2.104>好这边已经能够正常解析
相关文章推荐
- Android环境搭建1--ubuntu 12.04 server硬盘安装
- 在ubuntu 12.04上搭建简单的DNS服务器
- UBUNTU SERVER 12.04搭建PHP环境
- 在ubuntu 12.04 x64 搭建VOIP server
- Ubuntu 12.04 server 搭建Android开发环境记录
- 在Ubuntu Server 12.04 LTS上搭建可远程访问的PostgreSQL 9.1环境
- Ubuntu Server 12.04 搭建 hadoop 集群版环境——基于VirtualBox
- ubuntu 12.04(64位 server)下搭建 android2.3/android4.0开发环境及遇到的编译问题
- 在Ubuntu 12.04 64bit上搭建Crtmpserver视频点播服务
- 在virtualbox中安装ubuntu server 12.04,搭建嵌入式开发环境
- 在Ubuntu 12.04 64bit上搭建Crtmpserver视频点播服务
- (转)ubuntu 12.04搭建Adobe Flash Media Server服务
- Ubuntu server 12.04 LTS下 Nginx+uwsgi+Python-Flask 运行环境搭建
- Ubuntu Server 12.04搭建php环境
- 在Ubuntu 12.04 64bit上搭建Crtmpserver视频直播服务
- Ubuntu 7.1 server从无到有搭建jsp/php/rails全能WEB生产环境(二)
- Ubuntu server下搭建Maven私服Nexus
- 如何在Ubuntu 12.04 Server 中安装图形用户界面
- 在 Ubuntu 12.04 Server 上安装部署 Ruby on Rails 应用