ေအာက္ပါဖုိင္မ်ားကုိ အသုံးျပဳရုံျဖင့္ DNS ကုိ အလြယ္တကူျပဳလုပ္ႏုိင္ပါသည္။
named.conf ,master.naysis , rev.naysis ဖုိင္မ်ားကုိ ေဖာ္ျပပါေနရာမ်ားတြင္အစားသြင္းေပးပါ။
#vi /etc/named.conf#vi /var/named/master.naysis#vi /var/named/chroot/etc/named.conf#vi /var/named/chroot/var/named/master.naysis#vi /var/named/rev.naysis#vi /var/named/chroot/var/named/rev.naysisnamed.conf
options {
directory “/var/named/”;
query-source address * port 53;
allow-query { 10.1.0.0/16; }; သင္ေပးလုိေသာ Network အုပ္စု
};zone “naysis.net” IN { Naysis.net ေနရာတြင္သင္ၾကိဳက္ရာနာမည္ေပးႏုိင္ပါသည္။
type master;
file “master.naysis”;
allow-update { none; };
allow-transfer { none; };
};zone “0.1.10.in-addr.arpa” IN {
type master ;
file “rev.naysis”;
allow-update { none; };
allow-transfer { none; };
};master.naysis
$ORIGIN naysis.net.
$TTL 86400
@ IN SOA ns.naysis.net. admin.naysis.net. (
1 ; serial
3H ; refresh time
15M ; retry time
1W ; zone expiry time
1D ) ; minimum; DNS Servers for this domain
IN NS ns.naysis.net.; Mail servers for this domain
IN MX 10 naysis.net.; ip address of just example.com IN A 10.1.0.3 သင္ရဲ႕ အုိင္ပီျဖစ္ပါတယ္၊ ျပဳလုပ္သူရဲ႕ အုိင္ပီ ျဖစ္ပါတယ္localhost IN A 127.0.0.1proxy IN A 10.1.0.3
ftp IN A 10.1.0.3
www IN A 10.1.0.3rev.naysis
$ORIGIN 0.1.10.in-addr.arpa.
$TTL 86400
@ IN SOA ns.naysis.net. admin.naysis.net. (
1 ; serial
3H ; refresh time
15M ; retry time
1W ; zone expiry time
1D ) ; minimumIN NS ns.naysis.net.IN MX 10 naysis.net.1 IN PTR naysis.net.
2 IN PTR naysis.net.
3 IN PTR naysis.net.အားလုံးလုိက္လံ ထည့္သြင္းတည္ေဆာက္ျပီးလွ်င္
#service named start
အုိေကမ်ားျပျပီဆုိပါက သင္အေနနဲ႕ DNS ထည့္ရမည့္ေနရာတြင္ မိမိယခုျပဳလုပ္ထားေသာ အုိင္ပီ ကုိထည့္သြင္းေပးလုိက္ပါ
ထုိကဲ့သုိ႕ျပဳလုပ္ျပီးသည္ႏွင့္ သင့္ရဲ႕Browser တြင္ www.naysis.net (သင့္ျပဳလုပ္ထားေသာနာမည္) ကုိရုိက္ထည့္လုိက္ျခင္းျဖင့္
တကယ့္အင္တာနက္တြင္အသုံးျပဳသကဲ့သုိ႕ website က်လာမည္ျဖစ္ပါသည္။
DNS ျပဳလုပ္ခ်င္သူမ်ားအတြက္လြယ္ကူေစရန္ရည္ရြယ္ခ်က္ျဖင့္ ေဖာ္ျပေပးပါသည္။
posted by Nay Sit
Labels: DNS
0 - ဦး မှတ်ချက်ပေးထားပါသည်
Post a Comment