[AIX 네트워크 관리 15] TCP/IP (9) 이름 서버(BIND) 구성과 도메인 메일 서버

핵심 정리

  • named 데몬이 이름 서버 기능을 하며 이름 서버 호스트에서 실행되어야 합니다. 예전 이름 primary·secondary·caching-only는 지금의 master·slave·hint에 해당합니다.
  • 구성 파일: conf(기본 /etc/named.conf, 서버 종류·영역·데이터 위치), cache(루트 이름 서버, 예: named.ca), 도메인 데이터 파일(local·data·rev, Standard Resource Record Format), resolv.conf(있으면 이름 서버를 먼저 씀, 이름 서버에서는 꼭 있어야 하며 127.0.0.1을 넣거나 비워 둠). 데이터 파일을 고치면 SOA 일련번호를 늘려야 slave가 바뀜을 알아챕니다.
  • master: options { directory "/usr/local/domain"; }, zone "." { type hint; }, 정방향·역방향 zone … { type master; file …; }, 그리고 SOA·NS·A·PTR 레코드. slave: type slave; masters { 192.9.201.1; };. hint: 루프백 영역과 cache 영역만. 모두 smit stnamed로 켭니다.
  • 도메인 메일 서버: widget.com IN MX 10 black.widget.com 같은 MX·A 레코드, 메일 서버 sendmail.cf의 Cw(도메인 별칭), 클라이언트의 DR(릴레이), NameServOpt, 별칭. MB(사용자별 메일함 위치), MR(이름 바꾸기), MG(메일 그룹), MX 와일드카드(*.widget.com, 인터넷에서는 부적합)도 쓸 수 있습니다. 바꾼 뒤에는 SOA 일련번호를 늘리고 refresh -s named, refresh -s sendmail.
항목 내용
버전 AIX 5.3, AIX 6.1 (내용이 같음)
원문 Networks and communication management — 5.3판 141150쪽, 6.1판 187196쪽
파일 /etc/named.conf, /usr/local/domain/named.ca, named.abc.local, named.abc.data, named.abc.rev, /etc/resolv.conf, sendmail.cf
관련 명령어 named, smit stnamed, refresh -s named, refresh -s sendmail

이름 서버 풀이

계층 네트워크에서는 일부 호스트를 이름 서버로 지정합니다. 이 호스트들이 다른 호스트를 위해 이름을 IP 주소로 풉니다.

named 데몬이 이름 서버 기능을 제어하므로 이름 서버 호스트에서 실행되어야 합니다.

이름 서버를 구성하기 전에 그 서버가 지원하는 네트워크에 어떤 종류가 맞는지 정합니다. 이름 서버의 종류는 여러 가지입니다.

master 이름 서버는 이름→주소 대응 정보가 든 데이터베이스를 실제로 저장합니다. 파일이나 디스크에서 데이터를 적재하며, 자기 도메인의 다른 서버에 권한을 위임할 수 있습니다. slave 이름 서버나 stub 이름 서버는 시스템 시작 때 master 이름 서버에서 특정 권한 영역의 정보를 받고, 그 뒤 주기적으로 master 서버에 정보 갱신을 요청합니다. hint 이름 서버는 필요한 정보를 줄 권한이 있는 다른 서버에 물어 이름 풀이 요청에 답합니다.

참고: 이전 세대의 named 이름 서버는 master 이름 서버를 primary, slave 이름 서버를 secondary, hint 이름 서버를 caching-only 이름 서버라고 불렀습니다.

이름 서버 하나가 권한 영역마다 다른 역할을 할 수 있다는 점을 기억합니다. 예를 들어 이름 서버 호스트 하나가 한 영역에는 master, 다른 영역에는 slave 이름 서버일 수 있습니다. 시스템에 NIS나 NIS+가 설치되어 있으면 이 서비스도 이름 풀이를 제공할 수 있습니다. 자세한 내용은 Network Information Services (NIS and NIS+) Guide를 봅니다.

이름 서버 구성에는 여러 파일이 관련됩니다.

파일 설명
conf named 데몬이 시작할 때 읽는 파일입니다. conf 파일의 레코드는 named 데몬에게 어떤 종류의 서버인지, 어떤 도메인에 권한이 있는지(권한 영역), 처음 데이터베이스를 설정할 데이터를 어디서 가져올지 알려 줍니다. 기본 이름은 /etc/named.conf이지만 named 데몬을 시작할 때 명령줄에 파일 이름과 경로를 지정해 바꿀 수 있습니다. /etc/named.conf를 conf 파일로 쓰려는데 파일이 없으면 syslog 파일에 메시지를 남기고 named가 끝납니다. 그러나 다른 conf 파일을 지정했는데 그 파일이 없으면 오류 메시지를 만들지 않고 named가 계속 실행됩니다.
cache 로컬 캐시 정보가 들어 있습니다. 로컬 캐시 파일에는 네트워크에서 가장 높은 권한의 이름 서버의 이름과 주소가 들어 있습니다. cache 파일은 Standard Resource Record Format을 쓰며, 이름은 conf 파일에서 정합니다.
domain data 보통 도메인 데이터 파일(named 데이터 파일)은 세 개입니다. named local 파일에는 로컬 루프백의 주소 풀이 정보가, named data 파일에는 이름 서버 권한 영역의 모든 기계에 대한 주소 풀이 데이터가, named reverse data 파일에는 권한 영역의 모든 기계에 대한 역방향 주소 풀이 정보가 들어 있습니다. 도메인 데이터 파일은 Standard Resource Record Format을 씁니다. 파일 이름은 사용자가 정하며 conf 파일에서 지정합니다. 관례상 파일 이름에는 데몬 이름(named)이 들어가고, 파일 종류와 도메인 이름은 확장자로 나타냅니다. 예를 들어 도메인 abc의 이름 서버는 named.abc.data, named.abc.rev, named.abc.local 파일을 가질 수 있습니다. named 데이터 파일을 고칠 때는 slave 이름 서버가 새 영역 변경을 제대로 알아채도록 SOA 리소스 레코드의 일련번호를 늘려야 합니다.
resolv.conf 이 파일이 있으면 호스트는 이름을 풀 때 먼저 이름 서버로 갑니다. resolv.conf 파일이 없으면 호스트는 /etc/hosts 파일에서 이름을 풉니다. 이름 서버에서는 resolv.conf 파일이 꼭 있어야 하며, 로컬 호스트 주소나 루프백 주소(127.0.0.1)를 넣거나 비워 둘 수 있습니다. 참고: 리졸버 루틴은 기본 도메인이 설정되어 있어야 합니다. /etc/resolv.conf 파일에 기본 도메인을 설정하지 않았으면 hostname으로 설정해야 합니다.

TTL(Time-to-live)은 리소스 레코드에 지정합니다. 레코드에 TTL을 지정하지 않으면 그 영역의 SOA(start of authority) 레코드에 정의한 minimum 필드 값이 기본값이 됩니다. TTL은 데이터를 영역 밖(캐시)에 저장할 때 데이터가 끝없이 남지 않게 하는 데 씁니다.

도메인 이름 서버 구성하기

이 시나리오에서는 이름 풀이를 할 master 이름 서버, slave 이름 서버, hint 이름 서버를 구성합니다. 이름 서버마다 별도 기계이며, 모두 /etc/named.conf 파일이 구성되지만 내용은 다릅니다. /etc/named.conf는 named 데몬을 시작할 때마다 읽히며, 어떤 종류의 서버(master, slave, hint)인지와 이름 풀이 데이터를 어디서 가져올지 지정합니다. 모든 이름 서버는 BIND 8을 실행합니다.

master 이름 서버는 abc.aus.century.com 영역의 이름 풀이를 제공하도록 구성합니다. 이 시나리오에서 master 이름 서버의 IP 주소는 192.9.201.1, 호스트 이름은 venus.abc.aus.century.com입니다. venus, earth, mars, jupiter 호스트 이름의 이름 풀이를 제공합니다. /etc/named.conf 파일은 named 데몬이 /usr/local/domain 디렉터리에서 데이터 파일을 찾도록 구성합니다. master 이름 서버에 구성할 데이터 파일은 named.ca, named.abc.local, named.abc.data, named.abc.rev입니다.

그다음 slave 이름 서버를 구성합니다. slave 이름 서버의 호스트 이름은 earth.abc.aus.century.com, IP 주소는 192.9.201.5입니다. slave 이름 서버의 /etc/named.conf 파일에는 master 이름 서버의 주소를 지정해 slave 이름 서버가 master의 named.abc.data와 named.abc.rev 파일을 복제하게 합니다. 또 이 서버에는 named.ca와 named.abc.local 데이터 파일을 구성합니다.

그다음 hint 이름 서버를 구성합니다. hint 이름 서버는 호스트 이름과 주소 대응의 로컬 캐시를 저장합니다. 요청한 주소나 호스트 이름이 캐시에 없으면 hint 서버는 master 이름 서버에 연락해 풀이 정보를 얻고 캐시에 더합니다. 또 이 서버에는 named.ca와 named.abc.local 데이터 파일을 구성합니다.

이름 서버의 named 데이터 파일(/etc/named.conf 파일이 아님)의 정보는 모두 Standard Resource Record Format이어야 합니다. named 데이터 파일의 정보에 관한 설명은 Files Reference의 Standard Resource Record Format for TCP/IP를 봅니다.

각 이름 서버의 관리자는 gail.zeus.abc.aus.century.com이며, 각 이름 서버의 로컬 데이터 파일에 지정합니다. 또 이 시나리오에서 루트 이름 서버는 IP 주소가 129.114.1.2인 relay.century.com입니다.

시나리오를 마치면 venus, earth, mars, jupiter 호스트의 이름 풀이를 제공합니다. 역방향 이름 풀이(IP 주소→호스트 이름)도 제공합니다. 풀 수 없는 요청을 받으면 master 이름 서버가 relay.century.com에 연락해 필요한 정보를 찾습니다.

고려할 점

  • 이 따라 하기의 정보는 특정 AIX 버전으로 시험했습니다. AIX 버전과 수준에 따라 결과가 크게 다를 수 있습니다.

1단계. master 이름 서버 구성하기

  1. master 이름 서버에서 /etc/named.conf 파일을 엽니다. /etc 디렉터리에 /etc/named.conf 파일이 없으면 다음 명령으로 만듭니다.
text
touch /etc/named.conf

/etc/named.conf 파일을 다음처럼 구성합니다.

  1. options 스탠자에 directory 절을 지정합니다. 그러면 named 데이터 파일이 /usr/local/domain 디렉터리를 기준으로 한 상대 경로를 쓸 수 있습니다. 이 시나리오에서는 다음을 넣었습니다.
text
options {
    directory "/usr/local/domain";
};

여기서 디렉터리를 지정하지 않으면 필요한 데이터 파일을 /etc 디렉터리에서 찾습니다.

  1. 정의한 영역 밖의 레코드 데이터를 캐시할 수 있도록 hint 영역 파일의 이름을 지정합니다. 이 시나리오에서는 다음을 넣었습니다.
text
zone "." IN {
    type hint;
    file "named.ca";
};
  1. 영역마다, 구성하는 이름 서버의 종류와 이름 서버의 도메인 데이터 파일을 지정하는 스탠자를 넣습니다. 이 시나리오에서 정방향과 역방향 영역의 master 서버는 다음과 같습니다.
text
zone "abc.aus.century.com" in {
    type master;
    file "named.abc.data";
};
zone "201.9.192.in-addr.arpa" in {
    type master;
    file "named.abc.rev";
};
  1. named local 파일의 이름을 정합니다. 예:
text
zone "0.0.127.in-addr.arpa" in {
    type master;
    file "named.abc.local";
};

파일을 편집한 뒤 저장하고 닫습니다.

  1. /usr/local/domain/named.ca 파일을 엽니다. 도메인의 루트 이름 서버 주소를 넣습니다. 이 시나리오에서는 다음을 넣었습니다.
text
; root name servers.
.          IN    NS    relay.century.com.
relay.century.com.   3600000    IN    A     129.114.1.2

파일을 편집한 뒤 저장하고 닫습니다.

  1. /usr/local/domain/named.abc.local 파일을 열고 다음 정보를 넣습니다.
    • 영역의 SOA(start of authority)와 기본 TTL 정보. 이 시나리오에서는 다음을 넣었습니다.
text
$TTL 3h    ;3 hour
@ IN SOA venus.abc.aus.century.com. gail.zeus.abc.aus.century.com.  (
                           1       ;serial
                           3600    ;refresh
                           600     ;retry
                           3600000 ;expire
                           3600    ;negative caching TTL
)
  • 이름 서버(NS) 레코드. 줄 맨 앞에 탭을 넣습니다. named 데몬이 탭을 영역 이름으로 바꿉니다.
text
<tab> IN    NS     venus.abc.aus.century.com.
  • 포인터(PTR) 레코드.
text
1      IN    PTR    localhost.

파일을 편집한 뒤 저장하고 닫습니다.

  1. /usr/local/domain/named.abc.data 파일을 열고 다음 정보를 넣습니다.
    • 영역의 SOA와 영역의 기본 TTL 정보. 이 레코드는 영역의 시작을 나타내며, 영역마다 SOA 레코드는 하나만 허용됩니다. 이 시나리오에서는 다음을 넣었습니다.
text
$TTL 3h    ;3 hour
@ IN    SOA     venus.abc.aus.century.com. gail.zeus.abc.aus.century.com. (
                1       ;serial
                3600    ;refresh
                600     ;retry
                3600000 ;expire
                3600    ;negative caching TTL
)
  • 영역의 모든 master 이름 서버에 대한 이름 서버 레코드. 줄 맨 앞에 탭을 넣습니다. named 데몬이 탭을 영역 이름으로 바꿉니다.
text
<tab> IN    NS       venus.abc.aus.century.com.
  • 이름 서버 권한 영역의 모든 호스트에 대한 이름→주소 풀이 정보.
text
venus        IN    A        192.9.201.1
earth        IN    A        192.9.201.5
mars         IN    A        192.9.201.3
jupiter      IN    A        192.9.201.7

필요하면 정식 이름(CNAME) 레코드, 메일 교환기(MX) 레코드 같은 다른 항목도 넣습니다.

파일을 편집한 뒤 저장하고 닫습니다.

  1. /usr/local/domain/named.abc.rev 파일을 열고 다음 정보를 넣습니다.
    • 영역의 SOA와 기본 TTL 정보. 이 레코드는 영역의 시작을 나타내며, 영역마다 SOA 레코드는 하나만 허용됩니다.
text
$TTL 3h    ;3 hour
@  IN  SOA  venus.abc.aus.century.com. gail.zeus.abc.aus.century.com.  (
                           1       ;serial
                           3600    ;refresh
                           600     ;retry
                           3600000 ;expire
                           3600    ;negative caching TTL
)
  • 이름 서버 레코드 같은 다른 항목. 이런 레코드를 넣으면 줄 맨 앞에 탭을 넣습니다. named 데몬이 탭을 영역 이름으로 바꿉니다. 이 시나리오에서는 다음을 넣었습니다.
text
<tab> IN      NS      venus.abc.aus.century.com.
  • 이름 서버 권한 영역에 들 모든 호스트의 주소→이름 풀이 정보.
text
1                      IN    PTR    venus.abc.aus.century.com.
5                      IN    PTR    earth.abc.aus.century.com.
3                      IN    PTR    mars.abc.aus.century.com.
7                      IN    PTR    jupiter.abc.aus.century.com.

파일을 편집한 뒤 저장하고 닫습니다.

  1. 다음 명령으로 /etc/resolv.conf 파일을 만듭니다.
text
touch /etc/resolv.conf

이 파일이 있으면 호스트가 이름 풀이에 이름 서버를 써야 한다는 뜻입니다.

  1. /etc/resolv.conf 파일에 다음 항목을 넣습니다.
text
nameserver 127.0.0.1

127.0.0.1은 루프백 주소이므로 호스트가 자기 자신을 이름 서버로 씁니다. /etc/resolv.conf 파일에는 다음과 비슷한 항목도 넣을 수 있습니다.

text
domain abc.aus.century.com

이 경우 abc.aus.century.com이 도메인 이름입니다. 파일을 편집한 뒤 저장하고 닫습니다.

  1. smit stnamed SMIT 빠른 경로로 named 데몬을 켭니다. 그러면 시스템이 시작할 때마다 데몬이 초기화됩니다. named 데몬을 지금 시작할지, 다음 시스템 재시작 때 시작할지, 둘 다 할지 고릅니다.

2단계. slave 이름 서버 구성하기

slave 이름 서버를 구성하려면 다음 절차를 씁니다. 여러 파일을 편집한 다음 SMIT로 named 데몬을 시작합니다.

  1. slave 이름 서버에서 /etc/named.conf 파일을 엽니다. /etc 디렉터리에 /etc/named.conf 파일이 없으면 다음 명령으로 만듭니다.
text
touch /etc/named.conf

/etc/named.conf 파일을 다음처럼 구성합니다.

  1. options 스탠자에 directory 절을 지정합니다. 그러면 named 데이터 파일이 /usr/local/domain 디렉터리를 기준으로 한 상대 경로를 쓸 수 있습니다. 이 시나리오에서는 다음을 넣었습니다.
text
options {
    directory "/usr/local/domain";
};

여기서 디렉터리를 지정하지 않으면 named 데몬이 필요한 데이터 파일을 /etc 디렉터리에서 찾습니다.

  1. 정의한 영역 밖의 레코드 데이터를 캐시할 수 있도록 이름 서버의 hint 영역 파일 이름을 지정합니다.
text
zone "." IN {
    type hint;
    file "named.ca";
};
  1. slave 영역 절을 지정합니다. 스탠자마다 영역 종류, 이름 서버가 데이터를 백업할 파일 이름, slave 이름 서버가 데이터 파일을 복제해 올 master 이름 서버의 IP 주소가 들어갑니다. 이 시나리오에서는 다음 slave 영역 절을 넣었습니다.
text
zone "abc.aus.century.com" IN {
    type slave;
    file "named.abc.data.bak";
    masters { 192.9.201.1; };
};
zone "201.9.192.in-addr.arpa" IN {
    type slave;
    file "named.abc.rev.bak";
    masters { 192.9.201.1; };
};
  1. 루프백 네트워크 주소 풀이를 지원하려면, 원본이 named.abc.local인 master 종류의 영역과 이름 서버가 맡는 도메인을 지정합니다.
text
zone "0.0.127.in-addr.arpa" in {
    type master;
    file "named.abc.local";
};

파일을 편집한 뒤 저장하고 닫습니다.

  1. /usr/local/domain/named.ca 파일을 편집합니다. 이 파일에는 네트워크의 루트 도메인 서버 주소가 들어 있습니다. 이 시나리오에서는 다음을 넣었습니다.
text
; root name servers.
.          IN    NS    relay.century.com.
relay.century.com.   3600000    IN    A     129.114.1.2

파일을 편집한 뒤 저장하고 닫습니다.

  1. /usr/local/domain/named.abc.local 파일을 엽니다. 이 시나리오에서는 다음을 넣었습니다.
    • 영역의 SOA와 기본 TTL 정보.
text
$TTL 3h    ;3 hour
@ IN SOA earth.abc.aus.century.com. gail.zeus.abc.aus.century.com.  (
                           1       ;serial
                           3600    ;refresh
                           600     ;retry
                           3600000 ;expire
                           3600    ;negative caching TTL
)
  • 이름 서버(NS) 레코드. 줄 맨 앞에 탭을 넣습니다. named 데몬이 탭을 영역 이름으로 바꿉니다. 예:
text
<tab> IN    NS     earth.abc.aus.century.com.
  • 포인터(PTR) 레코드.
text
1      IN    PTR    localhost.

파일을 편집한 뒤 저장하고 닫습니다.

  1. 다음 명령으로 /etc/resolv.conf 파일을 만듭니다.
text
touch /etc/resolv.conf
  1. 그 파일에 다음 항목을 넣습니다.
text
nameserver 127.0.0.1
domain abc.aus.century.com

파일을 편집한 뒤 저장하고 닫습니다.

  1. smit stnamed SMIT 빠른 경로로 named 데몬을 켭니다. 그러면 시스템이 시작할 때마다 데몬이 초기화됩니다. named 데몬을 지금 시작할지, 다음 시스템 재시작 때 시작할지, 둘 다 할지 고릅니다.

3단계. hint 이름 서버 구성하기

hint(캐시 전용) 이름 서버를 구성하려면 다음 절차를 씁니다. 여러 파일을 편집한 다음 SMIT나 명령줄로 named 데몬을 시작합니다.

  1. hint 이름 서버에서 /etc/named.conf 파일을 편집합니다. /etc 디렉터리에 /etc/named.conf 파일이 없으면 다음 명령으로 만듭니다.
text
touch /etc/named.conf

/etc/named.conf 파일을 다음처럼 구성합니다.

  1. options 스탠자에 directory 절을 지정합니다. 그러면 named 데이터 파일이 /usr/local/domain 디렉터리를 기준으로 한 상대 경로를 쓸 수 있습니다. 이 시나리오에서는 다음을 넣었습니다.
text
options {
    directory "/usr/local/domain";
};
  1. 루프백 네트워크 주소 풀이를 지원하려면, 원본이 named.abc.local인 master 종류의 영역과 이름 서버가 맡는 도메인을 지정합니다. 이 예에서는 /etc/named.conf 파일에 options directory 키워드를 지정했습니다.
text
zone "0.0.127.in-addr.arpa" IN {
    type master;
   file "named.abc.local";
};
  1. cache 영역 파일의 이름을 지정합니다. 예:
text
zone "." IN {
    type hint;
    file "named.ca";
};

파일을 편집한 뒤 저장하고 닫습니다.

  1. /usr/local/domain/named.ca 파일을 편집합니다. 이 파일에는 네트워크 루트 도메인의 권한 있는 이름 서버 주소가 들어 있습니다. 예:
text
; root name servers.
.          IN    NS    relay.century.com.
relay.century.com.   3600000    IN    A     129.114.1.2

파일을 편집한 뒤 저장하고 닫습니다.

  1. /usr/local/domain/named.local 파일을 편집합니다. 이 시나리오에서는 다음 정보를 넣었습니다.
    • 영역의 SOA와 기본 TTL 정보.
text
$TTL 3h    ;3 hour
@ IN SOA venus.abc.aus.century.com. gail.zeus.abc.aus.century.com.  (
                           1       ;serial
                           3600    ;refresh
                           600     ;retry
                           3600000 ;expire
                           3600    ;negative caching TTL
)
  • 이름 서버(NS) 레코드. 줄 맨 앞에 탭을 넣습니다. named 데몬이 탭을 영역 이름으로 바꿉니다.
text
<tab> IN    NS     venus.abc.aus.century.com.
  • 포인터(PTR) 레코드.
text
1      IN    PTR    localhost.

파일을 편집한 뒤 저장하고 닫습니다.

  1. 다음 명령으로 /etc/resolv.conf 파일을 만듭니다.
text
touch /etc/resolv.conf
  1. 그 파일에 다음 항목을 넣습니다.
text
nameserver 127.0.0.1
domain abc.aus.century.com

파일을 편집한 뒤 저장하고 닫습니다.

  1. smit stnamed SMIT 빠른 경로로 named 데몬을 켭니다. 그러면 시스템이 시작할 때마다 데몬이 초기화됩니다. named 데몬을 지금 시작할지, 다음 시스템 재시작 때 시작할지, 둘 다 할지 고릅니다.

(원문에는 이 뒤에 "다시 부팅하면 IPv6 구성이 설정됩니다. 호스트마다 이 과정을 되풀이합니다."라는 문장이 남아 있으나, IPv6 절에서 잘못 옮겨 온 것입니다.)

도메인 메일 서버 구성하기

도메인 메일 서버를 구성하면 조직 바깥의 사용자가 조직의 사용자에게 메일 주소를 쉽게 지정할 수 있습니다. 도메인 메일 서버가 없으면 메일 주소에 조직의 특정 호스트를 지정해야 합니다.

예를 들어 [email protected]에서 widget.com은 조직의 도메인 이름이고 orange는 sam이 쓰는 호스트입니다. 그러나 도메인 메일 서버가 있으면 조직 바깥의 사용자는 사용자가 어느 호스트를 쓰는지 몰라도 사용자 이름과 도메인 이름만, 예를 들어 [email protected]처럼 지정하면 됩니다.

도메인 메일 서버를 구성하려면 Web-based System Manager(wsm)나 다음 절차를 씁니다.

  1. 메일 서버 black.widget.com에 대한 메일 교환기(MX) 레코드와 주소(A) 레코드를 만듭니다.
text
widget.com           IN    MX     10 black.widget.com
widget.com           IN     A     192.10.143.9
black.widget.com     IN     A     192.10.143.9
  1. 메일 서버(black.widget.com)의 sendmail.cf를 편집해 도메인 별칭(w 클래스)을 더합니다.
text
Cw $w $?D$w.$D$. widget.com
  1. 메일 클라이언트는 로컬이 아닌 메일을 어디로 보낼지 알아야 하므로, 클라이언트마다 sendmail.cf를 편집해 메일 서버를 가리키게 합니다(S 매크로).
text
DRblack.widget.com
  1. NameServOpt 옵션으로 sendmail 데몬을 구성해, 모두가 이름 서버 brown.widget.com에 정의된 MX 레코드를 쓸 수 있게 합니다.

  2. 메일 서버에 계정이 없는 도메인 사용자의 별칭을 aliases 파일에 더합니다. 예:

참고: 메일함(MB) 레코드도 같은 역할을 할 수 있습니다.

  1. 데이터베이스를 고쳤으므로 SOA 리소스 레코드의 일련번호를 늘려야 합니다.
  2. refresh -s named 명령으로 이름 서버 데이터베이스를 새로 고칩니다.
  3. 클라이언트에서 refresh -s sendmail 명령을 실행해 바꾼 내용을 적용합니다.

도메인 메일 서버를 구성하는 다른 방법도 있습니다. 메일함(MB), 메일 이름 바꾸기(MR), 메일 그룹(MG) 레코드를 쓰는 방법입니다.

메일함 레코드로 도메인 메일 서버 구성하기

  1. 도메인의 사용자마다 메일함(MB) 레코드를 정의합니다. 호스트 brown.widget.com의 /usr/local/domain/named.abc.data 파일에 다음과 같은 항목을 넣습니다.
text
sam IN MB orange.widget.com.

이 항목들은 메일 서버 black.widget.com에게 도메인의 사용자마다 메일을 어디로 보낼지 알려 줍니다.

  1. 메일 서버 black.widget.com의 sendmail 데몬이 이름 서버 brown.widget.com에 정의된 MB 레코드를 쓰도록 구성합니다. NameServOpt 옵션을 씁니다.
  2. 데이터베이스를 고쳤으므로 SOA 리소스 레코드의 일련번호를 늘립니다.
  3. refresh -s named 명령으로 이름 서버 데이터베이스를 새로 고칩니다.
  4. refresh -s sendmail 명령을 입력해 바꾼 내용을 적용합니다.

사용자의 메일 이름 바꾸기 레코드 정의하기

  1. 도메인 이름 서버의 /usr/local/domain/named.abc.data 파일을 편집합니다.
  2. 별칭마다 메일 이름 바꾸기(MR) 레코드를 넣습니다. 예를 들어 사용자 sam에게 별칭 sammy가 있으면 MR 레코드는 다음과 같습니다.
text
sammy IN MR sam

이 레코드는 sammy 앞으로 온 모든 메일을 sam에게 배달하게 합니다. MR 레코드는 한 줄에 하나씩 넣어야 합니다. 3. 데이터베이스를 고쳤으므로 SOA 리소스 레코드의 일련번호를 늘려야 합니다. 4. refresh -s named 명령을 입력해 이름 서버 데이터베이스를 새로 고칩니다. 5. refresh -s sendmail 명령을 입력해 바꾼 내용을 적용합니다.

메일 그룹 구성원 레코드 정의하기

  1. 도메인 이름 서버의 /usr/local/domain/named.abc.data 파일을 편집합니다.
  2. 메일 그룹(MG)마다 MG 레코드를 넣습니다. MG 레코드는 별칭을 이름 서버에서 관리한다는 점만 빼면 /etc/aliases 파일처럼 동작합니다. 예:
text
users IN HINFO users-request widget.com
users IN MG sam
users IN MG david
users IN MG judy

이 예는 [email protected] 앞으로 온 모든 메일을 sam, david, judy에게 배달하게 합니다. MG 레코드는 한 줄에 하나씩 넣습니다.

참고: 사용자 sam, david, judy에게는 MB 레코드가 정의되어 있어야 합니다. 3. 데이터베이스를 고쳤으므로 SOA 리소스 레코드의 일련번호를 늘려야 합니다. 4. refresh -s named 명령을 입력해 이름 서버 데이터베이스를 새로 고칩니다. 5. refresh -s sendmail 명령을 입력해 바꾼 내용을 적용합니다.

메일 교환기 레코드 정의하기

  1. 도메인 이름 서버의 /usr/local/domain/named.abc.data 파일을 편집합니다.
  2. 메일을 전달할, 내 네트워크에 직접 연결되지 않은 기계마다 메일 교환기(MX) 레코드를 넣습니다. 예를 들어 purple.widget.com의 사용자에게 온 메일을 post.office.widget으로 전달해야 하면 MX 레코드는 다음과 비슷합니다.
text
purple.widget.com IN MX 0 post.office.widget.

MX 레코드를 쓸 때는 호스트 이름과 기계 이름을 모두 지정해야 합니다. 레코드는 한 줄에 하나씩 넣습니다. 와일드카드를 쓸 수도 있습니다. 예:

text
*.widget.com IN MX 0 post.office.widget.

이 예는 widget.com 도메인의 알 수 없는 호스트(명시적 MX 레코드가 없는 호스트) 앞으로 온 메일을 post.office.widget으로 전달하게 합니다.

참고: 와일드카드 MX 레코드는 인터넷에서 쓰기에 알맞지 않습니다. 3. 데이터베이스를 고쳤으므로 SOA 리소스 레코드의 일련번호를 늘려야 합니다. 4. refresh -s named 명령을 입력해 이름 서버 데이터베이스를 새로 고칩니다. 5. refresh -s sendmail 명령을 입력해 바꾼 내용을 적용합니다.

영어 원문

Name server resolution

In a hierarchical network, certain hosts are designated as name servers. These hosts resolve names into IP addresses for other hosts.

The named daemon controls the name server function and, therefore, must be run on a name server host.

Before you configure a name server, decide which type or types best fit the network it serves. There are several types of name servers.

A master name server actually stores the database that contains name-to-address mapping information. It loads its data from a file or disk and can delegate authority to other servers in its domain. A slave name server or stub name server receives its information at system startup time for a particular zone of authority from a master name server, and then periodically asks the master server to update its information. A hint name server responds to requests to resolve names by querying other servers that have the authority to provide the information needed.

Note: Previous generations of the named name server specified the master name server as the primary name server, the slave name server as the secondary name server, and the hint name server as the caching-only name server.

Keep in mind that a name server can function in different capacities for different zones of authority. For example, one name server host can be a master name server for one zone and a slave name server for another zone. If your system has NIS or NIS+ installed, these services can also provide name resolution. For more information, see Network Information Services (NIS and NIS+) Guide.

There are several files that are involved in configuring name servers.

  • conf — This file is read when the named daemon starts. The records in the conf file tell the named daemon which type of server it is, which domains it has authority over (its zones of authority), and where to get the data for initially setting up its database. The default name of this file is /etc/named.conf. However, you can change the name of this file by specifying the name and path of the file on the command line when the named daemon is started. If you intend to use the /etc/named.conf as the conf file and it does not exist, a message is generated in syslog file and named terminates. However, if an alternative conf file is specified, and the alternative file does not exist, an error message is not generated, and named continues.
  • cache — Contains information about the local cache. The local cache file contains the names and addresses of the highest authority name servers in the network. The cache file uses the Standard Resource Record Format. The name of the cache file is set in the conf file.
  • domain data — There are three typical domain data files, also referred to as the named data files. The named local file contains the address resolution information for local loopback. The named data file contains the address resolution data for all machines in the name server zone of authority. The named reverse data file contains the reverse address resolution information for all machines in the name server zone of authority. The domain data files use the Standard Resource Record Format. Their file names are user definable and are set in the conf file. By convention, the names of these files generally include the name of the daemon (named), and the type of file and name of the domain is given in the extension. For example, the name server for the domain abc might have the following files: named.abc.data named.abc.rev named.abc.local When modifying the named data files the serial number in the SOA Resource Record must be incremented for slave name servers to properly realize the new zone changes.
  • resolv.conf — The presence of this file indicates to a host to go to a name server to resolve a name first. If the resolv.conf file does not exist, the host looks in the /etc/hosts file for name resolution. On a name server, the resolv.conf file must exist and can contain the local host address, the loopback address (127.0.0.1), or be empty. Note: The resolver routines require the default domain be set. If the default domain is not set in the /etc/resolv.conf file, then it must be set in the hostname

Time-to-live (TTL) is specified in resource records. If TTL is not specified in a record, the length of this time period defaults to the minimum field as defined in the start of authority (SOA) record for that zone. TTL is used when data is stored outside a zone (in a cache) to ensure that the data is not retained indefinitely.

Configuring domain name servers

In this scenario, a master name server, slave name server, and hint name server will be configured to perform name resolution. Each name server will be a separate machine, and each will have an /etc/named.conf file configured, although the information in each will be different. The /etc/named.conf is read each time the named daemon is started, and it specifies what type of server it is (master, slave, or hint) and where it will get its name resolution data. Each of these name servers will be running BIND 8.

The master name server will be configured to provide name resolution for the abc.aus.century.com zone. In this scenario, the IP address of the master name server is 192.9.201.1, and its host name is venus.abc.aus.century.com. It will provide name resolution for the venus, earth, mars, and jupiter host names. The /etc/named.conf file will be configured to specify that the named daemon should search the /usr/local/domain directory for its data files. The data files that will be configured for the master name server are named.ca, named.abc.local, named.abc.data, and named.abc.rev.

A slave name server will then be configured. The host name of the slave name server will be earth.abc.aus.century.com, and its IP address will be 192.9.201.5. In the slave name server's /etc/named.conf file, we will specify the master name server's address so that the slave name server can replicate the master name server's named.abc.data and named.abc.rev files. In addition, the named.ca and named.abc.local data files will be configured for this server.

A hint name server will then be configured. The hint name server will store a local cache of host name and address mappings. If a requested address or host name is not in its cache, the hint server will contact the master name server, get the resolution information, and add it to its cache. In addition, the named.ca and named.abc.local data files will be configured for this server.

All information in the named data files (not the /etc/named.conf file) on the name servers must be in the Standard Resource Record Format. For explanations about the information about the named data files, see Standard Resource Record Format for TCP/IP in Files Reference.

The administrator for each of the name servers will be gail.zeus.abc.aus.century.com. This is specified in the local data files on each name server. In addition, in this scenario, the root name server is relay.century.com with IP address 129.114.1.2.

At the end of this scenario, name resolution will be provided for the hosts venus, earth, mars, and jupiter. In addition, reverse name resolution (IP address-to-host name) will also be provided. When a request is received that cannot be resolved, the master name server will contact relay.century.com to find the information needed.

Things to Consider

  • The information in this how-to scenario was tested using specific versions of AIX. The results you obtain might vary significantly depending on your version and level of AIX.

Step 1. Configure the Master Name Server

  1. On the master name server, open the /etc/named.conf file. If there is no /etc/named.conf file in the /etc directory, create one by running the following command:
text
touch /etc/named.conf

Do the following to configure the /etc/named.conf file: a. Specify a directory clause in the options stanza. This enables the named data files to use paths relative to the /usr/local/domain directory. In this scenario, the following was added:

text
options {
    directory "/usr/local/domain";
};

If you choose not to specify a directory here, the /etc directory will be searched for the necessary data files. b. To allow record data to be cached outside of the defined zones, specify the name of the hint zone file. In this scenario, the following was added:

text
zone "." IN {
    type hint;
    file "named.ca";
};
  1. Add the following stanzas to specify each zone, the type of name server you are configuring, and your name server's domain data file. In this scenario, the master server for both forward and reverse zones is the following:
text
zone "abc.aus.century.com" in {
    type master;
    file "named.abc.data";
};
zone "201.9.192.in-addr.arpa" in {
    type master;
    file "named.abc.rev";
};
  1. Define the name of the named local file. For example:
text
zone "0.0.127.in-addr.arpa" in {
    type master;
    file "named.abc.local";
};

After editing the file, save and close it.

  1. Open the /usr/local/domain/named.ca file. Add the addresses of the root name servers for the domain. The following was added in this scenario:
text
; root name servers.
.          IN    NS    relay.century.com.
relay.century.com.   3600000    IN    A     129.114.1.2

After editing the file, save and close it.

  1. Open the /usr/local/domain/named.abc.local file. Add the following information:
  • The start of authority (SOA) of the zone and the default time-to-live information. The following was added in this scenario:
text
$TTL 3h    ;3 hour
@ IN SOA venus.abc.aus.century.com. gail.zeus.abc.aus.century.com.  (
                           1       ;serial
                           3600    ;refresh
                           600     ;retry
                           3600000 ;expire
                           3600    ;negative caching TTL
)
  • The name server (NS) record. Insert a tab space at the beginning of the line; the named daemon will replace the tab space with the zone name:
text
<tab> IN    NS     venus.abc.aus.century.com.
  • The pointer (PTR) record.
text
1      IN    PTR    localhost.

After editing the file, save and close it.

  1. Open the /usr/local/domain/named.abc.data file. Add the following information:
  • The start of authority of the zone and the default time-to-live information for the zone. This record designates the start of a zone. Only one start of authority record per zone is allowed. In this scenario, the following was added:
text
$TTL 3h    ;3 hour
@ IN    SOA     venus.abc.aus.century.com. gail.zeus.abc.aus.century.com. (
                1       ;serial
                3600    ;refresh
                600     ;retry
                3600000 ;expire
                3600    ;negative caching TTL
)
  • The name server records for all master name servers in the zone. Insert a tab space at the beginning of the line; the named daemon will replace the tab space with the zone name:
text
<tab> IN    NS       venus.abc.aus.century.com.
  • The name-to-address resolution information on all hosts in the name server zone of authority:
text
venus        IN    A        192.9.201.1
earth        IN    A        192.9.201.5
mars         IN    A        192.9.201.3
jupiter      IN    A        192.9.201.7

Include other types of entries, such as canonical name records and mail exchanger records as needed.

After editing the file, save and close it.

  1. Open the /usr/local/domain/named.abc.rev file. Add the following information:
  • The start of authority of the zone and the default time-to-live information. This record designates the start of a zone. Only one start of authority record per zone is allowed:
text
$TTL 3h    ;3 hour
@  IN  SOA  venus.abc.aus.century.com. gail.zeus.abc.aus.century.com.  (
                           1       ;serial
                           3600    ;refresh
                           600     ;retry
                           3600000 ;expire
                           3600    ;negative caching TTL
)
  • Other types of entries, such as name server records. If you are including these records, insert a tab space at the beginning of the line; the named daemon will replace the tab space with the zone name. In this scenario, the following was added:
text
<tab> IN      NS      venus.abc.aus.century.com.
  • Address-to-name resolution information on all hosts to be in the name server's zone of authority.
text
1                      IN    PTR    venus.abc.aus.century.com.
5                      IN    PTR    earth.abc.aus.century.com.
3                      IN    PTR    mars.abc.aus.century.com.
7                      IN    PTR    jupiter.abc.aus.century.com.

After editing the file, save and close it.

  1. Create an /etc/resolv.conf file by running the following command:
text
touch /etc/resolv.conf

The presence of this file indicates that the host should use a name server for name resolution.

  1. Add the following entry in the /etc/resolv.conf file:
text
nameserver 127.0.0.1

The 127.0.0.1 address is the loopback address, which causes the host to access itself as the name server. The /etc/resolv.conf file can also contain an entry similar to the following:

text
domain abc.aus.century.com

In this case, abc.aus.century.com is the domain name. After editing the file, save and close it.

  1. Use the smit stnamed SMIT fast path to enable the named daemon. This initializes the daemon with each system startup. Indicate whether you want to start the named daemon now, at the next system restart, or both.

Step 2. Configure the Slave Name Server

To configure a slave name server, use the following procedure. You will edit a series of files and then use SMIT to start the named daemon.

  1. On the slave name server, open the /etc/named.conf file. If there is no /etc/named.conf file in the /etc directory, create on by running the following command:
text
touch /etc/named.conf

Do the following to configure the /etc/named.conf file: a. Specify a directory clause in the options stanza. This enables the named data files to use paths relative to the /usr/local/domain directory. In this scenario, the following was added:

text
options {
    directory "/usr/local/domain";
};

If you choose not to specify a directory here, the named daemon will search the /etc directory for the necessary data files. b. To allow record data to be cached outside the defined zones, specify the name of the hint zone file for the name server:

text
zone "." IN {
    type hint;
    file "named.ca";
};
  1. Specify the slave zone clauses. Each stanza includes the zone type, a file name to which the name server can back up its data, and the IP address of the master name server, from which the slave name server will replicate its data files. In this scenario, we added the following slave zone clauses:
text
zone "abc.aus.century.com" IN {
    type slave;
    file "named.abc.data.bak";
    masters { 192.9.201.1; };
};
zone "201.9.192.in-addr.arpa" IN {
    type slave;
    file "named.abc.rev.bak";
    masters { 192.9.201.1; };
};
  1. To support resolving the loopback network address, specify a zone of type master with a source of named.abc.local, as well as the domain for which the name server is responsible.
text
zone "0.0.127.in-addr.arpa" in {
    type master;
    file "named.abc.local";
};

After editing the file, save and close it.

  1. Edit the /usr/local/domain/named.ca file. This file contains the address server that is the root domain server of the network. In this scenario, the following was added:
text
; root name servers.
.          IN    NS    relay.century.com.
relay.century.com.   3600000    IN    A     129.114.1.2

After editing the file, save and close it.

  1. Open the /usr/local/domain/named.abc.local file. In this scenario, the following was added:
  • The start of authority (SOA) of the zone and the default time-to-live information:
text
$TTL 3h    ;3 hour
@ IN SOA earth.abc.aus.century.com. gail.zeus.abc.aus.century.com.  (
                           1       ;serial
                           3600    ;refresh
                           600     ;retry
                           3600000 ;expire
                           3600    ;negative caching TTL
)
  • The name server (NS) record. Insert a tab space at the beginning of the line; the named daemon will replace the tab space with the zone name. For example:
text
<tab> IN    NS     earth.abc.aus.century.com.
  • The pointer (PTR) record.
text
1      IN    PTR    localhost.

After editing the file, save and close it.

  1. Create an /etc/resolv.conf file by running the following command:
text
touch /etc/resolv.conf
  1. Add the following entry to that file:
text
nameserver 127.0.0.1
domain abc.aus.century.com

After editing the file, save and close it.

  1. Use the smit stnamed SMIT fast path to enable the named daemon. This initializes the daemon with each system startup. Indicate whether you want to start the named daemon now, at the next system restart, or both.

Step 3. Configure the Hint Name Server

To configure a hint, or cache-only, name server, use the following procedure, which edits a series of files and then uses SMIT or the command line to start the named daemon.

  1. On the hint name server, edit the /etc/named.conf file. If there is no /etc/named.conf file in the /etc directory, create one by running the following command:
text
touch /etc/named.conf

Do the following to configure the /etc/named.conf file: a. Specify a directory clause in the options stanza. This enables the named data files to use paths relative to the /usr/local/domain directory. In this scenario, the following was added:

text
options {
    directory "/usr/local/domain";
};
  1. To support resolving the loopback network address, specify a zone of type master with a source of named.abc.local, as well as the domain for which the name server is responsible. In this example, the options directory keyword was specified in the /etc/named.conf file.
text
zone "0.0.127.in-addr.arpa" IN {
    type master;
   file "named.abc.local";
};
  1. Specify the name of the cache zone file. For example:
text
zone "." IN {
    type hint;
    file "named.ca";
};

After editing the file, save and close it.

  1. Edit the /usr/local/domain/named.ca file. This file contains the addresses of the servers that are authoritative name servers for the root domain of the network. For example:
text
; root name servers.
.          IN    NS    relay.century.com.
relay.century.com.   3600000    IN    A     129.114.1.2

After editing the file, save and close it.

  1. Edit the /usr/local/domain/named.local file. In this scenario, the following information was added to this file:
  • The start of authority (SOA) of the zone and the default time-to-live information:
text
$TTL 3h    ;3 hour
@ IN SOA venus.abc.aus.century.com. gail.zeus.abc.aus.century.com.  (
                           1       ;serial
                           3600    ;refresh
                           600     ;retry
                           3600000 ;expire
                           3600    ;negative caching TTL
)
  • The name server (NS) record. Insert a tab space at the beginning of the line; the named daemon will replace the tab space with the zone name:
text
<tab> IN    NS     venus.abc.aus.century.com.
  • The pointer (PTR) record.
text
1      IN    PTR    localhost.

After editing the file, save and close it.

  1. Create an /etc/resolv.conf file by running the following command:
text
touch /etc/resolv.conf
  1. Add the following entry to that file:
text
nameserver 127.0.0.1
domain abc.aus.century.com

After editing the file, save and close it.

  1. Use the smit stnamed SMIT fast path to enable the named daemon. This initializes the daemon with each system startup. Indicate whether you want to start the named daemon now, at the next system restart, or both.

When you reboot, your IPv6 configuration will be set. Repeat this process for each host.

Configuring a domain mail server

Configuring a domain mail server provides users external to your organization a simple method for addressing mail to your users. That is, without a domain mail server, the mail address must specify a particular host in your organization.

For example [email protected], where widget.com is your organization's domain name, and orange is the host that sam uses. But with a domain mail server, users outside your organization can simply specify the user name and domain name, without having to know which host the user uses, for example, [email protected].

To configure a domain mail server, use the Web-based System Manager, wsm, or the following procedure.

  1. Create a mail exchanger (MX) record and an address (A) record for the mail server black.widget.com:
text
widget.com           IN    MX     10 black.widget.com
widget.com           IN     A     192.10.143.9
black.widget.com     IN     A     192.10.143.9
  1. Edit sendmail.cf on the mail server (black.widget.com) to add the domain alias (the w class):
text
Cw $w $?D$w.$D$. widget.com
  1. Mail clients must know where to send their non-local mail, so edit sendmail.cf on each client to point to the mail server (the S macro):
text
DRblack.widget.com
  1. Use the NameServOpt option to configure the sendmail daemon so everyone can use the MX records defined in the name server brown.widget.com.

  2. Add aliases for users in the domain that do not have accounts on the mail server using the aliases file, for example:

Note: Mailbox (MB) records can serve the same function.

  1. The serial number in the SOA Resource Record must be incremented because the database has been modified.

  2. Refresh the name server database by issuing the refresh -s named command.

  3. On the clients, run the refresh -s sendmail command to make the changes take effect.

There are other methods to configure a domain mail server. These procedures involve using mailbox (MB), mail rename (MR), and mail group (MG) records.

Configuring a domain mail server using mailbox records:

Use the following procedure to configure a domain mail server using mailbox records.

  1. Define a mailbox (MB) record for each user in the domain. Add entries such as:
text
sam IN MB orange.widget.com.

to the /usr/local/domain/named.abc.data file on host brown.widget.com. These entries identify to the mail server black.widget.com where to send mail for each user in the domain.

  1. Configure the sendmail daemon on the mail server black.widget.com to use the MB records defined in the name server brown.widget.com. Use the NameServOpt option.

  2. Increment the serial number in the SOA Resource Record, because the database has been modified.

  3. Refresh the name server database by running the refresh -s named command.

  4. Type the refresh -s sendmail command to make the changes take effect.

Defining a mail rename record for a user:

Use the following procedure to define a mail rename record.

  1. Edit the /usr/local/domain/named.abc.data file on your domain name server.

  2. Add a Mail Rename (MR) record for each alias. For example, if a user sam has an alias sammy, the Mail Rename record is:

text
sammy IN MR sam

This record causes all mail addressed to sammy to be delivered to sam. Each MR record should be entered on a line by itself.

  1. The serial number in the SOA Resource Record must be incremented, because the database has been modified.

  2. Refresh the name server database by typing the refresh -s named command.

  3. Type the refresh -s sendmail command to make the changes take effect.

Defining mail group member records:

Use the following procedure to define mail group member records.

  1. Edit the /usr/local/domain/named.abc.data file on your domain name server.

  2. Add MG records for each mail group (MG). MG records function like the /etc/aliases file, with the aliases maintained on the name server. For example:

text
users IN HINFO users-request widget.com
users IN MG sam
users IN MG david
users IN MG judy

This example causes all mail addressed to [email protected] to be delivered to sam, david, and judy. Enter each MG record on a line by itself.

Note: Users sam, david, and judy must have MB records defined.

  1. The serial number in the SOA Resource Record must be incremented, because the database has been modified.

  2. Refresh the name server database by typing the refresh -s named command.

  3. Type the refresh -s sendmail command to make the changes take effect.

Defining mail exchanger records:

Use the following procedure to define mail exchanger records.

  1. Edit the /usr/local/domain/named.abc.data file on your domain name server.

  2. Add mail exchanger (MX) records for each machine not directly connected to your network to which you wish to forward mail. For example, if mail addressed to users on purple.widget.com should be forwarded to post.office.widget, the MX record looks similar to the following:

text
purple.widget.com IN MX 0 post.office.widget.

You must specify both host and machine names when using MX records. Enter each MG record on a line by itself. You can use wildcards, for example:

text
*.widget.com IN MX 0 post.office.widget.

This example causes mail to an unknown host (a host without an explicit MX record) in the widget.com domain to be forwarded to post.office.widget.

Note: Wildcard MX records are not appropriate for use on the Internet.

  1. The serial number in the SOA Resource Record must be incremented because the database has been modified.

  2. Refresh the name server database by typing the refresh -s named command.

  3. Type the refresh -s sendmail command to make the changes take effect.