* [gentoo-user] /etc/hosts include file?
@ 2013-03-07 22:24 99% Alan McKinnon
0 siblings, 0 replies; 1+ results
From: Alan McKinnon @ 2013-03-07 22:24 UTC (permalink / raw
To: gentoo-user
Anyone know if there's a way to get /etc/hosts to support the notion of
an include file? I did my homework and found nothing, maybe someone else
knows more.
I really do need this, I have an app that discovers things on the
network and knows their address. This makes it's automated way into DNS
but takes a few days, and another app needs to use the fqdn right now.
So /etc/hosts is the way to go for the interim three days.
I've worked around it by creating /etc/hosts.d/ containing a header and
a data file. cat the two and redirect to /etc/hosts.d/hosts and the real
hosts file is a symlink to that. It's a sub-directory as none of these
apps run as root and only root can modiy the real hosts file.
This works well enough, but a supported include mechanism would make
life so much simpler, not to mention easier for my colleagues to
understand what the blazes I set up :-)
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2013-03-07 22:24 99% [gentoo-user] /etc/hosts include file? Alan McKinnon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox