DNS custom not taken into account

I try to add two DNS entry for a domain but it doesn’t work at all

guillaumebouzige.com CNAME kbp.keybaseapi.com.
_keybase_pages.guillaumebouzige.com TXT kbp=/keybase/private/guillaumebouzige,kbpbot/guillaumebouzige.com

they are not propagated and I can’t use them

dig guillaumebouzige.com CNAME

; <<>> DiG 9.10.3-P4-Debian <<>> guillaumebouzige.com CNAME
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34736
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

; EDNS: version: 0, flags:; udp: 4096
;guillaumebouzige.com. IN CNAME

guillaumebouzige.com. 1800 IN SOA ns1.box.ddataa.org. hostmaster.box.ddataa.org. 2019112500 7200 1800 1209600 1800

;; Query time: 17 msec
;; WHEN: Tue Nov 26 10:21:32 CET 2019
;; MSG SIZE rcvd: 114

I apply a similar configuration to a subdomain and it works fine.
Would it be a problem because my domain (guillaumebouzige.com) doesn’t have A record ?

I am quite dumbfarted and running out of ideas for a solution…

Generally - You cannot use a CNAME on the root domain, you must only use an A record.

Here is a discussion on the topic:

1 Like

can I use an ALIAS instead ?

I am not sure what you mean … a CNAME is an ‘alias’.

As I mentioned you can use an A record to point to the IP address. Alternatively, you can use a subdomain or you can even use a redirect.

I was comparing to another domain working fine at a resgistar (gandi) and it has no A record entry but instead an ALIAS record entry along with TXT and MX, and (CNAME for www)

I don’t have IP adress to refer to as it needs to link to keybase api (similar thing as github pages)

An ALIAS record is a type of record that is not supported by all DNS servers including NSD which powers the authoritative DNS server used for MiaB.

You can always look up the correct IP address for kbp.keybaseapi.com. The problem though would be if they change the IP address your record would no longer work.

So your alternatives are …

Create a redirect
Use a subdomain
Add the A record
Use a DNS provider which supports ALIAS type records (such as Gandi)

how can you do equivalent of ALIAS record for redirect all root traffic to www subdomain ?

a simple meta redirect in HTML

(sorry I cannot be more specific, html is not my thing) @Guillaume

ok. got it. but it is not perfect at all :confused:

if anyone is trying to host static website on his keybase with DNS in miab

  1. got config by default with A record on my box ip
  2. I add www.mydomain.com CNAME to kbp.keybaseapi.com
  3. with the correct corresponding TXT on _keybase_pages.www.mydomain.com
  4. in the /home/user-data/www/mydomain.com/ folder in index.html
<body onload="javascript:window.location='https://mydomain.com'">

it is dirty but it works