
7th November 2009, 03:26
|
|
Junior Member
|
|
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
ipsconfig3 on Lenny how-to troubles | myDNS
hi, i followed this how-to and ran in to a few hang ups:
http://www.howtoforge.com/perfect-se...nny-ispconfig3
1) There is no /etc/init.d/openbsd-inetd to restart. I do not know the impact of this.
2) MyDNS does not start with /etc/init.d/mydns start. - It does not produce an error, but after running /etc/init.d/mydns start and than looking at netstat, there is no mydns.
- I can start mydns via /usr/local/sbin/ ./mydns but have some errors
Quote:
tom@i:/usr/local/sbin$ ./mydns
mydns[17794]: error loading gid for group `nobody'
mydns[17794]: using gid 65534 from user `nobody'
mydns[17794]: Error connecting to MySQL server at localhost: Access denied for user 'username'@'localhost' (using password: YES) (errno=0)
|
Does mydns need additional config not described in the tutorial?
File: /etc/init.d/mydns
Quote:
#! /bin/sh
#
# mydns Start the MyDNS server
#
# Author: Philipp Kern <phil@philkern.de>.
# Based upon skeleton 1.9.4 by Miquel van Smoorenburg
# <miquels@cistron.nl> and Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/sbin/mydns
NAME=mydns
DESC="DNS server"
SCRIPTNAME=/etc/init.d/$NAME
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
start-stop-daemon --start --quiet \
--exec $DAEMON -- -b
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
start-stop-daemon --stop --oknodo --quiet \
--exec $DAEMON
echo "."
;;
reload|force-reload)
echo -n "Reloading $DESC configuration..."
start-stop-daemon --stop --signal HUP --quiet \
--exec $DAEMON
echo "done."
;;
restart)
echo -n "Restarting $DESC: $NAME"
start-stop-daemon --stop --quiet --oknodo \
--exec $DAEMON
sleep 1
start-stop-daemon --start --quiet \
--exec $DAEMON -- -b
echo "."
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac
exit 0
|
File: /etc/mydns.conf
Quote:
## AUTOMATICALLY GENERATED BY DEBCONF. DO NOT MODIFY DATABASE
## INFORMATION (database, db-*)...
## PLEASE RUN 'dpkg-reconfigure mydns-mysql' INSTEAD.
## CHANGES TO THE FOLLOWING DIRECTIVES ARE NOT PRESERVED, BUT REPLACED,
## ON UPGRADE:
## user, group, pidfile, db-*, database
##
## /etc/mydns.conf
## Thu Aug 2 16:36:26 2007
## For more information, see mydns.conf(5).
##
# DATABASE INFORMATION
db-host = localhost # SQL server hostname
db-user = ispconfig # SQL server username
db-password = 64092f58f0fa37b04be0c3d34d796d7d # SQL server password
database = dbispconfig # MyDNS database name
# GENERAL OPTIONS
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 = # 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/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
recursive = # Location of recursive resolver
allow-axfr = yes # Should AXFR be enabled?
allow-tcp = yes # Should TCP be enabled?
allow-update = no # 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.
|
Last edited by tomdavidson; 7th November 2009 at 03:30.
|

7th November 2009, 13:48
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,796
Thanks: 285
Thanked 1,805 Times in 1,357 Posts
|
|
Plesae proceed with the setup. ISPConfig will reconfigure mydns while you run the ispconfig installer.
|

7th November 2009, 19:47
|
|
Junior Member
|
|
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Till, thanks for the reply:
I did complete the process. It was not until seeing the monitor warning in the ISPConfig3 interface that I realized myDNS has a problem.
Perhaps the installer did not configure myDNS on my install?
-tom
|

7th November 2009, 20:33
|
|
Junior Member
|
|
Join Date: Oct 2009
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I had the error about /etc/init.d/openbsd-inetd too installing on Debian 5.0 too.
I assumed that it's no problem because we didn't need any inetd services anyway.
Is it worth making a note in the install doc that if there is an error when starting openbsd-inetd, ignore it?
Many thanks,
Chris
|
| 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 02:42.
|
Recent comments
17 hours 38 min ago
21 hours 14 min ago
23 hours 12 min ago
1 day 7 hours ago
1 day 9 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 12 hours ago
1 day 15 hours ago
1 day 20 hours ago