Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Dynamic DNS and Rendez-vous

Dynamic DNS and Rendez-vous
Thread Tools
ervier
Dedicated MacNNer
Join Date: Nov 2000
Location: Netherlands
Status: Offline
Reply With Quote
May 28, 2003, 02:38 PM
 
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 ==
     
Gee4orce
Professional Poster
Join Date: Dec 2000
Location: Staffs, UK
Status: Offline
Reply With Quote
May 29, 2003, 03:21 AM
 
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)
     
proton
Senior User
Join Date: Nov 2000
Status: Offline
Reply With Quote
May 29, 2003, 03:36 AM
 
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
     
ervier  (op)
Dedicated MacNNer
Join Date: Nov 2000
Location: Netherlands
Status: Offline
Reply With Quote
May 29, 2003, 05:43 AM
 
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 ==
     
Gee4orce
Professional Poster
Join Date: Dec 2000
Location: Staffs, UK
Status: Offline
Reply With Quote
May 29, 2003, 10:19 AM
 
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.
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:04 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,