New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] fmDNS views - there is no mechanism to order views #397

Closed
beza2000 opened this Issue Oct 13, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@beza2000

beza2000 commented Oct 13, 2017

fM Version : 3.0.2
fmDNS Version : 3.0.3

  • I have read and understood the contributors guide.
  • I have checked that the bug-fix I am reporting can be replicated, or that the feature I am suggesting isn't already present.
  • I have checked that the issue I'm posting isn't already reported.
  • I have checked that the issue I'm posting isn't already solved and no duplicates exist in closed issues and opened issues
  • I have checked the pull requests tab for existing solutions/implementations to my issue/suggestion.

From http://www.zytrax.com/books/dns/ch7/view.html:
"view clauses are processed in the order in which they appear in the named.conf file. "

(BUG | ISSUE) Expected Behavior:
I have:

view "internal" {
	match-clients { localnets; localhost; };
	recursion yes;
	include "/etc/named/zones/zones.conf.internal";
};

view "external" {
	match-clients { any; };
	include "/etc/named/zones/zones.conf.external";
};

(BUG | ISSUE) Actual Behavior:

view "external" {
	match-clients { any; };
	include "/etc/named/zones/zones.conf.external";
};
view "internal" {
	match-clients { localnets; localhost; };
	recursion yes;
	include "/etc/named/zones/zones.conf.internal";
};

(BUG | ISSUE) Steps to reproduce:
I create view "external", then "internal".

In /etc/named.conf "view" are inserted in the order of their creation.
If I have multiple "views" and decide to change their order, it will not be possible. To solve this problem in the current implementation I have to remove all the "view" and create them in the new order.

@WillyXJ WillyXJ changed the title from [ISSUE] fmDNS views - there is not mechanism to appear in file to [ISSUE] fmDNS views - there is no mechanism to order views Nov 2, 2017

WillyXJ pushed a commit that referenced this issue Nov 20, 2017

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Dec 14, 2017

This is now added in fmDNS 3.1 and later.

@WillyXJ WillyXJ closed this Dec 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment