How do you point your domain to an external IP?

Procédure

Why point your domain name to an external IP?

You may be hosting your website with another provider, but you want to continue receiving emails with LWS. In that case, instead of changing the DNS servers, you only need to modify one of the zones of your domain name.

By changing the IP of the A-type zone, you will be able to redirect the domain name with and without WWW.

How do you point your domain to an external IP?

1. Log in to the administration of your domain name and click the "DNS Zone" button.

How do you point your domain to an external IP?

2. Find the A-type DNS zone named "@". The at sign replaces your domain name. Click the "Edit" pencil behind this line.

How do you point your domain to an external IP?

3. A new window will open. Change the IP to your new IP and click the "Save" button to validate your request.

How do you point your domain to an external IP?

If the change has been made successfully, you should see the modified zone. For a zone to update and for your domain name to point to the new IP, it may take a few hours.

Note: it is not possible to redirect directly to a specific port (for example port 465) by creating a record such as "99.99.99.99:465". You must make a simple redirection to the IP by following the instructions above. Redirection to the specific port will need to be done via a setting on the router of the device that manages this IP.

Your server has a dynamic IP (DuckDNS, No-IP)

If your server is at your home, its IP address may change. A dynamic DNS service such as DuckDNS or No-IP then keeps a name up to date that follows this address, for example monserveur.duckdns.org. With the LWS DNS zone, only the address with www can automatically follow this name; the address without www keeps a fixed IP.

  1. Forward the address with www

    In the DNS zone, find the CNAME line named www (its default value is @). Click its Edit pencil, replace the value with the name of your dynamic DNS ending with a dot, for example monserveur.duckdns.org., then click Save. Without the final dot, the name would be completed by your own domain.

  2. Choose what to do with the address without www

    The address without www (@) cannot receive a CNAME: it already carries the domain's NS and MX records, and a CNAME cannot coexist with other records on the same name (RFC 1034, section 3.6.2). Two options:

    • Redirect the address without www to the address with www: leave the A record @ on the address of your LWS hosting (value shown at the top of the DNS Zone page: "IPv4 WEB or www, A @ by default") and create a redirect of type domain.ext -> www.domain.ext (it is done through the .htaccess file of your LWS web space), as explained in the help article Redirect a domain name to another web address. Visitors will then arrive on the address with www, which follows your IP.
    • Point the address without www to your server: modify the A record @ with your server's current IP (steps 2 and 3 above). When your IP changes, you must make this change again yourself. Choose a short TTL (for example 15 minutes) in the TTL list on the line: the change will be taken into account more quickly.
  3. Check the AAAA record

    If the zone contains an AAAA line named @ and the address without www must go to your server, replace its value with your server's IPv6 address. Otherwise, visitors using IPv6 will continue to arrive at the address indicated by this line.

To check, open your address with www in a browser: your site hosted at your home should display. If you chose the redirect, the address without www should take you to the address with www.

How do you point your domain to an external IP in video?

Conclusion

You are now able to point your domain name to an external IP. If, however, this does not work, you can reset your DNS zones. Resetting the zones restores the default configuration.

Feel free to share your comments and questions!

help.lws.net/a/1040
Was this article helpful?

Yes

No

Read 66 986 times

Thank you! Feel free to ask questions about our documentation if you would like more information, and help us improve it.

Similar articles

A question about this article?

Ask the LWS team and the community. Answers are published after moderation.

Ask the LWS team and its community a question

GDPR: Controller: LWS-Ligne Web Services. Purpose: moderation and public publication of your question, possible notification of an answer. Legal basis: consent (Art. 6(1)(a) GDPR). Email retention: 90 days after notification, 12 months maximum without an answer. To exercise your rights, see the GDPR section of our Terms and Conditions.