Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

bind dns ne resolva

[es] :: Linux/UNIX serveri i servisi :: bind dns ne resolva

[ Pregleda: 2578 | Odgovora: 11 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

vinko78

Član broj: 250949
Poruke: 23
*.dsl.optinet.hr.



Profil

icon bind dns ne resolva03.07.2011. u 15:47 - pre 133 meseci
bind dns ne radi
bind.conf zoky.net
#dig @192.168.2.2 zoky.net

; <<>> DiG 9.2.3 <<>> ns zoky.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59448
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;zoky.net. IN NS

;; ANSWER SECTION:
zoky.net. 86400 IN NS ns1.zoky.net.


;; Query time: 2 msec
;; SERVER: 192.168.2.2#53(192.168.2.2)
;; WHEN: Tue Oct 12 07:35:20 2011
;; MSG SIZE rcvd: 67
authority ip error ???
########
conf http://linuxconfig.org/linux-dns-server-bind-configuration

pozz
 
Odgovor na temu

Miroslav Strugarevic

Član broj: 5038
Poruke: 2689



+68 Profil

icon Re: bind dns ne resolva03.07.2011. u 19:43 - pre 133 meseci
Postavi kompletnu konfiguraciju i reci koji sistem itd itd...
 
Odgovor na temu

vinko78

Član broj: 250949
Poruke: 23
*.dsl.optinet.hr.



Profil

icon Re: bind dns ne resolva04.07.2011. u 17:10 - pre 133 meseci
UBUNTU 11.04 x86
#apt-get install bind9 dnsutils

#cd /etc/bind
#mkdir -p zones/master
#cd zones/master/
#sudo nano db.zoky.net
########################10800
;
; BIND data file for zoky.net
;
$TTL 3h
@ IN SOA ns1.zoky.net. admin.zoky.net. (
1 ; Serial
3h ; Refresh after 3 hours
1h ; Retry after 1 hour
1w ; Expire after 1 week
1h ) ; Negative caching TTL of 1 day
;
@ IN NS ns1.zoky.net.
@ IN NS ns2.zoky.net.


zoky.net. IN MX 10 mail.zoky.net.
zoky.net. IN A 192.168.2.2
ns1 IN A 192.168.2.2
ns2 IN A 192.168.2.3
www IN CNAME zoky.net.
mail IN A 192.168.2.2
ftp IN CNAME zoky.net.
##sudo nano db.192.168.2

;
; BIND reverse data file for 2.168.192.in-addr.arpa
;
$TTL 604800
2.168.192.in-addr.arpa. IN SOA ns1.zoky.net. admin.zoky.net. (
1 ; Serial
3h ; Refresh after 3 hours
1h ; Retry after 1 hour
1w ; Expire after 1 week
1h ) ; Negative caching TTL of 1 day
;
2.168.192.in-addr.arpa. IN NS ns1.zoky.net.
2.168.192.in-addr.arpa. IN NS ns2.zoky.net.

2.2.168.192.in-addr.arpa. IN PTR zoky.net.

#sudo nano named.conf.local

zone "zoky.net" {
type master;
file "/etc/bind/zones/master/db.zoky.net";
};

zone "2.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/master/db.192.168.2";
};

## sudo nano named.conf.options

forwarders {
195.29.150.3;
195.29.150.4;
8.8.8.8;
8.8.4.4;
};
##named-checkconf
#named-checkzone zoky.net /etc/bind/zones/master/db.zoky.net
#named-checkzone 2.168.192.in-addr.arpa /etc/bind/zones/master/db.192.168.2
#/etc/init.d/bind9 start
#/etc/init.d/bind9 restart
ip address 192.168.2.2
gateway 192.168.2.1
dns server 192.168.2.2
search domains zoky.net
#################
hvala!

 
Odgovor na temu

Aleksandar Olujic
none

Član broj: 247504
Poruke: 127
194.8.63.*



+15 Profil

icon Re: bind dns ne resolva04.07.2011. u 17:26 - pre 133 meseci
forward only vs. forward first?

moze i dump named.conf za svaki slucaj


 
Odgovor na temu

Miroslav Strugarevic

Član broj: 5038
Poruke: 2689



+68 Profil

icon Re: bind dns ne resolva04.07.2011. u 17:42 - pre 133 meseci
Verovatno defaultni forward first. Jel host zoky.net kaze nesto drugacije ili ne? Ja bih izgasio apparmor za svaki slucaj.

/etc/init.d/apparmor stop
apt-get remove apparmor
 
Odgovor na temu

vinko78

Član broj: 250949
Poruke: 23
*.dsl.optinet.hr.



Profil

icon Re: bind dns ne resolva04.07.2011. u 18:42 - pre 133 meseci
!hm ja sam pocetnik ! koji je forward first?
hosta zoky.net

evo naredbe
#nslookup zoky.net
[email protected]:~$ nslookup zoky.net
Server: 192.168.2.2
Address: 192.168.2.2#53

Name: zoky.net
Address: 192.168.2.2
[email protected]:~$ nslookup 192.168.2.2
Server: 192.168.2.2
Address: 192.168.2.2#53

2.2.168.192.in-addr.arpa name = zoky.net.
# etc/hosts
127.0.0.1 localhost
127.0.1.1 zoky

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
###########################
probam pa javim! hvala
 
Odgovor na temu

vinko78

Član broj: 250949
Poruke: 23
*.dsl.optinet.hr.



Profil

icon Re: bind dns ne resolva04.07.2011. u 19:11 - pre 133 meseci
iskljucio sam apparmor! i
opet isto ne resolva
#/etc/init.d/apparmor stop
#dig @192.168.2.2 zoky.net

; <<>> DiG 9.2.3 <<>> ns zoky.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59448
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;zoky.net. IN NS

;; ANSWER SECTION:
zoky.net. 86400 IN NS ns1.zoky.net.


 
Odgovor na temu

Miroslav Strugarevic

Član broj: 5038
Poruke: 2689



+68 Profil

icon Re: bind dns ne resolva04.07.2011. u 20:01 - pre 133 meseci
Daj nam output ovih komandi:

grep named /var/log/messages
dig @localhost -t ANY +trace

Takodje daj nam kompletan named.conf.
 
Odgovor na temu

vinko78

Član broj: 250949
Poruke: 23
*.dsl.optinet.hr.



Profil

icon Re: bind dns ne resolva04.07.2011. u 20:42 - pre 133 meseci
named conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
hvala
 
Odgovor na temu

vinko78

Član broj: 250949
Poruke: 23
*.dsl.optinet.hr.



Profil

icon Re: bind dns ne resolva04.07.2011. u 20:59 - pre 133 meseci
[email protected]:~$ grep named /var/log/messages
grep: /var/log/messages: No such file or directory
[email protected]:~$ grep named /var/log/messages
grep: /var/log/messages: No such file or directory
[email protected]:~$ dig @localhost -t ANY +trace

; <<>> DiG 9.7.3 <<>> @localhost -t ANY +trace
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
[email protected]:~$ dig @localhost -t ANY +trace

; <<>> DiG 9.7.3 <<>> @localhost -t ANY +trace
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
[email protected]:~$ dig @192.168.2.2 -t ANY +trace

; <<>> DiG 9.7.3 <<>> @192.168.2.2 -t ANY +trace
; (1 server found)
;; global options: +cmd
;; Received 12 bytes from 192.168.2.2#53(192.168.2.2) in 9 ms
#################################################
log mesages nema komande !? nema fajla u log folderu!
named conf gore
pozz hvala
 
Odgovor na temu

cerveni
Zoran Cerveni
IT Manager
Zemun

Član broj: 89734
Poruke: 130

Sajt: cerveni.linuxd.org


+10 Profil

icon Re: bind dns ne resolva20.09.2011. u 22:27 - pre 131 meseci
pogledaj u named.conf.options treba da imas nesto slicno ovom
Code:

acl mynet {
    192.168.1.0/24;
    127.0.0.1/32;
    };

options {
    /*
     * 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;
    allow-query {
        mynet;
        };

    forward first;
    forwarders {
############################################################################
#    GOOGLE DNS
############################################################################
        8.8.8.8;
                8.8.4.4;
############################################################################
#     OpenDNS 208.67.222.222; 208.67.220.220; serveri
############################################################################
#        208.67.222.222;
#        208.67.220.220;
        };
};



za slucaj da treba da forwarduje upite drugom serveru u okviru tvoje mreze za DNS rekorde za koje on nije odgovoran dodaj i ovo

Code:

zone "nekidomen.local" IN {
    type forward;
    forwarders {192.168.5.2;};
};
zone "168.192.in-addr.arpa" {
    type forward;
    forwarders {192.168.5.2;};
};

 
Odgovor na temu

Miroslav Strugarevic

Član broj: 5038
Poruke: 2689



+68 Profil

icon Re: bind dns ne resolva20.09.2011. u 22:36 - pre 131 meseci
@crveni

Pozdrav,

vinko78 je resio problem. Imao je problematicnu mreznu karticu koja je pravila probleme sa mrezom. To je u stvari bio problem sve vreme.
 
Odgovor na temu

[es] :: Linux/UNIX serveri i servisi :: bind dns ne resolva

[ Pregleda: 2578 | Odgovora: 11 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.