Comments (4)
That's an excellent use case, that I'd not previously thought of!
The issue probably stems from the fact that if you give bash a glob that doesn't match anything, it will give back the glob as the result: i.e. "echo *.enoent" will echo a literal *.enoent
. In the context of a bash for loop, this is a valid token, so it loops once and the named-checkzone
gets exec'd with a bad (non-existent) zone file.
I think this is as simple as a set -o nullglob
, to skip the loop body altogether. I'm testing that locally in my lab right now.
from bind9-boshrelease.
Yes, as I suspected:
[Thu Aug 13 15:25:02 UTC 2020] checking named configuration...
[Thu Aug 13 15:25:02 UTC 2020] named configuration OK
[Thu Aug 13 15:25:02 UTC 2020] checking zone '*' (in /var/vcap/sys/run/named/data/*.db)...
usage: named-checkzone [-djqvD] [-c class] [-f inputformat] [-F outputformat] [-J filename] [-t directory] [-w directory] [-k (ignore|warn|fail)] [-n (ignore|warn|fail)] [-m (ignore|warn|fail)] [-r (ignore|warn|fail)] [-i (full|full-sibling|local|local-sibling|none)] [-M (ignore|warn|fail)] [-S (ignore|warn|fail)] [-W (ignore|warn)] [-o filename] zonename filename
It's treating a literal *
as the filename to check.
from bind9-boshrelease.
Check out v1.3.0 which has this fix in it.
https://github.com/cloudfoundry-community/bind9-boshrelease/releases/tag/v1.3.0
from bind9-boshrelease.
Tested, and working. Thanks!
from bind9-boshrelease.
Related Issues (12)
- New release with PR#10 HOT 3
- Update bind9 to 9.13.3 on 9.14.0 to comply with EDNS HOT 5
- Cannot deploy bind9 in dynamic network HOT 3
- Cannot deploy bind9 when using proxy HOT 3
- Upgrade to latest BIND9 (9.15.2)
- "templates/make_manifest" doesn't exist HOT 3
- Rolling upgrades and high availability HOT 8
- Configurable logging HOT 2
- New release to include forward zone HOT 3
- bind version should be update
- Clean up templates and scripts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bind9-boshrelease.