Changing the local domain name
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > Changing the local domain name




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Changing the local domain name  
ad


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-24-05 07:46 AM

I recently installed DEBIAN (unstable) in to a laptop. During the
install, I used "myhome.net" as the domain name. Now I am trying to
change this to a different domain name but I can't seem to find
how. Only place I see this domain is written is /etc/resolv.conf. I
edited this file but each time I reboot the laptop, it changes back to
"myhome.net". I did do "find" in /etc (and (/) and I can not find
anywhere else that has "myhome.net".

So, how is this "myhome.net" is keep coming back to my resolv.conf
after each boot? How can I chance the local domain name? I hope I do
not need to reinstall the whole system again.

Thanks.





[ Post a follow-up to this message ]



    Re: Changing the local domain name  
Paul Cupis


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-24-05 10:47 PM

ad wrote:
> I recently installed DEBIAN (unstable) in to a laptop. During the
> install, I used "myhome.net" as the domain name. Now I am trying to
> change this to a different domain name but I can't seem to find
> how. Only place I see this domain is written is /etc/resolv.conf. I
> edited this file but each time I reboot the laptop, it changes back to
> "myhome.net". I did do "find" in /etc (and (/) and I can not find
> anywhere else that has "myhome.net".
>
> So, how is this "myhome.net" is keep coming back to my resolv.conf
> after each boot? How can I chance the local domain name? I hope I do
> not need to reinstall the whole system again.

Look in the following files:

/etc/hosts
/etc/resolv.conf
/etc/network/interfaces





[ Post a follow-up to this message ]



    Re: Changing the local domain name  
Al Krieger


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-24-05 10:47 PM

Paul Cupis wrote:

> ad wrote: 
>
> Look in the following files:
>
>   /etc/hosts
>   /etc/resolv.conf
>   /etc/network/interfaces

Actually, It's /etc/hostname.  Just change the name there.
--
askrieger(at)rcn(dot)com





[ Post a follow-up to this message ]



    Re: Changing the local domain name  
ad


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-25-05 01:45 AM

On Sun, 24 Jul 2005 12:22:15 -0400, Al Krieger wrote:

> Paul Cupis wrote:
> 
>
> Actually, It's /etc/hostname.  Just change the name there.

/etc/hosts has the following:
127.0.0.1 mylaptop locahost
and some ip6-* stuff


/etc/network/interfaces has no enty regarding to "myhome.net", so I don't
know what to change there.

/etc/hostname has:
mylaptop

and /etc/resolv.conf has:
search myhome.net
nameserver a.b.c.d

So I am still confused about what to change. Like I said before, I keep
changing the entry in /etc/resolv.conf but "myhome.net" keeps coming after
reboot.

Thanks.






[ Post a follow-up to this message ]



    Re: Changing the local domain name  
Ken LE PRADO


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-25-05 10:47 PM

What about ?

# grep -r myhome\.net /etc

This may help you to find out the problem

Ken





[ Post a follow-up to this message ]



    Re: Changing the local domain name  
Paul Cupis


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-25-05 10:47 PM

ad wrote:
> So I am still confused about what to change. Like I said before, I keep
> changing the entry in /etc/resolv.conf but "myhome.net" keeps coming after
> reboot.

Do you use DHCP?





[ Post a follow-up to this message ]



    Re: Changing the local domain name  
Eric Pozharski


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-05 01:46 AM

Al Krieger <me@home.myhouse.dom> wrote:
> Paul Cupis wrote: 
[***SKIP***][vbcol=seagreen] 
>
> Actually, It's /etc/hostname.  Just change the name there.

Look at `/etc/sysctl.conf' too.  Then your hostname will be set sooner.
If you have a procps package installed, of course.

--
Torvalds' goal for Linux is very simple: World Domination
(it's third person quote.)





[ Post a follow-up to this message ]



    Re: Changing the local domain name  
Leopold BAILLY


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-29-05 10:49 PM

ad <as@no-span.org> writes:

> I recently installed DEBIAN (unstable) in to a laptop. During the
> install, I used "myhome.net" as the domain name. Now I am trying to
> change this to a different domain name but I can't seem to find
> how. Only place I see this domain is written is /etc/resolv.conf. I
> edited this file but each time I reboot the laptop, it changes back to
> "myhome.net". I did do "find" in /etc (and (/) and I can not find
> anywhere else that has "myhome.net".
>
> So, how is this "myhome.net" is keep coming back to my resolv.conf
> after each boot? How can I chance the local domain name? I hope I do
> not need to reinstall the whole system again.

Just launch base-config to redo what you did at install time.


Léo.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:40 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

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
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register