Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th May 2006, 19:11
kaptk2 kaptk2 is offline
Junior Member
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default MyDNS rude awaking

Ok I have been running myDNS for a couple of months now with no problems. However yesterday we had a server crash that was running MyDNS. It was not MyDNS fault a NIC went bad. That stopped DNS though since we have a slave DNS server running BIND I thought all was well. I had entered in Zone Transfers the approiate IP and since things were working great before switching to MyDNS I just assumed things were working. They were not.

Here are some of the error messages I am getting in the logs of the slave box.
Code:
transfer of 'example1.com/IN' from 192.168.1.122#53: failed while receiving responses: bad zone
transfer of 'example1.com/IN' from 192.168.1.122#53: end of transfer
zone example2.net/IN: refresh: unexpected rcode (REFUSED) from master 192.168.1.122#53
zone example3.com/IN: has no NS records
transfer of 'example3.com/IN' from 192.168.1.122#53: failed while receiving responses: bad zone
dumping master file: tmp-XXXXC4edYW: open: permission denied
transfer of 'example4.net/IN' from 192.168.1.122#53: failed while receiving responses: permission denied
transfer of 'example4.net/IN' from 192.168.1.122#53: end of transfer
Any ideas on how to fix this or what the heck is going on?
Reply With Quote
Sponsored Links
  #2  
Old 8th May 2006, 23:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

The secondary DNS is trying to get the zones from the primary, but this doesn't work because it's down.
Repair your primary DNS server and boot it, and these errors should go away.
For now, you can ignore them.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th May 2006, 00:11
kaptk2 kaptk2 is offline
Junior Member
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The server is fixed and it is running DNS. The secondary server was never getting transfers. Do the transfers go over another port other than 53 with MyDNS? This is a weird one to me.
Reply With Quote
  #4  
Old 9th May 2006, 00:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

You must open port 53 TCP and UDP on your primary DNS. In /etc/mydns.conf, you must have
Code:
allow-axfr = yes
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 9th May 2006, 01:06
kaptk2 kaptk2 is offline
Junior Member
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Went back and double checked those things and everything looks great. Any other things that I should check?
Reply With Quote
  #6  
Old 9th May 2006, 17:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

It should work then... Did you restart MyDNS?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 10th May 2006, 01:11
kaptk2 kaptk2 is offline
Junior Member
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Tried another restart of MyDNS nothing. Still getting a bad zone error.
Reply With Quote
  #8  
Old 10th May 2006, 15:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

What's in your /etc/mydns.conf?
What's the output of
Code:
iptables -L
on the primary?
Do you see any errors in the primary's logs related to your problem?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 10th May 2006, 20:24
kaptk2 kaptk2 is offline
Junior Member
 
Join Date: Mar 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is the output of mydns.conf.

Code:
[root@index ~]# cat /etc/mydns.conf
##
##  /etc/mydns.conf
##  Mon Mar  6 11:15:54 2006
##  For more information, see mydns.conf(5).
##


                                # DATABASE INFORMATION

db-host = localhost             # SQL server hostname
db-user = mydns                 # SQL server username
db-password = password       # SQL server password
database = database            # MyDNS database name


                                # GENERAL OPTIONS

user = nobody                   # Run with the permissions of this user
group = nobody                  # Run with the permissions of this group
listen = 192.168.1.122        # Listen on these addresses ('*' for all)


                                # CACHE OPTIONS

zone-cache-size = 1024          # Maximum number of elements stored in the zone cache
zone-cache-expire = 60          # Number of seconds after which cached zones expires
reply-cache-size = 1024         # Maximum number of elements stored in the reply cache
reply-cache-expire = 30         # Number of seconds after which cached replies expire


                                # ESOTERICA

log = LOG_DAEMON                # Facility to use for program output (LOG_*/stdout/stderr)
pidfile = /var/run/mydns.pid    # Path to PID file
timeout = 120                   # Number of seconds after which queries time out
multicpu = 1                    # Number of CPUs installed on your system
allow-axfr = yes                # Should AXFR be enabled?
allow-tcp = yes                 # Should TCP be enabled?
ignore-minimum = no             # Ignore minimum TTL for zone?
soa-table = soa                 # Name of table containing SOA records
rr-table = rr                   # Name of table containing RR data
Here is the revlent part of iptables -L
Code:
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain
The only thing I see is success on the primary machine. So I am not sure where the hangup is.
Reply With Quote
  #10  
Old 10th May 2006, 23:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
 
Default

Can you try
Code:
listen = *
in /etc/mydns.conf and restart MyDNS?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New MyDNS Install Errors timgerr General 5 16th April 2009 18:07
MyDNS and ISPConfig CoDonCo General 3 27th July 2006 08:25
setting up a dns server (MYDNS) timgerr General 31 18th May 2006 12:27
MyDNS CentOS start on Reboot kaptk2 HOWTO-Related Questions 8 3rd April 2006 04:54


All times are GMT +2. The time now is 02:52.


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