Results 1 to 3 of 3

Thread: centos 4.4 DNS setting completely method.

  1. #1
    nxzwt is offline Project Contributor
    Join Date
    Nov 2006
    Posts
    50
    Rep Power
    8

    Default centos 4.4 DNS setting completely method.

    (1)first install bind using "system setting"->"add/remove applications"->checked "DNS Name Server".

    (2)in root user
    #chkconfig --level 345 named on
    #service named start

    (3)edit file /etc/named.conf (actully ,this file link to /var/named/chroot/var/named/namd.conf)
    add content like this:

    Code:
    zone "home.cn" IN {
    	type master;
    	file "home.cn.zone";
    	allow-update { none; };
    };
    
    zone "1.168.192.in-addr.arpa" IN {
    	type master;
    	file "1.168.192.arpa.zone";
    	allow-update { none; };
    };
    in this example,i will add a domain home.cn.

    (4)in root user
    #cd /var/named/chroot/var/named/
    #su - named
    #vi home.cn.zone
    add content like this

    Code:
    $TTL	86400
    home.cn.		IN SOA	cent.home.cn. root.home.cn. (
    					42		; serial (d. adams)
    					3H		; refresh
    					15M		; retry
    					1W		; expiry
    					1D )		; minimum
    home.cn.        IN NS		cent.home.cn.	
    centos.home.cn.	IN A		192.168.1.8
    home.cn.	IN MX	5	centos.home.cn.
    mail		IN CNAME	centos
    
    (note:my server's hostname is centos.home.cn.IP address is 192.168.1.8,and i give it a cname is "mail.home.cn".DNS service is also provided by this machine.)
    (important: pay enough attention to the dot at the end!,it is very important!!)

    #vi 1.168.192.arpa.zone
    add content like this
    Code:
    $TTL 86400
    1.168.192.in-addr.arpa.	IN SOA centos.home.cn. root.home.cn.(
    20031001;
    7200;
    3600;
    43200;
    86400);
    
    1.168.192.in-addr.arpa.	 IN	 NS 	centos.home.cn.
    8	 IN 	PTR 	mail.home.cn.
    (important: pay enough attention to the dot at the end!,it is very important!!)

    (5)in root user
    #service named restart
    #service named reload

    and test DNS using nslookup.

    by the way,i use zimbra in centos 4.4,it works fine!
    Last edited by phoenix; 11-05-2006 at 12:10 AM.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,505
    Rep Power
    57

    Default

    Thanks for posting that. A tip - if you highlight your code then hit the 'code' button (the # above the editing box) you'll get better formatted text for easier reading. This has also been covered in 'DNS in a nutshell' in the forums but it's always useful for a reminder.
    Last edited by phoenix; 11-05-2006 at 12:10 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    nxzwt is offline Project Contributor
    Join Date
    Nov 2006
    Posts
    50
    Rep Power
    8

    Default

    thanks for that tip!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CentOS 4.4 imapsync problems
    By timschmidt in forum Migration
    Replies: 19
    Last Post: 08-01-2007, 08:29 AM
  2. Ldap issues
    By mississippiman in forum Installation
    Replies: 11
    Last Post: 01-09-2007, 08:00 PM
  3. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM
  4. Zimbra startup hangs after install CentOS 4.2
    By eger in forum Installation
    Replies: 4
    Last Post: 02-10-2006, 11:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •