Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st January 2010, 00:32
lucani lucani is offline
Member
 
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
Default Can not run axfr from slave dns

Hello!

My problem is that I can't import dns zone by axfr to my slave Bind from MyDNS master.

When I type in my slave:

Quote:
dig @masterip zone.com
everything is ok, but when it'ss trying to sync (by axfr :

Quote:
dig @masterip axfr zone.com
)

I get error

Quote:
Communications error to masterip#53: end of file
I've also noticed that MyDNS can't bind to port #53 (I run:

Quote:
mydns -v
) Is it the reason ?

Everything worked, but i had to reinstall all master : /
Reply With Quote
Sponsored Links
  #2  
Old 31st January 2010, 16:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,421
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

If mydns cant bind toport 53, then you must ahve another dns server installed on your system. Stop this other dns server and then start mydns.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 31st January 2010, 16:48
lucani lucani is offline
Member
 
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
Default

Is in linux any command to check current binded ports by services?
Reply With Quote
  #4  
Old 31st January 2010, 16:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,421
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

netstat -tap
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 31st January 2010, 17:11
lucani lucani is offline
Member
 
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
Default

mydns -v says:
Code:
mydns[12383]: ipv4_listener: bind on socket 6 (TCP) failed: 127.0.0.1+53: Address is already in use
but in netstat -tap I cant see any port 53 ! : /

I have also to say that I have a problem with internal DNS settings, it means that after installation without internet cable plugged in I couldnt browse the internet, I installed package resolvconf and it started working, yesterday I unistall it and everything is working fine (i didnt restart machine)

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

I also used this fix: http://howtoforge.com/forums/showpos...8&postcount=15

Last edited by lucani; 31st January 2010 at 17:17.
Reply With Quote
  #6  
Old 31st January 2010, 17:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,421
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

Then you have still the resolveconf running. Resolving wills top working as soon as you restart the server. So you should reinstall the resolver, configure it to listen only on ip 127.0.0.1 and then edit the mydns.conf file and configure it to listen on all ip addresses except 127.0.0.1
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 31st January 2010, 17:19
lucani lucani is offline
Member
 
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
Default

Quote:
configure it to listen only on ip 127.0.0.1
where i can configure it ?

Is it the only reason of this problem? I checked that on old master was same problem but axfr worked :/

Is it ok if i have my public ip as my nameserver (/etc/network/interfaces)? Maybe I should type 127.0.0.1 ?

Last edited by lucani; 31st January 2010 at 19:20.
Reply With Quote
  #8  
Old 1st February 2010, 13:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

What's the output of
Code:
netstat -tap
? What's in /etc/mydns.conf?
__________________
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 1st February 2010, 15:08
lucani lucani is offline
Member
 
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
Default

web:~# netstat -tap
Quote:
web:~# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:10024 *:* LISTEN 3039/amavisd (maste
tcp 0 0 localhost:10025 *:* LISTEN 3777/master
tcp 0 0 *:mysql *:* LISTEN 3103/mysqld
tcp 0 0 localhost:spamd *:* LISTEN 3193/spamd.pid
tcp 0 0 *:sunrpc *:* LISTEN 2668/portmap
tcp 0 0 host.domain:domain *:* LISTEN 5553/mydns
tcp 0 0 *:ftp *:* LISTEN 3791/pure-ftpd (SER
tcp 0 0 *:ssh *:* LISTEN 3009/sshd
tcp 0 0 *:46262 *:* LISTEN 2679/rpc.statd
tcp 0 0 localhost:ipp *:* LISTEN 3688/cupsd
tcp 0 0 *:smtp *:* LISTEN 3777/master
tcp 0 0 localhost:mysql localhost:37739 ESTABLISHED 3103/mysqld
tcp 0 248 host.domain:ssh 111.222.333.444:6399 ESTABLISHED 28795/0
tcp 0 0 localhost:mysql localhost:49965 ESTABLISHED 3103/mysqld
tcp 0 0 localhost:37739 localhost:mysql ESTABLISHED 3897/amavisd (ch3-a
tcp 0 0 localhost:49965 localhost:mysql ESTABLISHED 3896/amavisd (ch3-a
tcp6 0 0 [::]:imaps [::]:* LISTEN 3630/couriertcpd
tcp6 0 0 [::]op3s [::]:* LISTEN 3648/couriertcpd
tcp6 0 0 [::]op3 [::]:* LISTEN 3636/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 3613/couriertcpd
tcp6 0 0 [::]:http-alt [::]:* LISTEN 4043/apache2
tcp6 0 0 [::]:www [::]:* LISTEN 4043/apache2
tcp6 0 0 localhost:domain [::]:* LISTEN 5553/mydns
tcp6 0 0 [::]:ftp [::]:* LISTEN 3791/pure-ftpd (SER
tcp6 0 0 [::]:ssh [::]:* LISTEN 3009/sshd
tcp6 0 0 localhost:ipp [::]:* LISTEN 3688/cupsd
tcp6 0 0 [::]:https [::]:* LISTEN 4043/apache2
mydns.conf

Quote:
(...)

user = nobody # Run with the permissions of this user
group = nogroup # Run with the permissions of this group
listen = * # Listen on these addresses ('*' for all)
no-listen = 127.0.0.1 # Do not listen on these addresses


# CACHE OPTIONS

zone-cache-size = 2048 # Maximum number of elements stored in the zone cache
zone-cache-expire = 60 # Number of seconds after which cached zones expires
reply-cache-size = 2048 # 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/stder
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
recursive = # Location of recursive resolver
allow-axfr = yes # Should AXFR be enabled?
allow-tcp = yes # Should TCP be enabled?
allow-update = yes # Should DNS UPDATE be enabled?
ignore-minimum = no # Ignore minimum TTL for zone?
soa-table = dns_soa # Name of table containing SOA records
rr-table = dns_rr # Name of table containing RR data
soa-where = server_id = 1 # Extra WHERE clause for SOA queries
rr-where = server_id = 1 # Extra WHERE clause for RR queries
use-soa-active = yes # To fix bug 295 where active or inactive status is ignored
use-rr-active = yes# To fix bug 295 where active or inactive status is ignored.
notify-enabled = yes
#notify-source = 111.222.333.444
netstat -ltnp | grep :53

says:

Quote:
tcp 0 0 111.222.333.444:53 0.0.0.0:* LISTEN 5553/mydns
tcp6 0 0 ::1:53 :::* LISTEN 5553/mydns
so maybe everything is ok?
Is it possible that I done mistake in axfr.c fix but MyDNS started ? Can I reinstall MyDNS without reinstalling ISPConfig3 (=reinstalling system) ?

Last edited by lucani; 1st February 2010 at 20:17.
Reply With Quote
  #10  
Old 2nd February 2010, 15:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
 
Default

As far as I can see, MyDNS is listening on all IP addresses. If you don't want it to listen on 127.0.0.1, you should explicitly list your other IP addresses in the
Code:
listen =
line 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
IspConfig Dns work like slave patrykmarek Installation/Configuration 0 7th October 2009 10:03
DNS views with Master and Slave servers howto guytools Server Operation 0 24th May 2009 00:19
offsite DNS (master and slave) solution jorizzzz Tips/Tricks/Mods 1 9th March 2009 16:04
Automate DNS slave creation jorizzzz Tips/Tricks/Mods 7 10th April 2008 23:27
Slave dns problem blackmask Installation/Configuration 1 3rd October 2007 13:51


All times are GMT +2. The time now is 06:51.


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