are none, ptr and both.
.Nm
dhcpcd itself never does any DNS updates.
-.It Fl H , --sethostname
-Forces
-.Nm
-to set the hostname as supplied by the DHCP server, or look it up
-in DNS if none supplied.
.It Fl I , -clientid Ar clientid
Send
.Ar clientid
Don't request or claim the address by ARP.
.It Fl G , -nogateway
Don't set any default routes.
+.It Fl H , -nohostname
+Don't request a hostname. If the current hostname is blank, localhost or
+(none) then the hostnam will be looked up in DNS and set to that.
.It Fl L , -noipv4ll
Don't use IPv4LL at all.
.It Fl M , -nomtu
{"lastlease", no_argument, NULL, 'E'},
{"fqdn", optional_argument, NULL, 'F'},
{"nogateway", no_argument, NULL, 'G'},
- {"sethostname", no_argument, NULL, 'H'},
+ {"nohostname", no_argument, NULL, 'H'},
{"clientid", optional_argument, NULL, 'I'},
{"noipv4ll", no_argument, NULL, 'L'},
{"nomtu", no_argument, NULL, 'M'},
int sig = 0;
int retval = EXIT_FAILURE;
char *p;
- int doopts = 1, dodns = 1, dohostname = 0, donis = 1, dontp = 1;
+ int doopts = 1, dodns = 1, dohostname = 1, donis = 1, dontp = 1;
/* Close any un-needed fd's */
for (i = getdtablesize() - 1; i >= 3; --i)
options->options &= ~DHCPCD_GATEWAY;
break;
case 'H':
- dohostname = 1;
+ dohostname = 0;
break;
case 'I':
if (optarg) {