]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Allow disable for fqdn option so command line can override config.
authorRoy Marples <roy@marples.name>
Wed, 6 Aug 2008 08:31:20 +0000 (08:31 +0000)
committerRoy Marples <roy@marples.name>
Wed, 6 Aug 2008 08:31:20 +0000 (08:31 +0000)
dhcpcd.8.in
dhcpcd.c

index 7a3dcf1e61c89a06dd4608db06a8af6eed2e5054..d17e8e6280c67d2d234657ae3058f925c9950510 100644 (file)
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd Jul 28, 2008
+.Dd August 6, 2008
 .Dt DHCPCD 8 SMM
 .Sh NAME
 .Nm dhcpcd
@@ -296,7 +296,7 @@ Requests that the DHCP server updates DNS using FQDN instead of just a
 hostname.
 Valid values for
 .Ar fqdn
-are none, ptr and both.
+are disable, none, ptr and both.
 The current hostname or the hostname specified using the
 .Fl h , -hostname
 option must be a FQDN.
index db7e9087dc11c1525cb248480bb3923033abba71..75fc3a4017853fabef68aabe1ba43b58316c9d90 100644 (file)
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -501,6 +501,8 @@ parse_option(int opt, char *oarg, struct options *options)
                        options->fqdn = FQDN_PTR;
                else if (strcmp(oarg, "both") == 0)
                        options->fqdn = FQDN_BOTH;
+               else if (strcmp(oarg, "disable") == 0)
+                       options->fqdn = FQDN_DISABLE;
                else {
                        logger(LOG_ERR, "invalid value `%s' for FQDN",
                               oarg);