PDA

View Full Version : bind offline. Please help. netstat and dig inside


chachdog
30th June 2007, 03:36
root@sc1425 etc]# /root/ispconfig/php/php -v
PHP 5.2.3 (cli) (built: Jun 21 2007 18:58:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
[root@sc1425 etc]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:897 *:* LISTEN 1987/rpc.statd
tcp 0 0 *:mysql *:* LISTEN 3106/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1948/portmap
tcp 0 0 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx66.240.82.26:st argatealerts SYN_RECV -
tcp 0 0 *:hosts2-ns *:* LISTEN 3127/ispconfig_http
tcp 0 0 *:ftp *:* LISTEN 2217/proftpd: (acce
tcp 0 0 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*:* LISTEN 2146/cupsd
tcp 0 0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:smtp *:* LISTEN 3389/sendmail: acce
tcp 0 0 *:imaps *:* LISTEN 2201/dovecot
tcp 0 0 *:pop3s *:* LISTEN 2201/dovecot
tcp 0 0 *:pop3 *:* LISTEN 2201/dovecot
tcp 0 0 *:imap *:* LISTEN 2201/dovecot
tcp 0 0 *:http *:* LISTEN 3338/httpd
tcp 0 0 *:ssh *:* LISTEN 2166/sshd
tcp 0 0 *:https *:* LISTEN 3338/httpd
getnameinfo failed
getnameinfo failed
tcp 0 1448 [UNKNOWN]:ssh [UNKNOWN]:50089 ESTABLISHED 9294/0

dig google.com
; <<>> DiG 9.3.3rc2 <<>> google.com
;; global options: printcmd
;; connection timed out; no servers could be reached

chachdog
30th June 2007, 03:42
[root@sc1425 etc]# /etc/init.d/named restart
Stopping named: [FAILED]
Starting named:
Error in named configuration:
zone 0.0.127.in-addr.arpa/IN: loaded serial 42

pri.173.8.12.in-addr.arpa:15: warning: \@.rexample.com: bad name (check-names)
pri.173.8.12.in-addr.arpa:18: warning: \@.example.com: bad name (check-names)
pri.173.8.12.in-addr.arpa:24: warning: \@.test.com: bad name (check-names)
pri.173.8.12.in-addr.arpa:27: warning: \@.test2: bad name (check-names)
pri.173.8.12.in-addr.arpa:32: warning: \@.you get the point.com

chachdog
30th June 2007, 03:44
Do i need those @ signs in the (A) record section of the dns? it says warning. I was under the impression that putting that in enables someone to get ot the site with just http://example.com to get to the site. vs www.example.com needs a www (A) record.

falko
30th June 2007, 17:41
What's in /etc/resolv.conf and your named.conf?

chachdog
1st July 2007, 04:24
i just started deleting dns records. i guess it didn't like the way i put in an MX record. can you not put in a mx record to have it point to a different server?

till
1st July 2007, 12:14
You can put in a mx record to any server you like, so this can not be the probelm.

But MX records never contain a @ sign. What exactly did you enter as mx record?

chachdog
1st July 2007, 14:07
mail.example.com

without a period at the end. I found that a period at the end breaks Bind

what is the difference between an mx record and an (A) record pointing to mail.example.com

whenever i put something in mx it breaks bind.

i tried mail as the hostname and example.com as the mailserver.

Do i leave hostname blank?

I have the mail server in there as mail.example.com and bind didn't go offline.

chachdog
1st July 2007, 14:52
how can i troubleshoot mail sending but not recieving? i can send from myself within webmail to myself and see that mail but outside mail is not getting in. smtp and pop are set to allow on the firewall.

thanks

till
2nd July 2007, 11:15
how can i troubleshoot mail sending but not recieving? i can send from myself within webmail to myself and see that mail but outside mail is not getting in. smtp and pop are set to allow on the firewall.

thanks

Please have a look at your mail logfile for errors.

till
2nd July 2007, 11:16
mail.example.com

without a period at the end. I found that a period at the end breaks Bind

what is the difference between an mx record and an (A) record pointing to mail.example.com

whenever i put something in mx it breaks bind.

i tried mail as the hostname and example.com as the mailserver.

Do i leave hostname blank?

I have the mail server in there as mail.example.com and bind didn't go offline.


Never add a period in ISPConfig at the end of a domain name, ISPConfig adds the dot at the end automatically if nescessary. Leave the hostname blank.

chachdog
2nd July 2007, 15:56
Please have a look at your mail logfile for errors.

where is this log you speake of? I want to check it out and maybe post it up.

falko
2nd July 2007, 19:22
It's in the /var/log/ directory.

chachdog
3rd July 2007, 03:21
I am new to linux. I am getting it slowly but key word is slowly. thanks for being patient with me. :)


[root@sc1425 etc]# cd mail
[root@sc1425 mail]# ls
access domaintable.db local-host-names~ Makefile spamassassin trusted-users virtusertable.db
access.db helpfile mailertable sendmail.cf submit.cf virtusertable
domaintable local-host-names mailertable.db sendmail.mc submit.mc virtusertable~
[root@sc1425 mail]# ls
access domaintable.db local-host-names~ Makefile spamassassin trusted-users virtusertable.db
access.db helpfile mailertable sendmail.cf submit.cf virtusertable
domaintable local-host-names mailertable.db sendmail.mc submit.mc virtusertable~
[root@sc1425 mail]# vi sendmail.cf

#
# Copyright (c) 1998-2004 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983, 1995 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#

################################################## ####################
################################################## ####################
#####
##### SENDMAIL CONFIGURATION FILE
#####
##### built by mockbuild@builder5.centos.org on Wed Mar 14 20:00:26 EDT 2007
##### in /builddir/build/BUILD/sendmail-8.13.8/cf/cf
##### using ../ as configuration include directory
#####
################################################## ####################
#####
##### DO NOT EDIT THIS FILE! Only edit the source .mc file.
#####
################################################## ####################
################################################## ####################

##### $Id: cfhead.m4,v 8.116 2004/01/28 22:02:22 ca Exp $ #####
##### $Id: cf.m4,v 8.32 1999/02/07 07:26:14 gshapiro Exp $ #####
##### setup for linux #####
[root@sc1425 mail]# /var/log
-bash: /var/log: is a directory
You have new mail in /var/spool/mail/root
[root@sc1425 mail]# ls
access domaintable.db local-host-names~ Makefile spamassassin trusted-users virtusertable.db
access.db helpfile mailertable sendmail.cf submit.cf virtusertable
domaintable local-host-names mailertable.db sendmail.mc submit.mc virtusertable~
[root@sc1425 mail]# vi sendmail.cf

#
# Copyright (c) 1998-2004 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983, 1995 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#

################################################## ####################
################################################## ####################
#####
##### SENDMAIL CONFIGURATION FILE
#####
##### built by mockbuild@builder5.centos.org on Wed Mar 14 20:00:26 EDT 2007
##### in /builddir/build/BUILD/sendmail-8.13.8/cf/cf
##### using ../ as configuration include directory
#####
################################################## ####################
#####
##### DO NOT EDIT THIS FILE! Only edit the source .mc file.
#####
################################################## ####################
################################################## ####################

##### $Id: cfhead.m4,v 8.116 2004/01/28 22:02:22 ca Exp $ #####
##### $Id: cf.m4,v 8.32 1999/02/07 07:26:14 gshapiro Exp $ #####
##### setup for linux #####
[root@sc1425 mail]# vi sendmail.mc

divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl # make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
dnl #
dnl # Do not advertize sendmail version.
dnl #
dnl define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')dnl
dnl #
dnl # default logging level is 9, you might want to set it higher to
dnl # debug the configuration
dnl #
dnl define(`confLOG_LEVEL', `9')dnl
dnl #
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
dnl define(`SMART_HOST', `smtp.your.provider')dnl
dnl #
define(`confDEF_USER_ID', ``8:12'')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
dnl #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
dnl define(`confAUTH_OPTIONS', `A p')dnl
dnl #
dnl # PLAIN is the preferred plaintext authentication method and used by
dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
dnl # use LOGIN. Other mechanisms should be used if the connection is not
dnl # guaranteed secure.
dnl # Please remember that saslauthd needs to be running for AUTH.
"sendmail.mc" 176L, 7209C

falko
3rd July 2007, 16:34
Did you have a look at your mail log if there are errors in there?

I see you use Sendmail. Sendmail's a nightmare to configure. I recommend to use Postfix instead. Which distribution do you use?

chachdog
3rd July 2007, 17:24
how can i tell which one is loaded? i see postfix and sendmail under ispmanagement\server\settings\email for services. can i just pick postfix from the drop down menu?

how can i see if it is loaded/running?

thanks.

falko
4th July 2007, 16:45
Which distribution do you use? What's the output of ls /etc and uname -a?

chachdog
4th July 2007, 23:04
[root@sc1425 mail]# ls /etc
acpi gre.d my.cnf_orig redhat-lsb
adjtime group netplug redhat-release
alchemist group- netplug.d resolv.conf
aliases grub.conf NetworkManager rhgb
aliases.db gshadow news rmt
alsa gshadow- nscd.conf rndc.key
alternatives gssapi_mech.conf nsswitch.conf rpc
anacrontab gtk-2.0 ntp rpm
at.deny hal ntp.conf rwtab
audit host.conf odbc.ini rwtab.d
avahi hosts odbcinst.ini samba
bashrc hosts.allow oddjob sasl2
Bastille hosts.deny oddjobd.conf scrollkeeper.conf
Bastille.backup_06_06_2007__14_37_13 httpd oddjobd.conf.d scsi_id.config
Bastille.backup_06_06_2007__17_39_51 idmapd.conf openldap securetty
Bastille.backup_06_21_2007__19_32_21 init.d opt security
blkid initlog.conf pam.d selinux
bonobo-activation inittab pam_pkcs11 services
cdrecord.conf inputrc pam_smb.conf sestatus.conf
conman.conf iproute2 pango setroubleshoot
cron.d issue passwd setuptool.d
cron.daily issue.net passwd- sgml
cron.deny kdump.conf pcmcia shadow
cron.hourly krb5.conf php.d shadow-
cron.monthly ldap.conf php.ini shells
crontab ld.so.cache pinforc skel
cron.weekly ld.so.conf pki smartd.conf
csh.cshrc ld.so.conf.d pm smrsh
csh.login libaudit.conf ppp sound
cups libuser.conf prelink.cache squirrelmail
dbus-1 localtime prelink.conf ssh
default login.defs printcap stunnel
depmod.d logrotate.conf profile sudoers
desktop-profiles logrotate.d profile.d sysconfig
dev.d logwatch proftpd.conf sysctl.conf
dhclient-eth0.conf lsb-release.d proftpd_ispconfig.conf syslog.conf
dhcpd.conf lvm proftpd_ispconfig.conf~ termcap
DIR_COLORS lynx.cfg protocols tux.mime.types
DIR_COLORS.xterm lynx-site.cfg quotagrpadmins udev
dovecot.conf mail quotatab updatedb.conf
dumpdates mailcap racoon virc
environment mail.rc rc warnquota.conf
esd.conf makedev.d rc0.d webalizer.conf
exports man.config rc1.d wgetrc
fb.modes mgetty+sendfax rc2.d wpa_supplicant
filesystems mime.types rc3.d X11
firmware mime.types.06-06-07_12-29-48 rc4.d xdg
fonts mime.types.06-06-07_14-37-13 rc5.d xen
foomatic mime.types.06-06-07_17-39-51 rc6.d xferstats.cfg
fstab mke2fs.conf rc.d xinetd.d
gaim modprobe.conf rc.local xml
gconf modprobe.d rc.news yp.conf
gdm motd rc.sysinit yum
ghostscript mtab readahead.d yum.conf
gnome-vfs-2.0 mtools.conf reader.conf yum.repos.d
gnome-vfs-mime-magic my.cnf reader.conf.d

chachdog
4th July 2007, 23:04
Which distribution do you use? What's the output of ls /etc and uname -a?

2.6.18-8.1.6.el5xen #1 SMP Thu Jun 14 20:11:42 EDT 2007 i686 i686 i386 GNU/Linux

falko
5th July 2007, 15:18
Ok, what's in /etc/redhat-release? I tend to think that it's a CentOS or RedHat system.