
31st January 2010, 00:32
|
|
Member
|
|
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
|
|
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:
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:
) Is it the reason ?
Everything worked, but i had to reinstall all master : /
|

31st January 2010, 16:45
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,071
Thanks: 697
Thanked 4,249 Times in 3,261 Posts
|
|
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.
|

31st January 2010, 16:48
|
|
Member
|
|
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
|
|
Is in linux any command to check current binded ports by services?
|

31st January 2010, 16:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,071
Thanks: 697
Thanked 4,249 Times in 3,261 Posts
|
|
netstat -tap
|

31st January 2010, 17:11
|
|
Member
|
|
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
|
|
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.
|

31st January 2010, 17:14
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,071
Thanks: 697
Thanked 4,249 Times in 3,261 Posts
|
|
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
|

31st January 2010, 17:19
|
|
Member
|
|
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
|
|
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.
|

1st February 2010, 13:42
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,600 Times in 2,449 Posts
|
|
What's the output of ? What's in /etc/mydns.conf?
|

1st February 2010, 15:08
|
|
Member
|
|
Join Date: Nov 2009
Posts: 81
Thanks: 4
Thanked 4 Times in 3 Posts
|
|
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.
|

2nd February 2010, 15:34
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,600 Times in 2,449 Posts
|
|
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
line in /etc/mydns.conf and restart MyDNS.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 03:09.
|
|
Recent comments
10 hours 44 min ago
11 hours 43 min ago
15 hours 30 min ago
16 hours 44 min ago
20 hours 21 min ago
1 day 3 hours ago
1 day 12 hours ago
1 day 14 hours ago
2 days 5 hours ago
2 days 7 hours ago