LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-12-2014, 04:43 PM   #1
ddavidson19998
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
Multiple FQDNs on one host


How do I enable multiple Fully Qualified Domain Names (FQDNs) on a single host? Do I simply make entries in /etc/hosts for each FQDN?
 
Old 12-12-2014, 05:30 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
That depends on how you wish to use these names. If you simply want to be able to refer to the host by different names from within various applications running on that host, entries in /etc/hosts will do the trick.
 
Old 12-13-2014, 04:24 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,048

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
A FQDN is a public name that you use generally from outside your lan. It is a way to access by name an IP address in the web. Hosts file is generally a way to have a lan client look up a name to ip.

So, if you want to host many web sites on a single server that has only one IP address then the normal way is to use host headers to direct to internal pages. Make a default page for older web browsers to direct to local.

Possible to use ip with ports too.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
quick question about the dig command and FQDNs mman12 Linux - Server 6 11-03-2011 09:51 PM
creating multiple user in multiple linux boxes from single remote host niaz_ph Linux - Newbie 3 09-12-2011 03:48 PM
Destination Host Unreachable On Multiple eth and Multiple Gateway sangprabv Linux - Networking 7 05-28-2010 10:51 AM
DNS without using FQDNs excelon969 Linux - Networking 2 10-14-2004 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:32 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