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

Point to custom IP - content tag #183

Open
s-ata opened this issue Mar 25, 2024 · 2 comments
Open

Point to custom IP - content tag #183

s-ata opened this issue Mar 25, 2024 · 2 comments

Comments

@s-ata
Copy link

s-ata commented Mar 25, 2024

It is unclear in the documentation how to modify the config.json to point a record to a custom IP instead of to the public IP of the server.

If there is a way to do so, how is it done?

Say the current record is like this:

{
  "cloudflare": [
    {
      "authentication": {
            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
        }
      },
      "zone_id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
      "subdomains": [
        {
          "name": "example",
          "proxied": true
        }

      ]
    }
  ],
  "a": true,
  "aaaa": true,
  "purgeUnknownRecords": false,
  "ttl": 300
}

It will point to the public IP addres of the server, but I would like to point it to "192.168.1.10", for example.

@aon
Copy link

aon commented Apr 3, 2024

You should check other projects such as caddy or nginx, which should allow you to do reverse proxy, which is what you're looking for.

@s-ata
Copy link
Author

s-ata commented Apr 4, 2024

Thanks Aon, I get you can do it that way, but it is not exactly what I mean. I want to use the dns to point to a local IP directly.

In a normal case it should be easy to do it directly through the cloudflare internal dashboard, but just for the sake of having everything on a single config.json I wanted to write the entries here.

To explain in another way, the config file on the first post makes the entry example.mydomain.com point to my public ip address, where I have a service exposed to the internet, could be a proxy or anything else.
I want a entry that points to a custom IP address. Not necessarily on my local network, but I want to edit it manually.

@s-ata s-ata changed the title Point to local IP content - how to Point to custom IP - content tag Apr 6, 2024
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

2 participants