Re: Resolving names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 1 May 2025, at 07:23, Mike Wright <nobody@xxxxxxxxxxxxxxxxxxxx> wrote:

(fqdn).

How utilities such as as nslookup and dig figure out what to do when the final dot on a fqdn is missing is a mystery to me.  Perhaps they always add a dot then trim the name to have no more than one.  IDK

The lack of a trailing "." means that a failed lookup can be tried by adding each term in the "search" list in /etc/resolve.conf.

My /etc/resolve.conf is:

$ cat /etc/resolv.conf
search internal
nameserver 172.17.1.1

And resolvectl reports:

$ resolvectl 
Global
         Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
  resolv.conf mode: stub

Link 2 (enp0s5)
    Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
         Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 172.17.1.1
       DNS Servers: 172.17.1.1
        DNS Domain: internal
     Default Route: yes


Which means that "internal" will be added to any failed lookup.
This is a function of the algorithm in glibc and other libraries.

dig does not use the "search" list. You must provide FQDN to it.
nslookup will add suffixes from "search" list if the trailing "." is missing.

I prefer using "dig" because it you need to be explicit what you want queried.
(I think nslookup is deprecated with dig as the replacement)

Barry

-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux