Hostname and main domain

expream

Verified User
Joined
Sep 17, 2005
Messages
53
Hello all!

I'm have just installed DA. And now I'm dont know what is Hostname and what is Main Domain. In Admin -> Administrator setting -> there is domain1.com As servers hostname, and ns1.domain1.com and ns2.domain1.com as NS... And where can I see Main Domain??? What does it meen? in rc.conf hostname is domain1.com too...

And how and where can I change Main domain and Hostname?

And now, when i go to domain1.com:2222 ot drop me to IP:2222 .... how can I solve it..?
 
Last edited:
The "Main domain" is the domain set up in the admin's user control panel.

The hostname is used by DA and is maintained in several places. DA gets it on installation from whatever you type in.

If you need to change it, change it through DA.

Jeff
 
The "Main domain" is the domain set up in the admin's user control panel.

You meen ... in Admin control panel under USER LEVEL???
 
Maybe I should take back what I wrote...

Where did you see a "main domain" referred to?

The server's "main domain" is at /var/www, and most of us don't use it for anything.

We keep some diagnostics there and, it's also where squirrelmail and webmail are kept.

It's reached by the server's hostname and the main IP#.

But I don't know where you read or saw "main domain" so I don't know what you're thinking of.

Jeff
 
The hostname should not be the same as the primary domain name. e.g. gary.com is not a good hostname, where server.gary.com is. (from DA installation guide) ... can you now say me where can I see this primary domain and serverhostname ... i'm total get mexid... :(
 
hostname, main domain seems to
cause much confusion in general.

some of the servers I have, are initially
set up with some default nonsense,
usually the result of me completing an
orderform, and being asked for a hostname.
If I put s10.blogs.com, then when I first
log into DA, under admin settings, I see
hostname: s10.blogs.com
and nameservers ns{1,2}.blogs.com.

but at that time, I can safely ignore that
and move on to other stuff, and maybe
change it later (more below..)

if this was indeed my only server, or was
setting this up as completely independent,
and wanted to host a site called xhosting.com,
a domain which I maybe owned, then
i'd like the IP address on my external
interface to be that for blah.xhosting.com, and
of course I'd need 2 nameservers.
Easiest way would perhaps be (as I have
done) create a reseller package, then
create a reseller who's domain was
xhosting.com, with 3IPs used.
then I'd pop off to my registrar and use
the IPs DA assigned for the nameservers
to create ns{1,2} over there.

if the IP used for xhosting.com wasn't the one
on my interface, then i'd add an A record
for blah.hosting.com using that one.
I'd pop over to admin setting, and add
the hostname (blah...) and the two
new nameservers (names only).
Then I'd run the hostname script:
./hostname.sh blah.xhosting.com 1.2.3.4
(or whatevr the IP was).

i could also run the /etc/namedb/make-localhost
script, to produce to correct local reverse
zones (no doubt most people don't).

Any new users set up will use these nameservers.

I'd like to set up rDNS for this hostname,
so either the DC has given me permissions
to do this, or I can ask them nicely.


I've a few servers from NAC. Now they
do set up the hostname chosen by
themselves at install. (200000 + the number
of the server installed, I think) i.e.

$ hostname
221008.ds.nac.net

and they've set up rDNS for this also,
and bound this IP to the external interface,
and set this up in DA. mostly I leave this
as it is, why bother...

I could add a 'main domain' as above,
as a reseller's domain, and if I use this
reseller to create all users, the user will
be assigned the reseller's nameservers
to use, probably good enough for most people.

sending mail, using exim, for example
will use the primary_hostname set up,
and unless something else is done,
the IP set as From will be that on the
external interface, of course. Some may
not like seeing From 221008.ds.nac.net
and in that case may try to fiddle around
setting up their own hostname. But the IP
set by NAC for this you'd no doubt have
any control over, and have to ask for
changes wrt rDNS etc. Other providers
may do the same.

At Leaseweb (amsterdam) and coreix (UK)
where I've other servers, it's just the
dummy entries they've used at setup,
and these can safely be changed as you like.

So always a good idea to maybe check
how the provider has the box set up at
install, and think about really needing to
change anything at all wrt hostname.

the document root for the server IP,
Iand the one used for DA whichmay differ)
is indeed /var/www/html/

isn't really a 'main domain', and going to

http://1.2.3.4/

or whatever the IP is you have, will just
serve up one of the index pages from the
/var/www/html/ directory on the box.
 
Back
Top