setting domain name

This is a discussion about setting domain name in the Everything Linux category; 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.

Everything Linux 1800 This topic was started by , . Last reply by ,


data/avatar/default/avatar38.webp

5 Posts
Location -
Joined 2003-12-05
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

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Dec 7
Created
Jan 22
Last Response
0
Likes
1 minute
Read Time
User User
Users

Responses to this topic


data/avatar/default/avatar10.webp

29 Posts
Location -
Joined 2003-12-09
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.