Compatible Support Forums: setting domain name

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

setting domain name

#1 User is offline   mblanco2000 

  • stranger
  • Group: Members
  • Posts: 5
  • Joined: 05-December 03

Posted 07 December 2003 - 04:28 AM

I am running RH9 and am very new. I am trying to set the domain name on the machine so that it has the same domain name for the interface eth1.

I know I can just type domainname <name> when it starts up but how would I set the domain name and the hostname everytime it boots up.

Thanks for the help.

MB
0

#2 User is offline   chrispope 

  • newbie
  • Group: Members
  • Posts: 29
  • Joined: 09-December 03

Posted 22 January 2004 - 07:07 PM

I run SuSE 9.0 and I know for a fact that it can run, at boot time, a custom script that is very hassle free to edit and execute.
Go, as root user, and find /etc/init.d/boot.local if it's there; if that file is there then go to the end of it with your favorite text editor and add your command that sets your domain name as if you were at the console.
If all goes well, save the file, reboot, and the instant before your computer switches to your preselected runlevel, your command will run.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users