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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.