"fully qualified domain name" vs. typical home LAN
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to run a database and web server on the LAN, but they both nag me for a fully qualified domain name (FQDN).
Since everything is inside the gateway on a RFC private IP network, I don't have 'bind' or other name server running anywhere. My efforts to use /etc/hosts have not worked.
Since I won't be sending this name or IP address to the public internet, I think that I can call my in-house domain anything that suits my fancy. Is there some convention or "standard?"
Thanks in advance,
~~~ 0;-Dan
Last edited by SaintDanBert; 08-03-2015 at 05:31 PM.
I installed a dnsmasq server on my network and configured the workstations to use it for dns resolution. With dnsmasq you can define domains to be local only (i.e., a request within that domain that dnsmasq can't resolve will not be forwarded to your isp upstream dns.
Easy way is to purchase a FQDN. The issue of lan and never connected to wan may allow you to use any domain name. You'd have to resolve it by some means like hosts, wins or lmhosts I'd think.
Why do you say hosts won't work? Is hosts file set in order to be looked at first? Are you using a proxy.pac file?
Might be able to use hosts files to fool it all. Produce a totally crazy fqdn and odd extension and use hosts file to access it on lan. See if it will take Mysite.xyz
One can create and manage a hosts file on a workstation of any sort. However, I cannot set a hosts file on phones or tablets or game systems.
at least for my android phone this is not true - it has /etc/hosts just like any linux system, and i can edit it.
there's even an app creating a passive adblock via hosts - check https://f-droid.org/
at least for my android phone this is not true - it has /etc/hosts just like any linux system, and i can edit it.
there's even an app creating a passive adblock via hosts - check https://f-droid.org/
Are you running a "rooted" or a stock Android?
I have stock v5.0.1 -- well as shipped by Samsung (my tablet) or AT&T (my phone).
~~~ 0;-Dan
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.