[Linux] Bind ile DNS

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Mehmet Zahit ATES (realmehmet@gmail.com)
Date: Wed 13 Oct 2004 - 16:06:02 EEST


iyi gunler,

Sistem ozelliklerim:
----------------------------

* Mandrake 10.1, Kernel: 2.6.8.1-10mdk

* Bind
[realmehmet@smartguidance realmehmet]$ rpm -qi bind
Name : bind Relocations: (not relocatable)
Version : 9.3.0 Vendor: Mandrakesoft
Release : 0.rc4.1mdk Build Date: Cts 04 Eyl 2004 15:59:00

Ozel durum:
-----------------
* Okulun firewall u yuzunden disariya sadece 53, 80 ve 443 portlari acik

Sorun:
---------
Elimde Turkticaret.net'ten alan adi kaydi yapilmis bir isim var (
smartguidance.org ) Dunyadaki name serverlara onlar tanittilar ve suan
kayitlari su sekilde:

ns.smartguidance.org
139.179.xxx.xxx

Yani benim makinamda tanimli Name Server a gore ayarlanmis durumda.

www.belgeler.org adresindeki gibi Bind ile DNS ayarlari yapiyorum.
Hata yedim ( dns_rdata_fromtext) . Daha sonra sebebini aradim. Google
da arattim ve linux-network listesinde hic calismayan DNS i oldugunu
soyleyen bi ustad in :) ayarlarini da kullanarak ayarlari
degistirdim. Artik hata yemiyordum ( /var/log/messages )

Hatta tam adres su:
http://listweb.bilkent.edu.tr/Linux/linux-network/2003/Oct/0310.html

Sorunum:
nslookup da www.smartguidance.org calismiyor. Haliyle alan adim da
calismiyor :( Tavsiyeleriniz bekliyorum.

NOT: Sn Devrim GUNDUZ un liste degisikligi mailini silmisim. Herhalde
bu soru eski linux-network listesine daha uygun giderdi ama
http://liste.linux.org.tr/ hala guncellenmeyi bekliyor. Bilginize ...

iyi calismalar

--------------------

[root@smartguidance named]# cat /etc/named.conf
// generated by named-bootconf.pl

// secret must be the same as in /etc/rndc.conf
key "key" {
        algorithm hmac-md5;
        secret
"c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};

controls {
    inet 127.0.0.1 allow { any; } keys { "key"; };
};

options {
        directory "/var/named";
  pid-file "/var/run/named/named.pid"; // Put pid file in
working dir
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below. Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
        query-source address * port 53;
};

//
// a caching only nameserver config
//
zone "." {
        type hint;
        file "named.ca";
};

zone "0.0.127.in-addr.arpa" {
        type master;
        file "named.local";
};

zone "www.smartguidance.org" {
        type master;
        file "named.www.smartguidance.org";
};

// workaround stupid stuff... (OE: Wed 17 Sep 2003)
zone "ac" { type delegation-only; };
zone "cc" { type delegation-only; };
zone "com" { type delegation-only; };
zone "cx" { type delegation-only; };
zone "museum" { type delegation-only; };
zone "net" { type delegation-only; };
zone "nu" { type delegation-only; };
zone "ph" { type delegation-only; };
zone "sh" { type delegation-only; };
zone "tm" { type delegation-only; };
zone "ws" { type delegation-only; };

--------------------

[root@smartguidance named]# ls
named.ca named.local named.www.smartguidance.org

--------------------

[root@smartguidance root]# service named restart
named durduruluyor: [ TAMAM ]
named başlatılıyor: [ TAMAM ]
[root@smartguidance root]# tail /var/log/me
messages messages.1.gz messages.2.gz
[root@smartguidance root]# tail /var/log/messages
Oct 13 15:50:43 smartguidance named[7457]: listening on IPv4 interface
eth1, 192.168.1.1#53
Oct 13 15:50:43 smartguidance named[7457]: command channel listening
on 127.0.0.1#953
Oct 13 15:50:43 smartguidance named[7457]: zone
0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Oct 13 15:50:43 smartguidance named[7457]:
named.www.smartguidance.org:10: ignoring out-of-zone data
(smartguidance.org)
Oct 13 15:50:43 smartguidance named[7457]:
named.www.smartguidance.org:11: ignoring out-of-zone data
(ns.smartguidance.org)
Oct 13 15:50:43 smartguidance named[7457]:
named.www.smartguidance.org:12: ignoring out-of-zone data
(smartguidance.org)
Oct 13 15:50:43 smartguidance named[7457]:
named.www.smartguidance.org:13: ignoring out-of-zone data
(ftp.smartguidance.org)
Oct 13 15:50:43 smartguidance named[7457]: dns_master_load:
named.www.smartguidance.org:14: www.smartguidance.org: CNAME and other
data
Oct 13 15:50:43 smartguidance named[7457]: zone
www.smartguidance.org/IN: loading master file
named.www.smartguidance.org: CNAME and other data
Oct 13 15:50:43 smartguidance named[7457]: running

--------------------

[root@smartguidance named]# cat /etc/resolv.conf
search org
nameserver 139.179.30.24
nameserver 139.179.124.6
nameserver 127.0.0.1

domain www.smartguidance.org
nameserver 127.0.0.1
nameserver 139.179.xxx.xxx

---------------------

[root@smartguidance named]# cat /var/named/named.www.smartguidance.org
$TTL 14400

@ IN SOA ns.smartguidance.org. realmehmet.smartguidance.org. (
                        1066399533 ; serial
                        10800 ; refresh
                        3600 ; retry
                        604800 ; expire
                        86400 ) ; minimum

smartguidance.org. IN NS ns.smartguidance.org.
ns.smartguidance.org. IN A 139.179.xxx.xxx
smartguidance.org. IN A 139.179.xxx.xxx
ftp.smartguidance.org. IN CNAME smartguidance.org.
www.smartguidance.org. IN CNAME smartguidance.org.

-- 
"Uyuyan devi uyandilar X-("

Linux Registered User: 316299

####################### Mehmet Zahit ATES TURKEY #######################

E-Mail: realmehmet at gmail dot com realmehmet at yahoo dot com

URL: www.learnjava.org/~zahit

_______________________________________________
Linux mailing list
Linux@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.