fully qualified domain name for linux web server

I am setting up ubuntu linux to host three registered domains (for example):
www.abc.com
www.def.com
www.ghi.com

I know how to install and enter hostname and domain.

My question is, if I want to run a nameserver, web sites and email for the domains, does my ubuntu server fully qualified domain name (FQDN) have to be one of my registered domain names such as www.abc.com or can it literally be localnet.net

hostname -s
myserver1

hostname -f
myserver1.localnet.net
LVL 2
gregdaveyAsked:
Who is Participating?
 
TobiasHolmCommented:
Hi!

The DNS server must have a FQDN if you're gonna access it from the internet. But the DNS server itself doesn't have to be in one of the registered domains.

Regards, Tobias
0
 
gregdaveyAuthor Commented:
Thanks. So I have set up /etc/hosts with:

127.0.0.1 localhost
192.168.0.212 myserver1.localnet.net myserver1

Do I have to add any zones to my bind configuration for myserver1.localnet.net or is it enough just to have the entry in hosts?

I can ping localhost, myserver1 and myserver1.localnet.net

0
 
gregdaveyAuthor Commented:
I can ping localhost, myserver1 and myserver1.localnet.net from myserver1, not anywhere on the network or internet.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
fosiul01Commented:
Ok lets starts from

www.abc.com

to have you own Dns server you need 2 IP.. suppose you got  

xx.xx.xx.xx
yy.yy.yy.yy

now you need create Glue record for these Ips

From your domain Control panel/'or you will have to tell your domain registered company that you need create Glue record for those IP, so that they map to your server

so it would be example

ns1.abc.com  -> xx.xx.xx.xx
ns2.abc.com  -> yy.yy.yy.yy

Now you will have to create zone record in your dns server

abc.com.zone

in your bind you will have 2 type of view

internal and external

put all your zone record information in external view

and keep your port 53 open


thats it

Now about your other domain

www.dif.com

from their domain control panel you will have to change name server to ns1.abc.com and ns2.abc.com

thats it
and same create zone record into your dns server

Hdoes my ubuntu server fully qualified domain name

not necessary but if you want this ubuntu server to work as dns server for internal network then yes, but not for external uses
0
 
gregdaveyAuthor Commented:
Thanks for the responses. I will test as soon as possible and then award points.
0
 
gregdaveyAuthor Commented:
I appreciate the answers and am bumping up the points so I can award points to both answers.

I still don't think it is that clear whether the ubuntu server domain has to be a registered domain name but I assume from the answers above that it does not.
0
 
gregdaveyAuthor Commented:
To me, it is still not clear if my ubuntu domain name has to be a registered domain name. From the answers I assume it doesn't.
0
 
fosiul01Commented:
I thought  , i said this clearly on my comments

not necessary but if you want this ubuntu server to work as dns  server for internal network then yes, but not for external uses


if this ubuntu server works as Dns server for internal network (internal zone ) then yes, it has be FQDN. but not for external domain server
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.