[GH-ISSUE #219] Cannot add CNAME record in the web UI: Invalid JSON #90

Closed
opened 2026-02-26 04:34:01 +03:00 by kerem · 5 comments
Owner

Originally created by @ulidtko on GitHub (Mar 31, 2021).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/219

The web UI generates an error 400 when trying to add a CNAME record:

image

It seems that the backend has troubles parsing the resulting HTTP request:

Invalid JSON: json: cannot unmarshal string into Go struct field HostnameV1.ip of type [4]uint8

What is expected

CNAME record added.

Steps to Reproduce

  • Create and select a custom Environment on the :5380 web UI.
  • Try to add a CNAME record
  • DPS Version: 2.19.0
Originally created by @ulidtko on GitHub (Mar 31, 2021). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/219 The web UI generates an error 400 when trying to add a CNAME record: ![image](https://user-images.githubusercontent.com/365338/113138150-139ae000-922e-11eb-9e83-c5f1e8fb7b40.png) It seems that the backend has troubles parsing the resulting HTTP request: > Invalid JSON: json: cannot unmarshal string into Go struct field HostnameV1.ip of type [4]uint8 ### What is expected CNAME record added. ### Steps to Reproduce * Create and select a custom Environment on the `:5380` web UI. * Try to add a CNAME record - DPS Version: `2.19.0`
kerem 2026-02-26 04:34:01 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@uvaa commented on GitHub (Jul 7, 2021):

some tips to create cname record

  1. do not select the Type on CNAME ( default it's A )
  2. input your Hostname
  3. input any text in IP ( just in case the IP is empty )
  4. select the Type to CNAME, then input your Target and save data
<!-- gh-comment-id:875324163 --> @uvaa commented on GitHub (Jul 7, 2021): some tips to create cname record 1. do not select the `Type` on `CNAME` ( default it's `A` ) 2. input your `Hostname` 3. input any text in `IP` ( just in case the IP is empty ) 4. select the `Type` to `CNAME`, then input your `Target` and save data
Author
Owner

@PriamX commented on GitHub (Nov 21, 2022):

Same issue here.

Above tip didn't work, however, gave a different error: "×env not found"

<!-- gh-comment-id:1322263809 --> @PriamX commented on GitHub (Nov 21, 2022): Same issue here. Above tip didn't work, however, gave a different error: "×env not found"
Author
Owner

@mageddo commented on GitHub (Mar 2, 2023):

I got some related behavior, but fixed it at 3.5.2 can you try it?

@PriamX / @uvaa / @ulidtko

<!-- gh-comment-id:1452246642 --> @mageddo commented on GitHub (Mar 2, 2023): I got some related behavior, but fixed it at `3.5.2` can you try it? @PriamX / @uvaa / @ulidtko
Author
Owner

@mageddo commented on GitHub (Mar 3, 2023):

I'm closing this but feel free to reopen if the issue persists

<!-- gh-comment-id:1453374420 --> @mageddo commented on GitHub (Mar 3, 2023): I'm closing this but feel free to reopen if the issue persists
Author
Owner

@PriamX commented on GitHub (Mar 4, 2023):

@mageddo Tested with docker defreitas/dns-proxy-server 3.7.0...it works now! Thank you.

<!-- gh-comment-id:1454833131 --> @PriamX commented on GitHub (Mar 4, 2023): @mageddo Tested with docker defreitas/dns-proxy-server 3.7.0...it works now! Thank you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#90
No description provided.