uninstall / re-install virtualmin


Well i seem to have completely hosed a system and need to re-install virtualmin. What is the proper procedure to do so? (I think migrated cpanel accounts caused some problems and now i cannot get anything to work properly) Somehow i missed setting up Bind before migrating accounts so now i cannot get the resolv.conf to stick, bind to run, and other dns issues..

Thank you.



fyi: when trying to start BIND:

Failed to start service : Failed to start BIND : Starting named: Error in named configuration: zone localhost.localdomain/IN: loaded serial 0 zone localhost/IN: loaded serial 0 zone loaded serial 0 zone loaded serial 0 zone 0.in-addr.arpa/IN: loaded serial 0 /var/named/neweffectit.net.hosts:20: ignoring out-of-zone data (mail01.targetmyad.net) /var/named/neweffectit.net.hosts:21: ignoring out-of-zone data (host01.dealbent.net) zone neweffectit.net/IN: loaded serial 1328393967 /var/named/scottkappler.com.hosts:21: www..scottkappler.com: bad owner name (check-names) /var/named/scottkappler.com.hosts:22: ftp..scottkappler.com: bad owner name (check-names) /var/named/scottkappler.com.hosts:23: m..scottkappler.com: bad owner name (check-names) /var/named/scottkappler.com.hosts:24: localhost..scottkappler.com: bad owner name (check-names) /var/named/scottkappler.com.hosts:25: webmail..scottkappler.com: bad owner name (check-names) /var/named/scottkappler.com.hosts:26: admin..scottkappler.com: bad owner name (check-names) /var/named/scottkappler.com.hosts:27: mail..scottkappler.com: bad owner name (check-names) dns_rdata_fromtext: /var/named/scottkappler.com.hosts:28: near 'mail..scottkappler.com.': bad name (check-names) zone scottkappler.com/IN: loading from master file /var/named/scottkappler.com.hosts failed: bad owner name (check-names) zone scottkappler.com/IN: not loaded due to errors. _default/scottkappler.com/IN: bad owner name (check-names) zone whatacutiecuts.com/IN: loaded serial 1328397390 zone whatacutiecuts.us/IN: loaded serial 1328397389 zone chateauforest.com/IN: loaded serial 1328397616 zone cnetreport.com/IN: loaded serial 1328397749 zone heavenlyaffaire.com/IN: loaded serial 1328397801 zone conservativetarget.com/IN: loaded serial 1328398076 zone conservativetarget.org/IN: loaded serial 1328398075 zone conservativetarget.us/IN: loaded serial 1328398075 zone neweffectit.com/IN: loaded serial 1328401033 zone kapplerholdings.com/IN: loaded serial 1328417223 [FAILED]

A re-install is pretty drastic .. are you sure you want to do that?

One way would be to backup any domains you want to keep, re-install the OS, re-install Virtualmin, then restore from your backups.

Well that's not really the preferred route - I already have backups of all domains.. I cannot seem to figure the best way to correct this though, but if i have to do an OS re-install that would be a problem now... (not onsite) What would you suggest to do to fix??


Could you post or attach the contents of that file /var/named/scottkappler.com.hosts from the BIND error ?

Well not any longer - i actually deleted all but one domain for now (the one to be used for dns) BIND now starts but i have not gone any farther than this yet... I am not sure if something is still lingering as The strange thing is at godaddy when i try to add the nameservers (ns1/ns2.neweffectit.net) to the neweffectit.net domain it gives a "Nameserver not registered" error. (this server is supposed to be the nameserver)

Not sure what i should do / check anything at this point?


You may need to add those hosts at godaddy first .. they probably have a different section in their control panel for adding a "glue record" host with an IP address.

Yes, i am aware of the settings at Godaddy. The hosts are all "supposedly" correctly set-up. They are saying it is the (this) server... What is even stranger is if i do a test from http://network-tools.com on the IP i get this:

IP address:
Host name: host01.neweffectit.com is from United States(US) in region North America

TraceRoute to [host01.neweffectit.com]

Hop (ms) (ms) (ms)      IP Address Host name
1   1   0   0 jbdr2.0.dal.colo4.com 

2   0   0   0 xe-4-2-0.er2.dfw2.us.above.net 
3   0   0   0 xe-0-1-0.cr2.dfw2.us.above.net 
4   5   5   5 xe-4-2-0.cr2.iah1.us.above.net 
5   19   19   19 xe-1-1-0.mpr3.atl6.us.above.net 
6   20   20   20 
7   20   20   20 ge1-2.6509-aa.34.coloat.com 
8   20   20   20   - 
9   20   20   20 host01.neweffectit.com 

Trace complete

Retrieving DNS records for host01.neweffectit.com...
Attempt to get a DNS server for host01.neweffectit.com failed: host01.neweffectit.com does not exist in the DNS

Whois query for neweffectit.com...

Results returned from whois.internic.net:

One thing to note is it shows "Host name: host01.neweffectit.com" but the hostname is actually "host01.neweffectit.net" so i dont know where the .com is coming from.

My /etc/hosts:   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6   host01.neweffectit.net





grep myhostname /etc/postfix/main.cf:

[root@host01 etc]# grep myhostname /etc/postfix/main.cf
# The myhostname parameter specifies the internet hostname of this
# from gethostname(). $myhostname is used as a default value for many
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld
# The default is to use $myhostname minus the first component.
# mail appears to come from. The default is to append $myhostname,
#myorigin = $myhostname
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
# The default is $myhostname + localhost.$mydomain.  On a mail domain
mydestination = $myhostname, localhost.$mydomain, localhost, host01.neweffectit.net
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# You MUST specify $myhostname at the start of the text. That is an
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
[root@host01 etc]#

And finally the dns records for neweffectit.net on the server:

$ttl 3800
@ IN SOA ns1.neweffectit.net. root.ns1.neweffectit.net. (
38400 )
@ IN NS ns1.neweffectit.net.
@ IN NS ns2.neweffectit.net.
neweffectit.net. IN A
www.neweffectit.net. IN A
ftp.neweffectit.net. IN A
m.neweffectit.net. IN A
localhost.neweffectit.net. IN A
webmail.neweffectit.net. IN A
admin.neweffectit.net. IN A
ns1.neweffectit.net. IN A
ns2.neweffectit.net. IN A
neweffectit.net. IN TXT "v=spf1 a mx a:neweffectit.net a:host01.neweffectit.net ip4: -all"

Any thoughts on what to do now? I am calling godaddy too to be sure their system isn't messing something up.. or is not accurate.. Thanks a lot!

Update: godaddy was screwed up - we had to delete and re-create the hosts. For future reference if you create a host at godaddy and their systems are performing updates or maintenance at the same time it will tell you that your changes are saved but they are really not... this is apparently what occurred..

However, i still have this .com hostname thing... did i miss updating a file somewhere? it is centos6.2

Thanks a lot.

Which page are you seeing the .com hostname on?

That is what appears from outside - ie. http://network-tools.com and enter the domain or ip to run a check it returns with: host01.neweffectit.com

Same result from dnsstuff and others... (if you look at the post #7 above in the first box you will see the tracert that shows it) Thx

That's a reverse DNS lookup result ... you'd have to ask your ISP or hosting company to change it. It isn't under godaddy's control at all.

ha! wow, how did i miss that... i think i've been in front of this computer too long... I am my own host so i control RDNS... and you were right - i must have mistyped it..

Well i am officially done for the night. I will start trying to reupload domains tomorrow - Thanks for your help..