LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-03-2015, 05:23 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
"fully qualified domain name" vs. typical home LAN


Is there a quick and easy way to deliver a fully qualified domain name for a typical home LAN?
Code:
Provider gateway |==> wired switches ==> wired drops in rooms
                 |==> wifi access point ==> walkabout use

wired switches ==> towers, set-top-boxes & printers

wifi access points ==> laptops, phones, tablets, etc
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.
 
Old 08-03-2015, 06:10 PM   #2
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
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.
 
Old 08-03-2015, 07:45 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
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
 
Old 08-11-2015, 12:45 PM   #4
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by jefro View Post
...
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?
...
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.

~~~ 8d:-/ Dan
 
Old 08-12-2015, 02:54 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by SaintDanBert View Post
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/
 
Old 08-12-2015, 06:29 PM   #6
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by ondoho View Post
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
 
Old 08-12-2015, 11:47 PM   #7
yo8rxp
Member
 
Registered: Jul 2009
Location: Romania
Distribution: Ubuntu 10.04 Gnome 2
Posts: 102

Rep: Reputation: 31
on web server install bind9
create there any virtual host you want , even google.com without purchase it , then set LAN PC dns to webserver IP

in /etc/bind/pri.domain edit such
$TTL 3600
@ IN SOA 192.168.1.100. mail.domain.com. (
2014082001 ; serial, todays date + todays serial #
7200 ; refresh, seconds
540 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;

domain.com. 3600 A 192.168.1.100
mail 3600 A 192.168.1.100
www 3600 A 192.168.1.100
domain.com. 3600 MX 10 mail.domain.com.
domain.com. 3600 NS 192.168.1.100.
domain.com. 3600 NS 192.168.1.100.


save it , restart bind service and there you are , of course , change 192.168.1.100 and domain.com acordingly
 
Old 08-13-2015, 07:17 AM   #8
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
You can run a .com domain inside your LAN. However, .local is usually preferred for internal domains.
 
Old 08-15-2015, 12:46 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by SaintDanBert View Post
Are you running a "rooted" or a stock Android?
rooted.
point taken, your statement was "cannot set a hosts file...".
however, the hosts file is still there, even on stock android.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using sed regex to remove the top level domain from a fully qualified domain name linux2man Programming 6 12-01-2011 03:38 PM
[SOLVED] servers fully qualified domain name garyg007 Debian 6 07-23-2010 09:08 AM
"Could not reliably determine the server's fully qualified domain name, using 127.0. amritpalpathak Linux - Software 2 03-20-2010 02:36 PM
Squid doesn' want to start: "... fully qualified domain name...". RomanG Linux - Networking 1 01-27-2005 01:39 AM
Fully Qualified Domain Name tumana Linux - Networking 4 06-10-2004 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration