|
|
Dynamic DNS and Rendez-vous
|
|
|
|
Dedicated MacNNer
Join Date: Nov 2000
Location: Netherlands
Status:
Offline
|
|
I've installed dyndns on my machine (OSX10.2.6). Whenever I use my new alias from another machine, I get redirected to the local address of my computer , something like http://ervier.local, which is of course useless from the outside.
This is the rendez-vous name of my machine, not the computer name. Is there a way to solve this problem?
|
"Chance is irrelevant. We will succeed."
== 7 of 9 ==
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Dec 2000
Location: Staffs, UK
Status:
Offline
|
|
Originally posted by ervier:
I've installed dyndns on my machine (OSX10.2.6). Whenever I use my new alias from another machine, I get redirected to the local address of my computer , something like http://ervier.local, which is of course useless from the outside.
This is the rendez-vous name of my machine, not the computer name. Is there a way to solve this problem?
Yes - I had this problem myself just last week. You need to enter the fully qualified hostname in the file /etc/hostconfig.
If you look, you'll see that it says HOSTNAME=-AUTOMATIC- : replace -AUTOMATIC- with <mymachine.dyndns.org> or whatever your hostname is:
sudo pico /etc/hostconfig
This won't be picked up until reboot, so in the mean time you can set the hostname by typing:
sudo hostname <myhostname.dyndns.org>
(obviously, everything in <> brackets is replaced by your own details)
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Nov 2000
Status:
Offline
|
|
Originally posted by Gee4orce:
Yes - I had this problem myself just last week. You need to enter the fully qualified hostname in the file /etc/hostconfig.
If you look, you'll see that it says HOSTNAME=-AUTOMATIC- : replace -AUTOMATIC- with <mymachine.dyndns.org> or whatever your hostname is:
sudo pico /etc/hostconfig
This won't be picked up until reboot, so in the mean time you can set the hostname by typing:
sudo hostname <myhostname.dyndns.org>
(obviously, everything in <> brackets is replaced by your own details)
The other way of doing this is to tell Apache what your hostname actually is.
To do this, edit your Apache configuration in /etc/httpd/httpd.conf. You will need to find the line that starts with "ServerName"
Uncomment this line (remove the # from the start if necessary), and set it to the name of your host. You will then need to reconfigure Apache. Run:
sudo apachectl graceful
for a graceful reconfigure of Apache.
Apache will then know it's name from that and send it back in redirects and other such fun things that it does when you request something like http://host.blah/dir where you don't put a slash on the end of the directory...
- proton
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Nov 2000
Location: Netherlands
Status:
Offline
|
|
Thnx for both replies. Of course I only need one, but it is good to know about both of them. I change the apache configuration, as I wanted to learn more about that anyway. It works from here (the url is not renamed anymore), so I suppose it works from the outside as well, but I'll have to test that tomorrow.
Many thanks!
|
"Chance is irrelevant. We will succeed."
== 7 of 9 ==
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Dec 2000
Location: Staffs, UK
Status:
Offline
|
|
The only problem with just changing the Apache config is that - of course - it only applies to Apache. So, say like me you wanted to get Sendmail to deliver mail, you'd still need to configure the system hostname.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|