.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd May 02, 2008
+.Dd May 12, 2008
.Dt DHCPCD 8 SMM
.Sh NAME
.Nm dhcpcd
sent, or an empty string to
stop any
.Ar hostname
-from being sent. If
-.Ar hostname
-is an FQDN (ie, contains a .) then it will be encoded as such.
+from being sent.
.It Fl i , -classid Ar classid
Override the DHCP vendor
.Ar classid
hostname. Valid values for
.Ar fqdn
are none, ptr and both.
+The current hostname or the hostname specified using the
+.Fl h , -hostname
+option must be a FQDN.
.Nm
-dhcpcd itself never does any DNS updates.
+itself never does any DNS updates.
.It Fl I , -clientid Ar clientid
Change the default clientid sent from the interface hardware address.
If the string is of the format 01:02:03 then it is encoded as hex.
Bourne shell script that is run when we configure or deconfigure an interface.
.It Pa @SYSCONFDIR@/dhcpcd.duid
Text file that holds the DUID used to identify the host.
-.It Pa @DBDIR@/dhcpcd- Ns Ar interface Ns .lease
+.It Pa @DBDIR@/dhcpcd\- Ns Ar interface Ns .lease
The actual DHCP message send by the server. We use this when reading the last
lease and use the files mtime as when it was issued.
.El
goto abort;
}
}
- if (strchr(options->hostname, '.')) {
+
+ if ((p = strchr(options->hostname, '.'))) {
if (options->fqdn == FQDN_DISABLE)
- options->fqdn = FQDN_BOTH;
- } else
- options->fqdn = FQDN_DISABLE;
+ *p = '\0';
+ } else {
+ if (options->fqdn != FQDN_DISABLE) {
+ logger(LOG_WARNING, "hostname `%s' is not a FQDN",
+ options->hostname);
+ options->fqdn = FQDN_DISABLE;
+ }
+ }
if (options->request_address.s_addr == 0 &&
options->options & DHCPCD_INFORM)
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd May 02, 2008
+.Dd May 12, 2008
.Dt DHCPCD.CONF 5 SMM
.Sh NAME
.Nm dhcpcd.conf
.It Ic fqdn Op none | ptr | both
none disables FQDN encoding, ptr just asks the DHCP server to update the PTR
record of the host in DNS whereas both also updates the A record.
+The current hostname or the hostname specified using the
+.Fl h , -hostname
+option must be a FQDN.
+.Nm dhcpcd
+itself never does any DNS updates.
.It Ic interface Ar interface
Subsequent options are only parsed for this
.Ar interface .