From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D560D15838C for ; Sun, 28 Jan 2024 19:05:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C8CFE2A3C; Sun, 28 Jan 2024 19:05:40 +0000 (UTC) Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD1A2E2A36 for ; Sun, 28 Jan 2024 19:05:39 +0000 (UTC) Received: from host86-152-228-249.range86-152.btcentralplus.com ([86.152.228.249] helo=[192.168.1.65]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1rUATK-000000002lb-6rnW for gentoo-user@lists.gentoo.org; Sun, 28 Jan 2024 19:05:38 +0000 Message-ID: <0326db17-c19f-452b-b25c-14eca7503c53@youngman.org.uk> Date: Sun, 28 Jan 2024 19:05:37 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] Unable to locate printer Content-Language: en-GB To: gentoo-user@lists.gentoo.org References: <51bfea1d-0148-415c-aa08-f09817c0718f@sys-concept.com> <70024d67-264c-483a-9248-94eeb9ce8046@sys-concept.com> From: Wol In-Reply-To: <70024d67-264c-483a-9248-94eeb9ce8046@sys-concept.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 55a62c00-5aab-4f89-81f4-f272080e446b X-Archives-Hash: be2339bd2c21435b144044866d320964 On 28/01/2024 17:43, Thelma wrote: > The solution was to change printer setting: > > lpd://BRN30055C898DF9/BINARY_P1 > lpd://brother-5370/BINARY_P1 > > with: > lpd://printer-IP-address/BINARY_P1 > lpd://printer-IP-address/BINARY_P1 That implies the problem is your router or printer - nothing to do with gentoo. Using the IP address is dangerous - unless you've explicitly configured stuff, it can change ... At the end of the day, everything here is a pain in the arse if you are using DHCP, and if you're using static IPs it's a pain in the arse too ... :-) What you want to do is configure your printer to send its DHCP with an "I am called X" message. Your DHCP server (I guess it's your router) then needs to configure DNS so that X matches whatever IP address it hands out (that *should* happen automatically). Then everything "just works (TM)". The trouble is it sometimes doesn't "just work". With my router, I know I have a local range of 192.168.1/8. And it's configured so that 1..127 are available for random DHCP allocation. 128..254 are static addresses. and 0 and 255 are broadcast and router respectively. That's of course all if IIRC. But then, for my server(workstation) and printers I've then allocated a static mac->IP mapping, so I can put a hard-coded entry in my hosts file. Stuff I don't care about, laptops, mobile phones, games boxes, etc just get a random IP. Basically, you need to understand how DNS, DHCP, and all this name allocation stuff works, and it's pretty logical. It just takes quite a bit getting your head round it. Cheers, Wol