[Freeipa-devel] [PATCH] Use DNS forwarders in /etc/named.conf

Martin Nagy mnagy at redhat.com
Fri Sep 4 09:28:22 UTC 2009


On Fri, 2009-09-04 at 09:50 +1000, David O'Brien wrote:
> Martin Nagy wrote:
> > Hi,
> > This patch adds options --forwarder and --no-forwarders. At least one of
> > them must be used if you are doing a setup with DNS server. They are
> > also mutually exclusive. The --forwarder option can be used more than
> > once to specify more servers. If the installer runs in interactive mode,
> > it will prompt the user if none of these option was given at the command
> >
> > Martin
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Freeipa-devel mailing list
> > Freeipa-devel at redhat.com
> > https://www.redhat.com/mailman/listinfo/freeipa-devel
> Something like ipa-server-install --setup-dns --forwarder <IP> 
> --forwarder <IP> ?
> You can't use a separated list of IP addresses to save space and typing?
> 
> That may go against coding style or practice, I don't know...
> 
> /me has user hat on  :-)

Hm, well, we use a python module to handle option parsing [1] and this
is the way it handles lists. We could allow the IP addresses to be
separated by, say, ',' but this also has the risk that the user will do
"--forwarder 1.2.3.4, 2.3.4.5" which of course wouldn't work (the last
IP is treated as a positional argument).

Martin

[1] http://docs.python.org/library/optparse.html




More information about the Freeipa-devel mailing list