serverwentdown / alias

CoreDNS plugin for replacing CNAME records on zone apex
https://coredns.io/explugins/alias/
Apache License 2.0
19 stars 9 forks source link

Does not work (or I don't understand how to use it) #7

Open ghost opened 3 years ago

ghost commented 3 years ago

I have the following config:

// Corefile
spiral.sh {
    file zones/spiral.sh
    alias
}
; zone
http-pool.spiral.sh. 3000 IN A 128.116.205.8
http-pool.spiral.sh. 3000 IN A 45.61.184.138
spiral.sh. 3000 IN CNAME http-pool.spiral.sh.

dig output:

;; ANSWER SECTION:
spiral.sh.      3000    IN  CNAME   http-pool.spiral.sh.
http-pool.spiral.sh.    3000    IN  A   128.116.205.8
http-pool.spiral.sh.    3000    IN  A   45.61.184.138

What am I doing wrong? I would like to show just the A records and not the CNAME, as shown in the example on the README.

serverwentdown commented 3 years ago

Additionally, include this block (or equivalent) in your Corefile:

# This is used to resolve CNAME records by the `file` plugin. Modify accordingly
. {
    forward . 1.1.1.1 1.0.0.1
}

If you already have included it, then it is likely a bug with this plugin. I'll check it out soon.