HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   DNS not responding (http://www.howtoforge.com/forums/showthread.php?t=49636)

MyKE 25th October 2010 16:32

DNS not responding
 
Hi there,

I'm using bind and i followed Perfect Server - Debian Lenny (Debian 5.0) With BIND & Dovecot. I have set up correct IP in dns managment, fqdn. But pages does not work. Before bind, i was using mydns and it worked. Now i have bind and syslog shows this:

Code:

Oct 25 16:20:04 server1 named[20544]: loading configuration from '/etc/bind/named.conf'
Oct 25 16:20:04 server1 named[20544]: using default UDP/IPv4 port range: [1024, 65535]
Oct 25 16:20:04 server1 named[20544]: using default UDP/IPv6 port range: [1024, 65535]
Oct 25 16:20:04 server1 named[20544]: listening on IPv6 interfaces, port 53
Oct 25 16:20:04 server1 named[20544]: binding TCP socket: address in use
Oct 25 16:20:04 server1 named[20544]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 25 16:20:04 server1 named[20544]: binding TCP socket: address in use
Oct 25 16:20:04 server1 named[20544]: listening on IPv4 interface eth0, 192.168.1.7#53
Oct 25 16:20:04 server1 named[20544]: binding TCP socket: address in use
Oct 25 16:20:04 server1 named[20544]: automatic empty zone: 254.169.IN-ADDR.ARPA
Oct 25 16:20:04 server1 named[20544]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Oct 25 16:20:04 server1 named[20544]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Oct 25 16:20:04 server1 named[20544]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Oct 25 16:20:04 server1 named[20544]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Oct 25 16:20:04 server1 named[20544]: automatic empty zone: D.F.IP6.ARPA
Oct 25 16:20:04 server1 named[20544]: automatic empty zone: 8.E.F.IP6.ARPA
Oct 25 16:20:04 server1 named[20544]: automatic empty zone: 9.E.F.IP6.ARPA
Oct 25 16:20:04 server1 named[20544]: automatic empty zone: A.E.F.IP6.ARPA
Oct 25 16:20:04 server1 named[20544]: automatic empty zone: B.E.F.IP6.ARPA
Oct 25 16:20:04 server1 named[20544]: none:0: open: /etc/bind/rndc.key: permission denied
Oct 25 16:20:04 server1 named[20544]: couldn't add command channel 127.0.0.1#953: permission denied
Oct 25 16:20:04 server1 named[20544]: none:0: open: /etc/bind/rndc.key: permission denied
Oct 25 16:20:04 server1 named[20544]: couldn't add command channel ::1#953: permission denied
Oct 25 16:20:04 server1 named[20544]: zone 0.in-addr.arpa/IN: loaded serial 1
Oct 25 16:20:04 server1 named[20544]: zone 127.in-addr.arpa/IN: loaded serial 1
Oct 25 16:20:04 server1 named[20544]: zone 255.in-addr.arpa/IN: loaded serial 1
Oct 25 16:20:04 server1 named[20544]: zone electrohost.cz/IN: loaded serial 2010102405
Oct 25 16:20:04 server1 named[20544]: zone wzk.cz/IN: loaded serial 2010102404
Oct 25 16:20:04 server1 named[20544]: zone localhost/IN: loaded serial 2
Oct 25 16:20:04 server1 named[20544]: running
Oct 25 16:20:04 server1 named[20544]: zone electrohost.cz/IN: sending notifies (serial 2010102405)
Oct 25 16:20:04 server1 named[20544]: zone wzk.cz/IN: sending notifies (serial 2010102404)
Oct 25 16:20:04 server1 named[20544]: client 192.168.1.1#40626: received notify for zone 'electrohost.cz'
Oct 25 16:20:04 server1 named[20544]: client 192.168.1.1#19288: received notify for zone 'wzk.cz'
Oct 25 16:20:18 server1 named[3505]: client 81.92.148.241#40870: query (cache) 'www.vymenaodkazu.eu/A/IN' denied
Oct 25 16:20:19 server1 named[3505]: client 81.92.145.162#55410: query (cache) 'www.vymenaodkazu.eu/A/IN' denied

I'm using in ISPConfig 3.0.3 default dns templates so there is not mistake and i have correct NSSET.
Domain is wzk.cz.

Could you help me please set up working dns? Thanks.

till 25th October 2010 16:52

You had mydns installed on the same server and then switched the existing setup to bind without reinstalling the os?

MyKE 25th October 2010 16:58

No, this is fresh installation of the os with Perfect Server lenny tutorial.

falko 26th October 2010 15:13

What's the output of
Code:

ls -la /etc/bind/
?

MyKE 26th October 2010 15:26

output:
Code:

server1:~# ls -la /etc/bind/
celkem 24
drwxr-sr-x  3 root bind 1024 24.*řj 21.38 .
drwxr-xr-x 93 root root 6144 24.*řj 22.43 ..
-rw-r--r--  1 root root  353 10.*čen 21.32 db.empty
-rw-r--r--  1 root root  270 10.*čen 21.32 db.local
-rw-r--r--  1 root root 2878 10.*čen 21.32 db.root
-rw-r--r--  1 root root  237 10.*čen 21.32 db.0
-rw-r--r--  1 root root  271 10.*čen 21.32 db.127
-rw-r--r--  1 root root  237 10.*čen 21.32 db.255
-rw-r--r--  1 root bind  907 10.*čen 21.32 named.conf
-rw-r--r--  1 root bind  235 24.*řj 21.39 named.conf.local
-rw-r--r--  1 root bind  572 10.*čen 21.32 named.conf.options
-rw-r--r--  1 root bind  773 24.*řj 21.32 pri.electrohost.cz
-rw-r--r--  1 root bind  693 24.*řj 21.39 pri.wzk.cz
-rw-r-----  1 bind bind  77 24.*řj 20.33 rndc.key
drwxr-s---  2 root bind 1024 24.*řj 20.40 slave
-rw-r--r--  1 root root 1317 10.*čen 21.32 zones.rfc1918


falko 27th October 2010 14:31

What's in /etc/default/bind9?

MyKE 27th October 2010 15:40

there is output:

Code:

server1:~# cat /etc/default/bind9
# run resolvconf?
RESOLVCONF=yes

# startup options for the server
OPTIONS="-u bind"


falko 28th October 2010 17:56

Looks exactly like on my server (the same goes for the permissions). I have no idea what's wrong... :(

MyKE 28th October 2010 19:30

okay maybe is wrong nsset. but thanks for support guys :)

MyKE 21st December 2010 16:51

Hi, For a long time I haven't solved DNS problem. I start from begin.

I have Debian lenny ISPConfig 3.0.3.1 with myDNS. Created NSSet at domain registrator with glue records to my server IP. Server has open all ports (is in DMZ zone). Configured myDNS SOA with correct records. Correct hostname, static IP address. I dont know where is problem why online tools, dig, etc... shows that dns server is down at domain electrohost.cz. My hostname is server.electrohost.cz. Firts i look at netstat.

Quote:

netstat -tap | grep dns

tcp 0 0 server.electroho:domain *:* LISTEN 3478/mydns
tcp 0 0 localhost:domain *:* LISTEN 3478/mydns
tcp6 0 0 localhost:domain [::]:* LISTEN 3478/mydns

I think its okay.

Next resolv.conf

Quote:

cat /etc/resolv.conf
nameserver 192.168.1.1
nameserver 93.185.0.141
First name server is my router with DNS from ISP and next is my Public IP address my server.

Ports are open i tried it. DNS records are also in correct form with my own NS. ISPConfig shows all services online.
Looks like DNS server must work when i type address in browser but it doesn't work. I tried everything, 3 times reinstalled server with bind, mydns but same problem. I don't know where is problem. All is up, configured... I hope that anybody help me. At last i'm going to contact my ISP if block my services, i don't know. I know its my problem but I really dont know what to do I hope in some good idea. Thank you really for any help.


All times are GMT +2. The time now is 22:15.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.