22

Like the title says, I want to replace the IP address in a wireguard .conf file to be a domain instead.

I own a domain through cloudflare, so say I wanted to use vpn.example.org

What DNS record and info do I need to put into Cloudflare? (I am aware I'll need to update it if my ip changes)

you are viewing a single comment's thread
view the rest of the comments
[-] Decipher0771@lemmy.ca 30 points 12 hours ago

Just an A record, you just need the domain query to resolve to your IP.

[-] Dust0741@lemmy.world 10 points 12 hours ago

Thank you. It really was that simple

[-] majestictechie@lemmy.fosshost.com 1 points 6 hours ago

I do this on my home network which has a Dynamic IP. I wrote a script which I cron to check and update it if it changes https://github.com/MajesticTechie/CloudflareDynamicDNS

[-] SaltySalamander@fedia.io 1 points 1 hour ago

I do this with the dynamic dns plugin in OPNsense. It really is set-it-and-forget-it.

this post was submitted on 17 Nov 2024
22 points (89.3% liked)

Selfhosted

40198 readers
591 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS