If i want to name my server..
x.domain.tld
why must i edit 2 files in order to accomplish this.
the two files being:
/etc/sysconfig/network
/etc/hosts
also does the servername or hostname..
do i need to create an A record for it with my DNS company ?
because while the server is not complaining about
x.domain.tld
the truth is.. i have not created an A record for
x.domain.tld
with my DNS company.
or perhaps it is a CNAME record and not an A record ?
but ultimately the question is.
do i even have to create an A record or a CNAME record for the hostname that i use in
/etc/sysconfig/network
/etc/hosts
?
because by default.. although
x.domain.tld
is the hostname in
/etc/sysconfig/network
/etc/hosts
unless i create an A record or a CNAME record with my DNS provider..
x.domain.tld
will never resolve on the internet.
and yet..
the server itself seems to be resolving it just fine and not complaining about it
i think it actually complains only if i do not have a
VirtualHost
entry in the
httpd.conf
file
for the
domain.tld
although the hostname in the
/etc/sysconfig/network
/etc/hosts
is a
x.domain.tld