Forum OpenACS Q&A: setting hostname using DCHP and dynamic IP

I have a Linux 6.2 box using DHCP and dynamic IP. I have a DNS
service provider, www.dynu.com that maps my dynamic IP to
www.myurl.com, this works, the problem is that the hostname gets
assigned by the ISP to xxx.dsl.tds.net, I've tried hardcoding 'set
hostname  www.myurl.com' in nsd.tcl, but the web pages still display
xxx.dsl.tds.net on the pages, how can I override the ISP assigned
hostname. I've tried changing the env variable HOSTNAME and the
file /etc/HOSTNAME, without success. Any suggestions?
Collapse
Posted by S. Y. on
Please post the nssock module section of your nsd.tcl config file here. And be sure to wrap PRE tags around it to make it more legible. Or, make your nsd.tcl in its entirety available somewhere on the web and post that location here.