Enhance resource agent for named in RHEL 6

Solution Unverified - Updated -

Issue

  • As per the bugzilla#680748 the resource agent for named could do with enhancement. The agent(/usr/share/cluster/utils/named-parse-config.pl) is great but could benefit from a few changes:
  1. It runs the daemon as root. This isn't desirable. There isn't much required to change this. Passing named daemon launch line a "-u named" and chowning the directory that holds the pid file seems to be enough. (Tried this with a chown named:named dirname $NAMED_pid_file, after the creation routine there is probably a cleaner way, it may even be better to chgrp and chmod g+w, haven't checked).

  2. Even though this agent changes the listen address to match the IP address of passed to the service. Zone Transfers etc always come from the main IP of the node running the service. This isn't perfect as these are often secured by source IP (on the up level boxes) (and this is a hassle if a large number of nodes in the cluster) and it is confusing that it isn't the cluster service IP.

  3. The resource script should probably (even if by an option) change not just listen-on but set "transfer-source", "query-source", "notify-source". There maybe others.

Environment

  • Red Hat Enterprise Linux Server (RHEL) 6 (with the High Availability Add on)
  • Named agent in Red Hat Cluster Suite

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.