Kea hostname with periods at the end
-
I've noticed that the hostname has an extra period at the end when using Kea DHCP. Is there a way to correct this, or could this be a bug?
-
@impact1560 that is proper for a fqdn..
There is nothing to change. But to be honest .local as tld is a horrible choice.. This the mdns domain, shouldn't really use it for normal dns.
The trailing . is the root.. you will see that in any query as the actual question and the answer even if you leave it off
$ dig www.google.com ; <<>> DiG 9.16.50 <<>> www.google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52269 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;www.google.com. IN A ;; ANSWER SECTION: www.google.com. 160 IN A 172.217.0.164 ;; Query time: 0 msec ;; SERVER: 192.168.9.253#53(192.168.9.253) ;; WHEN: Sat Sep 28 00:05:03 Central Daylight Time 2024 ;; MSG SIZE rcvd: 59
https://datatracker.ietf.org/doc/html/rfc8499
DNS TerminologyThe presentation format for names in the global DNS is a list of labels ordered by decreasing distance from the root, encoded as ASCII, with a "." character between each label. In presentation format, a fully-qualified domain name includes the root label and the associated separator dot. For example, in presentation format, a fully-qualified domain name with two non-root labels is always shown as "example.tld." instead of "example.tld". [RFC1035] defines a method for showing octets that do not display in ASCII. The common display format is used in applications and free text. It is the same as the presentation format, but showing the root label and the "." before it is optional and is rarely done. For example, in common display format, a fully-qualified domain name with two non-root labels is usually shown as "example.tld" instead of "example.tld.". Names in the common display format are normally written such that the directionality of the writing system presents labels by decreasing distance from the root (so, in both English and the C programming language the root or Top-Level Domain (TLD) label in the ordered list is rightmost; but in Arabic, it may be leftmost, depending on local conventions).
Presentation format vs "common" format
-
-
@impact1560 top level domain..
netgate.com.
com is the tld
pfsense.org
org is the tld, .local as a tld has been hijacked my apple and their mdns..
https://en.wikipedia.org/wiki/.local
.local has since been designated for use in link-local networking, in applications of multicast DNS (mDNS) and zero-configuration networking (zeroconf) so that DNS service may be established without local installations of conventional DNS infrastructure on local area networks.
The recommend domains you should use locally is home.arpa or newer is .internal, so in your case with cos.local would become say cos.home.arpa or cos.internal would be much better choices.
-
Thank You, I never knew that.