docs icon indicating copy to clipboard operation
docs copied to clipboard

badsys

Open lUNuXl opened this issue 1 year ago • 3 comments

File pages/web/domains/dns_dynhost/guide.en-ie.md doesn't explain any error(s) and etc. of the mentioned endpoint.

Right now I'm stuck pulling my hair out and trying to figure out what badsys response with HTTP status code of 200 mean. There isn't even a curl command example given.

The IP of my subdomain didn't change in the panel, dig still points to the old IP I've set manually in the panel and google returns no useful results.

Java code (okHttp library) that repoduces my issue:

    public void updateDnsOkHttp(String name, String target) throws Exception {
        log.info("Creating okHttp request");
        OkHttpClient client = new OkHttpClient();

        RequestBody body = RequestBody.create(null, new byte[0]);
        final String url = baseUrl.replaceFirst("HOSTNAME", name + "." + configuration.BASE_DOMAIN).replaceFirst("IP", target);
        Request request = new Request.Builder()
                .url(url)
                .post(body)
                .header("Content-Length", "0")
                .header("Authorization", Credentials.basic(configuration.OVH_USER, configuration.OVH_PASSWORD))
                .build();

        log.info("Executing request to: {}", url);
        Response response = client.newCall(request).execute();

        final String str = response.body().string();
        log.info("Got response: {}", str);

        final int code = response.code();
        log.info("Got response code: {}", code);

        if(code != 200) {
            throw new Exception("Couldn't update DNS record, response code: " + code);
        }
        if(str.startsWith("badsys")) {
            throw new Exception("Couldn't update DNS record");
        }
    }
    ```

lUNuXl avatar Oct 04 '22 22:10 lUNuXl

Hi IUNuXI,

The objective of this guide is to explain the basic actions that need to be realized in the OVHcloud Control Panel to begin setting up a DynHost for an OVHcloud domain name. We can't provide you with more information on the operations about using third-party softwares or scripts. As indicated in the Step 3 paragraph of the guide, "You will need to rely on your own knowledge to set up and configure the client. We have provided general information on how to proceed below. Nevertheless, we recommend contacting a specialist provider if you encounter any difficulties. We will not be able to assist you with this ourselves. "

Our services did a rapid analysis of your issue though, the "badsys" response is returned only with the following: if $system ne "dyndns".

Best regards, The OVHcloud Guides team

OVH-Team-Guides avatar Oct 07 '22 12:10 OVH-Team-Guides