<br><br><div class="gmail_quote">On Thu, Jun 12, 2008 at 5:02 PM, Johnny Hughes <<a href="mailto:johnny@centos.org">johnny@centos.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">Padmaja R wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
thanks for the reply, I sometime back changed the hostname using the<br>
/etc/sysconfig/network only. However, that only has 2 lines in it-<br>
Networking=Yes, Hostname=<a href="http://sipx.com" target="_blank">sipx.com</a><br>
<br>
Where can I edit the dnsdomainname and domainname variables? I do not see<br>
those variables in /etc/hosts or /etc/sysconfig/network.<br>
<br>
Thank You<br>
<br>
<br>
<br>
On Thu, Jun 12, 2008 at 1:41 PM, mkn0014 <<a href="mailto:mkn0014@gmail.com" target="_blank">mkn0014@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Padmaja R wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I am running centos 5.1 and I wish to change the domain name and<br>
dnsdomainname of my PC. currently the settings are--<br>
<br>
$ hostname<br>
<a href="http://sipx.com" target="_blank">sipx.com</a> <<a href="http://sipx.com" target="_blank">http://sipx.com</a>><br>
$ hostname --fqdn<br>
<a href="http://sipx.com" target="_blank">sipx.com</a> <<a href="http://sipx.com" target="_blank">http://sipx.com</a>><br>
$ domainname<br>
(none)<br>
$ dnsdomainname<br>
com<br>
<br>
I have searched in the net for tips but everywhere only the hostname<br>
change is provided. I need to change/set the domain name and the dnsdomain<br>
name on my pc to <a href="http://sipx.com" target="_blank">sipx.com</a> <<a href="http://sipx.com" target="_blank">http://sipx.com</a>> and this should be a<br>
permanent one across system reboots. Please let me know how to do this.  The<br>
domain name settings are required for a networking/ SIP telephony<br>
applications that I am running but it is internally in the LAN, so I think<br>
the name <a href="http://sipx.com" target="_blank">sipx.com</a> <<a href="http://sipx.com" target="_blank">http://sipx.com</a>> if chosen as my pc's domain name will<br>
not cause any conflict with the external domain names in the Internet.<br>
<br>
Thank You<br>
<br>
</blockquote>
Edit /etc/sysconfig/network<br>
Restart<br>
</blockquote></blockquote>
<br></div></div>
IF you have 3 names in your host name it will work ... it will not work with just 2 names.<br>
<br>
you need <a href="http://host.domain.com" target="_blank">host.domain.com</a><br>
<br>
right now, your host is sipx ... you have NO DOMAIN NAME except .com<br>
<br>
you can easily then also set and alias in /etc/hosts to <a href="http://sipx.com" target="_blank">sipx.com</a> ... and also use an alias in apache as well.<br>
<br>
If you use a proper FQDN with 3 names then everything will "JUST WORK" ....<br>
<br>
Take this name that I use:  myth.home.local<br>
<br>
$ hostname<br>
myth.home.local<br>
<br>
$ hostname --fqdn<br>
myth.home.local<br>
<br>
$ dnsdomainname<br>
home.local<br>
<br>
Note:  use also used the domainname command, that command has nothing to do with dns names, but with "the system's NIS/YP domain name".<br>
<br>
Thanks,<br><font color="#888888">
Johnny Hughes<br>
</font></blockquote><div><br><br><br>Hi all,<br>

Thanks for the replies with the dnsdomainname settings, it works fine now,<br>

I would however, like to set the domainname (not the dnsdomainname) as
well which is also called the NIS/YP domainname. Please let me know how.<br>

<br>

Thanks,<br>

Padmaja </div></div>