Can't assign nameserver to a domain: "Can't resolve IP address from host"

Symptoms

Attempt to assign a nameserver to a domain via RCP or API results in an error - "Can't resolve IP address from host"

Cause

Host (i.e. ns1.example.com) doesn't return an IP address or returned IP address mismatches one supplied by user.

 

Resolution

Ensure that IP address supplied to a nameserver in RCP or API matches the actual nameserver's IP address.

Ensure that specified host's DNS zone contains an A record with valid IP address. Check if IP is resolved via 

dig A your.host.tld

command.

Example of a valid dig command response:

dig A ns1.openprovider.nl

; <<>> DiG 9.18.30-0ubuntu0.20.04.2-Ubuntu <<>> A ns1.openprovider.nl
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17159
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;ns1.openprovider.nl. IN A

;; ANSWER SECTION:
ns1.openprovider.nl. 5039 IN A 162.159.26.10
Was this article helpful?
Additional questions? Submit a request