Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > Linux > system administration

Configurin anaconda file

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: Configurin anaconda file      Add to my favorites
Eli_pok
Nov 3, 2009 12:22:10 GMT   

Hi,

I'm trying to configure my anaconda file so that a new server will have the following entries in its /etc/resolv.conf :
search com domain1.com domain2.com
nameserver 1.2.3.4
nameserver 2.3.4.5

I know how to add the nameserver entries :
network --nameserver 1.2.3.4,2.3.4.5

but how do I edit the search line ?

Thanks ahead.
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Vitaly Karasik Expert in this area This member has accumulated 2500 or more points
Nov 4, 2009 09:26:21 GMT  5 pts

Eli,
To be pricise, you're speaking about kickstart configuration.
As usually in unix, you can do this in a few ways, one of them is just add appropriate lines in "%post" section, like this:

%post
echo "search com domain1.com domain2.com
" >> /etc/resolv.conf

See some kickstart reference for more.
Eli_pok
Nov 4, 2009 14:19:25 GMT    N/A: Question Author

Thank for your reply.

the %post is a known option and it is what I've used till now.
I'm trying to use as much options as possible in the anaconda file itself and not write "echo" connamnds in the post section.
Matti Kurkela Expert in this area This member has accumulated 7500 or more points
Nov 4, 2009 15:46:19 GMT    Unassigned

A quick look into the RHEL Installation Guide would have told you that there is *no* documented option in the kicstart configuration file for setting the DNS search list:

https://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/s1-kickstart2-options.html#d0e23896

I can see their reasoning: the installation procedure itself does not need DNS search lists for anything (after all, it's easy enough to specify fully-qualified names in the kickstart configuration file if you need to specify something by hostname), and there is no harm in using Vitaly's technique for configuring it. So why implement extra features if you can Keep It Simple?

MK
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.