Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpanel migration - subdomains use my internal IP #933

Closed
shoulders opened this issue Oct 20, 2024 · 5 comments
Closed

cpanel migration - subdomains use my internal IP #933

shoulders opened this issue Oct 20, 2024 · 5 comments

Comments

@shoulders
Copy link

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.5
Usermin version 2.102
Virtualmin version 7.20.2 Pro
Theme version 21.20.7
Apache version 2.4.52
Package updates 10 package updates are available

the issue

I imported a cpanel account which had subdomains. These subdomains DNS were populated with my server's internal IP address (10.0.0.47) and not my public one (123.123.123.123).

IPs changed for privacy/security.

The parent account's DNS was correctly set.

the 2 subdomains are

  • demo.example.com
  • search.example.com
$ttl 3600
example.com.	IN	SOA	ns1.example.com. root.ns1.example.com. (
			2024101916
			3600
			600
			1209600
			3600 )
@	IN	NS	ns1.example.com.
ns1.example.com.	IN	A	123.123.123.123
@	IN	NS	ns2.example.com.
ns2.example.com.	IN	A	123.123.123.123
example.com.	IN	A	123.123.123.123
www.example.com.	IN	A	123.123.123.123
ftp.example.com.	IN	A	123.123.123.123
localhost.example.com.	IN	A	127.0.0.1
webmail.example.com.	IN	A	123.123.123.123
admin.example.com.	IN	A	123.123.123.123
mail.example.com.	IN	A	123.123.123.123
example.com.	IN	MX	5 mail.example.com.
example.com.	IN	TXT	"v=spf1 a mx ip4:123.123.123.123 -all"
202311._domainkey.example.com.	IN	TXT	( "v=DKIM1;.......................... *** removed on purpose*****
demo.example.com.	IN	A	10.0.0.47
www.demo.example.com.	IN	A	10.0.0.47
ftp.demo.example.com.	IN	A	10.0.0.47
localhost.demo.example.com.	IN	A	127.0.0.1
webmail.demo.example.com.	IN	A	10.0.0.47
admin.demo.example.com.	IN	A	10.0.0.47
search.example.com.	IN	A	10.0.0.47
www.search.example.com.	IN	A	10.0.0.47
ftp.search.example.com.	IN	A	10.0.0.47
localhost.search.example.com.	IN	A	127.0.0.1
webmail.search.example.com.	IN	A	10.0.0.47
admin.search.example.com.	IN	A	10.0.0.47
@	IN	CAA	0 issuewild letsencrypt.org

additional

I was under the assumption when you imported a cpanel account with subdomains a special subdomain would be created (i.e. not sub server).

  • Virtualmin --> system settings --> configuration category: Advanced --> Allow creation of sub-domains`

My current setting

image

Thanks

@jcameron
Copy link
Collaborator

Was the issue here that the parent domain had the public IP, but the sub-domain imported from the same cPanel backup was given the internal IP?

@shoulders
Copy link
Author

Was the issue here that the parent domain had the public IP, but the sub-domain imported from the same cPanel backup was given the internal IP?

Yes this is correct.

@jcameron
Copy link
Collaborator

Ok I see the cause of this now - we'll fix it in the next release.

webmin pushed a commit that referenced this issue Oct 21, 2024
@iliajie
Copy link
Collaborator

iliajie commented Oct 21, 2024

Ok I see the cause of this now - we'll fix it in the next release.

@shoulders You can test it right away by applying this patch:

webmin patch https://github.com/virtualmin/virtualmin-gpl/commit/d8771a1

@shoulders
Copy link
Author

I will try on my test site tommorow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants