- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- converting from /etc/hosts to dns server
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
07-23-2002 10:48 AM
07-23-2002 10:48 AM
Is the only thing we have to is
1. Create nsswitch.con file where:
hosts: dns [NOTFOUND=return] files
2. create resolv.conf file where:
"dns Server name" "dns server ip address"
Is that it? seems too simple...
Any help would be much appreciated..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:51 AM
07-23-2002 10:51 AM
SolutionYes you are on right track. You need to modify both nsswitch.conf and resolv.conf in /etc/directory .
Configure nswwitch.conf file to look dns first then local files for hosts table.
and in resolv.conf put domian name and search orders.
Yes.. Unix is never complicated.:)
-Goodluck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:53 AM
07-23-2002 10:53 AM
Re: converting from /etc/hosts to dns server
2. You have to first enter the DNS domain name for search. Then you have to give the IP address of the DNS Servers.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:55 AM
07-23-2002 10:55 AM
Re: converting from /etc/hosts to dns server
Place an entry liike this in your '/etc/nsswitch.conf' file:
hosts: files [NOTFOUND=continue] dns
Now, create an 'etc/resolv.conf' file like:
domain xxx.com
nameserver 10.101.101.100
nameserver 10.101.101.101
No reboot is necessary. Use 'nslookup' to verify.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 10:58 AM
07-23-2002 10:58 AM
Re: converting from /etc/hosts to dns server
domain mydomain
nameserver 1.1.1.1
the domain line is optional, and only used for translating myhost to myhost.mydomain.com
For the nsswitch.conf, I would recommend you do the following.
hosts: dns [ NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] files
What you have will work, but lock the systems for name resolution when the NT system is down/unavailable/service crashes, etc... Your safety valve is to look at local files when that occurs. NOTFOUND=return will literally lock the system if the resource is not there, waiting for resolution of the name.
Also, it is pretty easy to configure both the resolv.conf and nsswitch.conf through SAM.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 11:01 AM
07-23-2002 11:01 AM
Re: converting from /etc/hosts to dns server
Yep, it's basically that simple. But I would do it somewhat different. I'd set nsswitch.conf for
files [NOTFOUND=return] dns
then trim the /etc/hosts down to JUST critical servers - as few as you'd need to keep running IF the DNS server failed and few enough to manually admin if necessary. Which leads to my 2nd point - you should run at least 2 DNS servers. One primary & one secondary to take over if primary fails. Heck you do state that they'll be NT....need I say more?
Also in that resolv.conf file you want
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
domain subnet.company.com
search subnet.company.com subnet2.comapny.com
NOTES: 1) You MUST use the term nameserver - NOT the host name. 2) The Nameservers are tried from the top down. 3) The domain statement & search nets are optional - the domain adds that info to shortname (hostname only) searches & the search will cycle through those domains as well if hostname is not found in the original domain.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 11:03 AM
07-23-2002 11:03 AM
Re: converting from /etc/hosts to dns server
Everyone gets tens.....
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 11:58 AM
07-23-2002 11:58 AM
Re: converting from /etc/hosts to dns server
Is it the same?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2002 12:14 PM
07-23-2002 12:14 PM
Re: converting from /etc/hosts to dns server
'/etc/resolv.conf' is the same. For 'nsswitch' you use '/etc/netsvc.conf', but cnsult the AIX man pages -- the specifications therein are different.
Regards!
...JRF...