Fred Stluka via plug on 8 Dec 2020 13:24:53 -0800


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

Re: [PLUG] Defaulting the domain for a name lookup


Bhaskar,

If you're willing to look at alternate solutions (hacks), you can always
add a line to /etc/hosts containing the IPv4 address, FQDN, and short
name of the machine you're trying to connect to.  That bypasses the
entire DNS system.  Example line:

192.168.1.10    foo.mydomain.org       foo

Just a thought...
--Fred
------------------------------------------------------------------------
Fred Stluka
Bristle Software, Inc.
http://bristle.com 		#DontBeATrump
#ShakeOffTheTrumpStink
#MakeAmericaHonorableAgain
http://MakeAmericaHonorableAgain.us/Trump/Countdown.htm

------------------------------------------------------------------------

On 12/8/20 12:50 PM, K.S. Bhaskar via plug wrote:
I did that, but it did not fix the issue.

  * When the machine was freshly booted, it did not acquire the Ipv6
    address I assigned it, but picked up some other IPv6 address, even
    though I had configured the DHCP server to give it a specific IP
    address. At this point, the ping -c3 grunge command would work.
  * When I released the IPv6 address it picked up and told it to
    re-acquire an IPv6 address, it would get its assigned address, but
    the ping without the domain name stopped working.


The solution: I changed the static assignment to the one that the freshly booted machine picked up. It's a horrible hack, but one I can live with, at least until it stops working…

Regards
– Bhaskar

On Mon, Dec 7, 2020 at 5:37 PM Jeremy Kister via plug <plug@lists.phillylinux.org <mailto:plug@lists.phillylinux.org>> wrote:

    On 12/7/2020 5:20 PM, K.S. Bhaskar via plug wrote:> $ cat
    /etc/systemd/resolved.conf.d/mybands_local
    > Domains=mybands.local

    I think files are only picked up from that directory when they end
    in .conf

    try renaming that file to mybands.local.conf

    afterwards, you may need to restart networking or reboot.

--
    Jeremy Kister
    https://jeremy.kister.net./ <https://jeremy.kister.net./>
    ___________________________________________________________________________
    Philadelphia Linux Users Group         --
    http://www.phillylinux.org <http://www.phillylinux.org>
    Announcements -
    http://lists.phillylinux.org/mailman/listinfo/plug-announce
    <http://lists.phillylinux.org/mailman/listinfo/plug-announce>
    General Discussion  --
    http://lists.phillylinux.org/mailman/listinfo/plug
    <http://lists.phillylinux.org/mailman/listinfo/plug>


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug