your hostname should really only be a single name without a dot since
it's the *name* of your computer. however, that does not prevent you
from fitting it into the big scheme of mydomain.com.
let's say that you named your machine "pear," then /etc/hostname would
read just pear, your /etc/hosts file would be
cat << EOF > /etc/hosts
127.0.0.1 localhost pear
EOF
your /etc/resolv.conf file would be
cat << EOF > /etc/resolv.conf
domain mydomain.com
search mydomain.com
nameserver 1.2.3.4 # replace with nameserver address 1
nameserver 5.6.7.8 # replace with nameserver address 2
nameserver 3.5.7.9 # replace with nameserver address 3
nameserver 2.4.6.8 # replace with nameserver address 4
EOF
and you'd configure your DNS zone to have your static IP (say
111.222.111.222) to point to pear.mydomain.com:
pear.mydomain.com. IN A 111.222.111.222
now your machine would happily interact with anything else, being
known as "pear" to console users and users on machines that belong to
mydomain.com. from the outside, it would be pear.mydomain.com.
i hope this answered your question...
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
--
"in the country of the blind,
the one-eyed man is not king.
he is taken to be a hallucinating lunatic."
-marshall mcluhan
Attachment:
pgp4JAdTJRVxH.pgp
Description: PGP signature