Domain instead of ip in Wireguard

Dust0741@lemmy.world to Selfhosted@lemmy.world – 24 points –

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)

6

You are viewing a single comment

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