# How to create subdomain in Virtualmin with external IP

**URL:** <https://forum.virtualmin.com/t/how-to-create-subdomain-in-virtualmin-with-external-ip/37841>\
**Category:** Virtualmin\
**Created:** [November 10, 2010, 1:53am UTC](https://forum.virtualmin.com/t/how-to-create-subdomain-in-virtualmin-with-external-ip/37841 "2010-11-10T01:53:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yngens](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/y/9de053/32.png) [@yngens](https://forum.virtualmin.com/u/yngens)\
**Post date:** [November 10, 2010, 1:53am UTC](https://forum.virtualmin.com/t/how-to-create-subdomain-in-virtualmin-with-external-ip/37841/1 "2010-11-10T01:53:00Z")

</div>

My Virtualmin has been configured to create virtual servers and virtual subservers with local IPs of my server. But sometimes I need some subdomains be hosted on another server. I tried to create a virtual subserver and enter external IP in section “IP address and forwarding”, but for some reason my subdomain does not resolve to external IP.

Do I need set any configurations some other places in Virtualmin or Webmin? Maybe I need somehow to bind external IP to make Virtualmin trust to it?

---

<div class="post-metadata">

**Author:** ![Locutus](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/l/90ced4/32.png) [@Locutus](https://forum.virtualmin.com/u/Locutus)\
**Post date:** [November 10, 2010, 6:17pm UTC](https://forum.virtualmin.com/t/how-to-create-subdomain-in-virtualmin-with-external-ip/37841/2 "2010-11-10T18:17:05Z")

</div>

Where exactly did you enter that external IP?

Do you have the BIND records for the new domain added to the parent zone, or create a new zone?

What are the parent domain, subdomain and IPs in question? To what does the subdomain resolve instead, and how exactly did you test that?

(I tested this… At least for me, what you’re trying to do seems to be working okay.)

---

<div class="post-metadata">

**Author:** ![yngens](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/y/9de053/32.png) [@yngens](https://forum.virtualmin.com/u/yngens)\
**Post date:** [November 10, 2010, 6:24pm UTC](https://forum.virtualmin.com/t/how-to-create-subdomain-in-virtualmin-with-external-ip/37841/3 "2010-11-10T18:24:36Z")

</div>

Locutus, I tried all the available variations: first tried to create a subdomain, generating BIND records separately, then adding them in parent zone, then I deleted subserver and tried to create top level virtual server. In all cases, surely I have put external IP in External IP address section, but was not sure should I put it Network interface, so tried both ways. Nothing did work. Subdomain digged from the server showed correct external IP, but digged from anywhere else always showed my server’s IP.

---

<div class="post-metadata">

**Author:** ![08a4210](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/0/8edcca/32.png) [@08a4210](https://forum.virtualmin.com/u/08a4210)\
**Post date:** [November 11, 2010, 3:18am UTC](https://forum.virtualmin.com/t/how-to-create-subdomain-in-virtualmin-with-external-ip/37841/4 "2010-11-11T03:18:50Z")

</div>

Why is it so complicated? cpanel was easy? watching this thread

---

<div class="post-metadata">

**Author:** ![Locutus](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/l/90ced4/32.png) [@Locutus](https://forum.virtualmin.com/u/Locutus)\
**Post date:** [November 11, 2010, 10:17am UTC](https://forum.virtualmin.com/t/how-to-create-subdomain-in-virtualmin-with-external-ip/37841/5 "2010-11-11T10:17:54Z")

</div>

“External IP address” is the right place to put it, yep. It does end up in the zone file then, and it seems it did so for you too, if digging from the server itself returned the correct IPs.

Why digging from the outside goes wrong can have many reasons. To evaluate this, I’d need to know more: For starters, what’s the names of the domain and subdomain in question, what IP address should you get and which do you get from outside?

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [April 30, 2020, 5:50am UTC](https://forum.virtualmin.com/t/how-to-create-subdomain-in-virtualmin-with-external-ip/37841/6 "2020-04-30T05:50:21Z")

</div>

Closed on April 30, 2020, 5:50am UTC


