Linux Debian support - Changing the local domain name

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > July 2005 > Changing the local domain name





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Changing the local domain name
ad

2005-07-24, 2: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.
Paul Cupis

2005-07-24, 5: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
Al Krieger

2005-07-24, 5: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
ad

2005-07-24, 8:45 pm

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.

Ken LE PRADO

2005-07-25, 5:47 pm

What about ?

# grep -r myhome\.net /etc

This may help you to find out the problem

Ken
Paul Cupis

2005-07-25, 5: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?
Eric Pozharski

2005-07-25, 8:46 pm

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.)
Leopold BAILLY

2005-07-29, 5: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.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com