Local BIND server to Cloudflare lookup


#1

We’re in the process of standing up an internal BIND server for internal hosts, but we use the same domain name as our external DNS records. We need help configuring local BIND9 CNAME records that point to Cloudflare - if there are publicly hosted CNAME or A records that are listed in cloudflare, how do we configure our BIND9 zone records to perform the lookup in cloudflare?

For example, if our internal zone is domain.com, and our public website (with cloudflare records) is also domain.com, how do I tell my internal BIND lookups to actually lookup certain records from cloudflare?

Thank you,


#2

I would image you simply overwrite the records locally. This isn’t the place to ask those questions though, it’s not a BIND support community.


#3

Thanks, I know this is not a BIND support community, but it’s likely a very relevant question for this community.

For my question in particular, the cloudflare record is also a cname, so recreating the record locally in bind isn’t working for us.

Just hoping someone else has faced and knows a way around this.

Thanks


#4

Many people have difficulties finding the DNS records in their control panel, I somewhat doubt Bind will be of much relevance to them :smiling_imp:


#5

Why would it being a CNAME cause issues? Requesting A while the host is CNAME works fine, so just hijack that reply.

I don’t know BIND at all, but I would expect you could do a construct of the sort if (recordType == A && host == subdomain.example.com) then return X.


#6

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.