Commit Graph

72 Commits

Author SHA1 Message Date
sjing
f475c143e9 only try to stop named if restartneeded=1
because on linux, if the named is already stopped, when we tried
to stop named, the return code is 0 with a warning message;
while on AIX, if the named is already stopped, when we tried to
stop named, the return code is 1, it's different with Linux.
2013-11-13 02:06:00 -05:00
sjing
fb60b65258 Handle the case where networks.nameservers is a comma delimited list 2013-10-24 04:19:47 -04:00
sjing
069169902d Enhance usability of makedns with more checks and better messages. 2013-09-11 05:15:36 -04:00
sjing
3e71a82741 add an error message if mn's hostname can not be resolved. 2013-09-04 05:58:19 -04:00
sjing
5a18669108 bug 3478 - exclude the net with external namesserver configured from dns zones.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16580 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-08 07:04:09 +00:00
sjing
d5f7c77bc1 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16530 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd 2013-06-04 08:16:38 +00:00
sjing
2cd7e5aaa4 Fix for bug 3538 - sometimes stopsrc -s named takes a longer time to take effect.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16095 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-27 06:11:49 +00:00
jbjohnso
6fe6d9d9c8 Have ddns.pm call the code that hosts plugin uses to support extra interfaces
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16031 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-22 19:03:07 +00:00
jbjohnso
876fa7df69 Add support for external DNS and DHCP servers
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-09 20:21:02 +00:00
nott
50890c8a4a add multi-domain support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 15:22:04 +00:00
xq2005
890d2b321e ddns support on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14771 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 07:22:27 +00:00
xq2005
9c09b4b077 chown for the dns db file on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14639 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-13 06:05:46 +00:00
sjing
6527f298bb handle $reply=undef
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 05:59:36 +00:00
xq2005
cdd0af2092 the dns configure file on ubuntu /etc/bind/named.conf owner group should be bind
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 03:23:12 +00:00
sjing
92a8d070c2 use ip instead of hostname to new the resolver.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14426 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-26 08:12:39 +00:00
zhaoertao
de5444c466 fix bug 3073: ddns.pm sets umask 0007 and never restores original umask
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13882 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 09:19:21 +00:00
zhaoertao
40e144b4cc for item: clean up Utils.pm, the code in xCAT-server/lib/xcat/plugin/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 04:07:40 +00:00
ligc
0a6f3cc7c5 fix for bug 3538902: move the code from ddns.pm to xcatconfig to configure named to start on boot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13197 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 05:52:47 +00:00
brianfinley
a9284fafcc s/in scaling cluster./for a large cluster./g
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13101 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-15 05:18:56 +00:00
jjhua
403326620f For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12859 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 05:58:08 +00:00
sjing
99092c60c3 start named on boot.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11646 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-21 02:04:35 +00:00
sjing
84adefc1e3 check named status and start it if needed before add/delete dns records.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11635 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-20 05:49:41 +00:00
sjing
47284337f0 added -e flag to keep flexibility of ddns updating dns records to external dns server based on /etc/resolv.conf. Also default to use localhost as the dns server.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11631 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-20 04:26:38 +00:00
sjing
e77d5efd6c the fix for hostname alias
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11592 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-16 02:38:43 +00:00
sjing
2975af1e14 check if maskbits indivisible by 4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11575 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-15 05:52:55 +00:00
sjing
1b7ffeb485 fix for the makedns problem when mn configured with global ipv6 address
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11463 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-03 09:39:54 +00:00
sjing
c8ec7c366e If site.dnshandler is blank, then default to ddns.pm.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10997 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-11-14 09:02:42 +00:00
ericagar
cede69d8d7 Fix for defect 3419745: Fix Method to Determine if System is Ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10710 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-10-06 17:45:08 +00:00
ligc
192d8e77cf fix for bug 3391271: add dns forwarder into /var/named/db.cache to support dns forwarder on AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10505 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-09-13 02:29:29 +00:00
lissav
8b5457c410 user Utils->SELINUX to check for selinux enabled
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10336 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-22 12:02:08 +00:00
lissav
db03b9948d added selinux check
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10322 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-19 11:55:15 +00:00
lissav
e8f39c6866 add error process per defect 3393849
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10321 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-19 11:32:43 +00:00
lissav
7eb6cdac76 Allow domain in /etc/resolv.conf for AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10318 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-18 17:38:53 +00:00
otubo
3fc059acb4 Fix for bug #3391658, by Renan Guerra <renan.nannetti@gmail.com>
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10286 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-15 00:30:40 +00:00
sjing
eea5c1c769 The user provided fix for makedns issue of domain without dots, introduced new bug.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10280 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-12 11:17:36 +00:00
lissav
d68bd60d13 add check for search for site.domain in /etc/resolv.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10251 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-09 16:39:47 +00:00
sjing
c4eabee332 Fixed the makedns issue for domain without dots.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10246 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-09 07:50:36 +00:00
lissav
53345329d3 add warning if nameserver site.master not found in /etc/resolv.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10238 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-07 11:24:49 +00:00
sjing
488434e985 undo the fix, will add it after I get the an agreement signed by
Max Kovalenko, who provided the efix.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10233 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-05 08:35:44 +00:00
sjing
c7a68e6106 support domain without dot.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10232 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-05 08:27:59 +00:00
lissav
1e1597db88 take out creation of /etc/resolv.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10227 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-04 20:52:07 +00:00
sjing
bf4861084a generate /etc/resolv.conf on mn, also keep the original logic for the dynamic query of "NS" record.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10220 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-04 06:57:18 +00:00
lissav
30c65f7b30 fix for running makedns multiple time creates bad named.conf defect 3383702
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10218 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-03 19:57:41 +00:00
sjing
059780f587 Fix for the issue - makedns with no flag does not work.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10158 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-07-27 05:14:47 +00:00
jbjohnso
2234fd8eb0 Hint for making ipv6 named work great
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10140 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-07-21 14:37:54 +00:00
sjing
bd957d710f Add stub hint zone for AIX, to handle the scenario where the xcat mn is it's own nameserver and will go no where else for name resolution.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-07-20 06:45:30 +00:00
sjing
6292010005 Temp fix for bugzilla 73119, chown root:named to /var/lib/named dir, which is the default DNS working dir on SLES. This is just a temp workaround in xcat code before we get response from SuSE.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10114 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-07-19 06:26:52 +00:00
jbjohnso
d1228353b2 Add CentOS 6.0 support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10060 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-07-12 20:18:36 +00:00
jbjohnso
72f0ae7b4f Forbid removing all /etc/hosts entries from DNS with makedns -d as it pretty well corrupts most configs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9983 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-06-29 17:57:25 +00:00
sjing
d9e88fa588 makedns -d must be followed by noderange.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-06-28 09:07:53 +00:00