dns-proxy-server icon indicating copy to clipboard operation
dns-proxy-server copied to clipboard

Cannot add CNAME record in the web UI: Invalid JSON

Open ulidtko opened this issue 3 years ago • 1 comments

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

ulidtko avatar Mar 31 '21 11:03 ulidtko

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

uvaa avatar Jul 07 '21 06:07 uvaa

Same issue here.

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

PriamX avatar Nov 21 '22 15:11 PriamX

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

@PriamX / @uvaa / @ulidtko

mageddo avatar Mar 02 '23 17:03 mageddo

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

mageddo avatar Mar 03 '23 11:03 mageddo

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

PriamX avatar Mar 04 '23 18:03 PriamX