Skip to content
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

need empty-zones-enable no; in named.conf #4629

Closed
adambertsch opened this issue Jan 12, 2018 · 11 comments
Closed

need empty-zones-enable no; in named.conf #4629

adambertsch opened this issue Jan 12, 2018 · 11 comments

Comments

@adambertsch
Copy link

For sites that would like to forward to their own DNS servers, the site table includes the 'forwarders' attribute to allow for this. If the site internal DNS resolves RFC1918 addresses, xCAT dns doesn't work. The reason is that empty-zones-enable in BIND defaults to yes, which creates by default empty reverse zones for all rfc1918 address blocks.

Please allow for a site option to add empty-zones-enable no; to options {} in named.conf for xCAT master node.

@bybai
Copy link
Contributor

bybai commented Jan 15, 2018

hi @adambertsch , thanks your requirements, we will consider your mentioned.

@bybai bybai self-assigned this Jan 15, 2018
@bybai
Copy link
Contributor

bybai commented Jan 15, 2018

Hi @adambertsch , could you provide your failed examples? for excample, 'forwarders', master, nameservers ,domain from site table, /etc/resolv.conf, /etc/hosts, related network entry from networks table, makedns outputs etc. Let me reproduce this in my environment. Thanks.

@adambertsch
Copy link
Author

adambertsch commented Jan 16, 2018

The issue is fairly simple. Current makedns generates a named.conf that looks like this:

#generated by xCAT: /opt/xcat/sbin/makedns command 
options {
       directory "/var/named/";
       allow-recursion { any; };
       forwarders {
               x.x.1.x;
               x.x.2.x;
       };
};

And I need to generate this one:

#generated by xCAT: /opt/xcat/sbin/makedns command 
options {
        directory "/var/named/";
        allow-recursion { any; };
        forwarders {
                x.x.1.x;
                x.x.2.x;
        };
        empty-zones-enable no;
};

@bybai
Copy link
Contributor

bybai commented Jan 17, 2018

@adambertsch , thanks your response.

@gzjfn4
Copy link

gzjfn4 commented Jan 17, 2018

@adambertsch @bybai. PMR: 36104,227,000 was created to track this issue.

@bybai
Copy link
Contributor

bybai commented Jan 18, 2018

Hi @gzjfn4, I am working on this. Thanks

@bybai bybai added this to the 2.13.10 milestone Jan 18, 2018
@bybai bybai added the sprint2 label Jan 18, 2018
@bybai
Copy link
Contributor

bybai commented Jan 18, 2018

Hi @adambertsch and @gzjfn4 , could you confirm your OS?

@gzjfn4
Copy link

gzjfn4 commented Jan 18, 2018

@bybai - the OS is Red Hat Enterprise Linux version 7.3 on Power 8 Little Endian and 7.4 on Power 9 Little Endian

@bybai
Copy link
Contributor

bybai commented Jan 18, 2018

Hi @adambertsch and @gzjfn4 ,
New fix for this request will be in xCAT 2.13.10 build that will be release next week.
Now you can pick up new code and do the following to work around your problem, if any problem, contact me.

The steps:

1, update your xCAT management 2 files based on the new code change https://github.com/xcat2/xcat-core/pull/4650/files. The 2 files location are:

/opt/xcat/lib/perl/xCAT_plugin/ddns.pm
/opt/xcat/lib/perl/xCAT/Schema.pm

2, restart xcatd on xCAT MN:

service xcatd restart

3, change "emptyzonesenable=no" in site table, and execute "makedns -n" or "makedns":

chdef -t site emptyzonesenable=no
makedns -n

4, check result in /etc/named.conf

[root@bybc0602 xCAT]# cat /etc/named.conf
#generated by xCAT: /opt/xcat/sbin/makedns command
options {
	directory "/var/named/";
	allow-recursion { any; };
	forwarders {
		10.5.106.1;
	};
	empty-zones-enable no;
};
... ...

@adambertsch
Copy link
Author

This is great. Thanks very much.

@bybai
Copy link
Contributor

bybai commented Jan 19, 2018

Hi @adambertsch ,
You can pickup latest 717b673 for /opt/xcat/lib/perl/xCAT/Schema.pm. I format the emptyzonsenable, Thanks

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

No branches or pull requests

4 participants