You are not logged in.

#1 2021-12-26 15:24:37

Franco_64
Member
From: Milano, Italy
Registered: 2021-11-20
Posts: 49

[SOLVED] Make my dhcpcd resolve LAN domain names

Hi all,

I use dhcpcd for get the ISP router and go to the Internet, but I also have got a computer in my LAN (a Rasberry Pi) that has a little webserver (with picochess showing my chess games). I can reach that Rasberry via its numerical address, but (despite it is correctly registered with its name in the router), I'm not able to reach it with its name.

How can I do?

Last edited by Franco_64 (2021-12-27 05:31:24)

Offline

#2 2021-12-26 16:29:58

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: [SOLVED] Make my dhcpcd resolve LAN domain names

https://wiki.archlinux.org/title/Domain_name_resolution

Last edited by Zod (2021-12-26 16:31:39)

Offline

#3 2021-12-26 16:52:47

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,493
Website

Re: [SOLVED] Make my dhcpcd resolve LAN domain names

I just put the devices in my lan in my /etc/hosts.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2021-12-26 20:45:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,154

Re: [SOLVED] Make my dhcpcd resolve LAN domain names

If you're … erheem… also using dhcpcd on the raspi, edit /etc/dhcpcd.conf and make sure to uncomment the "# hostname" line (then restart dhcpcd) to have it announce its hostname via dhcpcd so that iff the router also provides a DNS server, it can utilize that.
If there's no local DNS you'd have to resolve via avahi - or indeed just edit your /etc/hosts

Offline

#5 2021-12-27 05:30:57

Franco_64
Member
From: Milano, Italy
Registered: 2021-11-20
Posts: 49

Re: [SOLVED] Make my dhcpcd resolve LAN domain names

I've resolved editing /etc/hosts on my Arch. Thanks to all.

Offline

Board footer

Powered by FluxBB