- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: changing dns entries in /etc/resolv.conf
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
10-14-2004 05:23 AM
10-14-2004 05:23 AM
Let's say I have 100 recovery images (Ignite-UX). If the dns entries in the recovery images' /etc/resolv.conf is no longer valid, what would be the best way to change it without recreating or rebuilding the images?
Thanks,
Jimmy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 05:36 AM
10-14-2004 05:36 AM
Re: changing dns entries in /etc/resolv.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 05:38 AM
10-14-2004 05:38 AM
Re: changing dns entries in /etc/resolv.conf
If you are looking to "push" a new /etc/resolv.conf because you are igniting servers at a different site that have a different DNS server, then you just write a script to push out the new file to each host. if this is the case, then you will also have to address the changes in IP addresses and potentially subnet masks and default gateways.
Your best bet for DNS handling, is to make your hosts DNS Caching servers, and include your other sites DNS server in the search list. Your "other" site should have an active DNS server that can become the master if necessary.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 05:57 AM
10-14-2004 05:57 AM
Re: changing dns entries in /etc/resolv.conf
I should have mentioned entries as in domain and nameserver, not "dns..."
So, if I want to change this in all 100 recovery images what would be the best way without recreating the recovery images?
Thanks again.
Jimmy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 06:06 AM
10-14-2004 06:06 AM
Re: changing dns entries in /etc/resolv.conf
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 06:14 AM
10-14-2004 06:14 AM
SolutionI'm just trying to offer some clarification here.
If I understand correctly, you would like to "mass edit" the /etc/resolv.conf files that have been saved in the Ignite images to reflect the new DNS entries.
I don't know the structure of the Ignite images well enough to say if that's possible or not, but hopefully someone else can figure out a way.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 06:18 AM
10-14-2004 06:18 AM
Re: changing dns entries in /etc/resolv.conf
Take a look at 'man instl_adm'. Ignite-UX has a pretty powerful command set, and one of the things you can do is to use it to specify the DNS settings. Here is a snippet from the man page:
[final] dns_domain = cplx_string
[final] dns_nameserver [index] = cplx_string
[final] dns_search [index] = cplx_string
Sets the domain name services (DNS) domain, one or more name
servers, and optionally, one or more search domains. The index
parameter to the dns_nameserver and to the dns_search keywords
allows more than one name server and search domain to be
configured. The first server and search domain should be
assigned using an index of 0, and the second 1, etc. See
resolver(4) for details.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 06:18 AM
10-14-2004 06:18 AM
Re: changing dns entries in /etc/resolv.conf
I don't want to go into each image and change the contents manually.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 06:26 AM
10-14-2004 06:26 AM
Re: changing dns entries in /etc/resolv.conf
Have you explored the iux_postload and port_load_cmds
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066936128
the doc id is KBAN00000927.
and the ignite faq,
http://www.software.hp.com/products/IUX/faq.html
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2004 06:50 AM
10-14-2004 06:50 AM
Re: changing dns entries in /etc/resolv.conf
Thanks for the inputs.
Currenlty exploring the first 8KB of INSTALLFS to have the new dns_domain and dns_nameserver and see if that overwrites the recovery image' /etc/resolv.conf entries.
Also, we're looking at the iux_post_config.
Thanks all.
Cheers,
Jimmy