'ubuntu'에 해당되는 글 1건

  1. 2011.02.12 Ubuntu 서버에서 dns와 Bind9설정하는 법
0. dns  설정하기

다음과 같이 resolv.conf파일을 이용하면 됩니다.

- search 기본적으로 먼저 찾아야 할 Hostname을 위한 domain 이름을 적어줍니다.
  보통 설정하는 호스트의 domain.name을 적어주면 되겠죠. 

$ sudo vi /etc/resolv.conf   
search tera terawords.com
nameserver 222.231.1.100
nameserver 222.231.2.251
nameserver 222.231.3.251


1. bind9 설치 (named설치)

$ sudo apt-get install bind9


2. Zone을 등록합니다.

$ sudo nano /etc/bind/named.conf.local

//
// Do any local configuration here
//
zone "terawords.com" {
        type master;
        file "/etc/bind/db.terawords.com";
};

3. Zone파일을 편집합니다.

$ sudo cp /etc/bind/db.local /etc/bind/db.terawords.com

$ sudo nano /etc/bind/db.terawords.com

$ vi /etc/bind/db.terawords.com

;
; BIND data file for local loopback interface
;
; 도메인 주소 뒤에 ' . ' 주의!!

$TTL    604800
@       IN      SOA     ns.terawords.comroot.terawords.com. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      ns.terawords.com.
@       IN      A       211.233.81.91
www  IN      A       211.233.81.91
mail    IN      A       211.233.81.91
*        IN      A       211.233.81.91

$ sudo /etc/init.d/bind9 restart

'운영체제(OS) > Linux' 카테고리의 다른 글

Virtual User Host 라는 것  (0) 2009.12.31
Posted by tuxxon
이전버튼 1 이전버튼

블로그 이미지
소프트웨어 개발자로서, 세상에 살아가는 과정을 그려보고 싶습니다. 그냥 즐겁게 봐주시기 바랍니다.
tuxxon

공지사항

Yesterday
Today
Total

달력

 « |  » 2024.5
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

최근에 올라온 글

최근에 달린 댓글

글 보관함