On Tue, 2025-04-29 at 03:10 -0500, Javier Perez wrote:
> Help. Looking at the about systemd-resolved question prompted me to
> try to clear a problem I am having with local DNS.
> My home system have few pcs and other  devices, some of them with
> static ip addresses set at my local router.
> My situation is that name resolution does not always work.

If you want no-effort LAN name resolution you can use mDNS where it
will work by broadcasting info and seeing who responds, with no
configuration anywhere (in fact, don't try manual configuration, you'll
get into a bunfight with it).  Everything will be a hostname dot local.

  e.g. bloody.local



Or...  You could configure single hostnames into BIND, but that would
be messier than giving them a pseudo domain name (*), and putting all
the records for each device in its zone file.  And setting a search
domain into your networking configuration on each device (that may be
one big piece missing from your puzzle), so it will append your domain
name to hostname queries (but dig will only look up precisely what you
ask it to).

* The TLD .internal has been set aside for this purpose, so it won't
clash with real domain names.



Or...  You can configure everything's addresses into your /etc/hosts
files, giving their full names and their short aliases.  Each computer
will need the full list of names for all the other things you want to
converse with via a name.

e.g.

# IP address canonical name   alias(es)
############ ##############   #########

192.168.1.5  bloody.internal  bloody

A reverse lookup for the name for the IP will return the first name on
the list.  A lookup for any name after the IP will return that IP.


Or...  You can do what I've done.  For many years I've used a
combination of DHCP and DNS serving on my server, and my modem/router
is not a part of it.  While my router can dole out DHCP IP addresses,
it won't do local name resolution, so I disable its DHCP server.  That
also means that I can unplug and reset it without my LAN going potty.

I have some fixed records in my DNS server for some equipment, and my
DHCP server is configured to give specific devices specific IP
addresses.  This *also* requires making sure the equipment doesn't use
randomised MAC addresses (well there /are/ other ways of pinning
addresses to particular equipment, but using their MACs is the easy
solution).  Those devices can either be manually configured on
themselves, or I can let the DHCP server give them the same
information.  And my DHCP server tells them all to add the localdomain
name (to their hostname, and to the search parameters).

My DHCP server will dole out non-fixed addresses to other devices
attached to my LAN, and will enter their details into my DNS server's
records.  And it will remove them when they expire.

-- 
 
uname -rsvp
Linux 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 

-- 
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to