HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Configurin anaconda file
Operating System - Linux
1830133
Members
2840
Online
109999
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2009 04:21 AM
11-03-2009 04:21 AM
Configurin anaconda file
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.
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.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 01:26 AM
11-04-2009 01:26 AM
Re: Configurin anaconda file
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 06:19 AM
11-04-2009 06:19 AM
Re: Configurin anaconda file
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2009 07:46 AM
11-04-2009 07:46 AM
Re: Configurin anaconda file
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
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
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP