About creating domain entry on /usr/local/bind/etc/named.config

Stephen Liu satimis at yahoo.com
Thu Oct 30 04:04:57 UTC 2008


Hi folks,


Domain:  satimis.com
hostname:  xen03.satimis.com
fixed IP:  220.232.213.178


Performed steps;

Edit /usr/local/bind/etc/named.conf
addinf following lines at the bottom of the file;
zone "satimis.com" {
        type master ;
        file "satimis.com.zone";
        allow-query {any;};
        allow-update { none; };  
};
* end *


# cat /usr/local/bind/etc/named.conf
options {
        directory "/namedb";
        version "I do not give any version info";
         pid-file "/var/run/named.pid";
         allow-transfer { none ;};
};

zone "." IN {
        type hint;
        file "/etc/named.root";
};

 zone "satimis.com" {
        type master ;
        file "satimis.com.zone";
        allow-query {any;};
        allow-update { none; };
};
* end *


Create satimis.com.zone file;

* nano /usr/local/bind/namedb/satimis.com.zone
adding following lines on the file;
$TTL 14400

@               IN SOA  ns1.satimis.com. satimis.com. (
                        2005030601      ; serial
                        7200            ; Refresh
                        7200            ; Retry
                        604800          ; Expire
                        86400 )         ; Minimum

satimis.com.                    IN      NS      ns1.satimis.com.
satimis.com.                    IN      A       202.232.213.178
xen03.satimis.com.              IN      A       202.232.213.178
www.satimis.com.                IN      A       202.232.213.178
satimis.com.                    IN      MX 5    xen03.satimis.com.
webmail.satimis.com.            IN      A       202.232.213.178
securewebmail.satimis.com.      IN      A       202.232.213.178
* end *


# kill -1 `pidof named`
No complaint


# host -t mx satimis.com 127.0.0.1
satimis.com             MX      5 xen03.satimis.com


It is working now.


Please help to understand following items;
2005030601      ; serial
...
604800          ; Expire
86400 )         ; Minimum


About following items;
7200            ; Refresh
7200            ; Retry

Is the unit in "sec" ?


TIA


B.R.
Stephen L

Send instant messages to your online friends http://uk.messenger.yahoo.com 


More information about the bind-users mailing list