Trying to add domain as an addon domain after terminating the account which had that domain as primary. I get this common error.
A DNS entry for the domain “mydomain.com” already exists.
So I did everything. See below:
nothing. Yes I'm replacing `domain.com` with my actual domain.
nothing
nope nothing
not there
not there either
nope, none there
not there
not there
not there
then restart both bind and httpd
still same error.
This shows the former content from named.config, but this is not actually in named.conf, nor in anything else, as you can see above.
I contacted my system admin and I told myself that I already tried all these things (I am the only point of contact, no one else, it's just me and it is my server).
I also ran grep to try to see if I could find any instances, removed all that was possible, but still nothing.
It's listed a couple times but these are archive files and shouldn't affect anything.
Similar with var:
Came here as a last resort. Please help.
A DNS entry for the domain “mydomain.com” already exists.
So I did everything. See below:
/scripts/whoowns domain.com
nothing. Yes I'm replacing `domain.com` with my actual domain.
/scripts/killdns domain.com
nothing
grep mydomain.com /etc/userdomains
nope nothing
/etc/named.conf
not there
/usr/local/apache/conf/httpd.conf
not there either
/var/named/domain.com.db
nope, none there
/etc/userdomains
not there
/etc/localdomains
not there
/var/cpanel/users/<username>
not there
/scripts/killdns mydomain.com
/scripts/updateuserdomains
/scripts/rebuildhttpdconf
/scripts/updateuserdomains
/scripts/rebuildhttpdconf
then restart both bind and httpd
still same error.
dig @IPAddress mydomain.com
This shows the former content from named.config, but this is not actually in named.conf, nor in anything else, as you can see above.
I contacted my system admin and I told myself that I already tried all these things (I am the only point of contact, no one else, it's just me and it is my server).
I also ran grep to try to see if I could find any instances, removed all that was possible, but still nothing.
root@server1 [/]# grep -rl "mydomain.com" /etc/*
/etc/httpd/conf/httpd.conf,v
/etc/localdomains,v
/etc/userdatadomains.stor
/etc/userdomains,v
/etc/httpd/conf/httpd.conf,v
/etc/localdomains,v
/etc/userdatadomains.stor
/etc/userdomains,v
It's listed a couple times but these are archive files and shouldn't affect anything.
Similar with var:
root@server1 [/]# grep -rl "mydomain.com" /var/*
grep: /var/clamd: No such device or address
/var/cpanel/configs.cache/_etc_mailips___default_colon_before_after_space
/var/cpanel/bandwidth/evxca1.sqlite
/var/cpanel/bandwidth_cache.sqlite
/var/cpanel/user_notifications/root/history/1432358935_wwwacct___[server.myserver.com] New account: mydomain (mydomain.com).eml
/var/lib/mlocate/mlocate.db
/var/lib/mysql/evxca1_em3f3dh5/wp_evm9xaoptions.MYD
/var/lib/mysql/evxca1_em3f3dh5/wp_evm9xaposts.MYD
/var/lib/mysql/evxca1_em3f3dh5/wp_evm9xausers.MYD
/var/lib/mysql/eximstats/smtp.MYI
/var/lib/mysql/eximstats/smtp.MYD
/var/log/maillog
/var/log/maillog-20160907
/var/log/bandwidth/ipmap
/var/log/exim_mainlog
grep: /var/clamd: No such device or address
/var/cpanel/configs.cache/_etc_mailips___default_colon_before_after_space
/var/cpanel/bandwidth/evxca1.sqlite
/var/cpanel/bandwidth_cache.sqlite
/var/cpanel/user_notifications/root/history/1432358935_wwwacct___[server.myserver.com] New account: mydomain (mydomain.com).eml
/var/lib/mlocate/mlocate.db
/var/lib/mysql/evxca1_em3f3dh5/wp_evm9xaoptions.MYD
/var/lib/mysql/evxca1_em3f3dh5/wp_evm9xaposts.MYD
/var/lib/mysql/evxca1_em3f3dh5/wp_evm9xausers.MYD
/var/lib/mysql/eximstats/smtp.MYI
/var/lib/mysql/eximstats/smtp.MYD
/var/log/maillog
/var/log/maillog-20160907
/var/log/bandwidth/ipmap
/var/log/exim_mainlog
Came here as a last resort. Please help.
Last edited: