- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Configure DNS
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
Discussions
Discussions
Forums
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
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
тАО11-23-2010 07:42 PM
тАО11-23-2010 07:42 PM
Please help me setup my DNS configuration. I'm running HP-UX B.11.31 ia64. Thanks in advance. Will give points.
Regards,
Dagz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 07:48 PM
тАО11-23-2010 07:48 PM
Re: Configure DNS
Do u wanna DNS client level configuration or you want to setup DNS server?
If you want to setup DNS setup it's big task. you may have to follow some manual.
If you want to just configure a DNS client level if you know your DNS IPaddress already, you can go ahead add it in /etc/resolv.conf and also make changes in /etc/nsswitch.conf
If you google it you get many stuf... :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 09:55 PM
тАО11-23-2010 09:55 PM
Re: Configure DNS
Yes, I want to setup DNS client only. I did google already but it seems faster here.
for your suggestion:
# cat /etc/resolv.conf
cat: Cannot open /etc/resolv.conf: No such file or directory
# cat /etc/nsswitch.conf
cat: Cannot open /etc/nsswitch.conf: No such file or directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 11:01 PM
тАО11-23-2010 11:01 PM
Re: Configure DNS
Please explain how you'd like to configure
your DNS.
> [...] client only.
That's a start, I suppose. Did you have a
DNS server in mind? Do you have a domain?
Do you have any useful information at all?
> # cat /etc/resolv.conf
> cat: Cannot open /etc/resolv.conf: No such file or directory
> [...]
man resolv.conf
man nsswitch.conf
Use a text editor to create one? With no
useful information and my weak psychic
powers, it's hard to say what you ought to
put into your DNS configuration files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 11:11 PM
тАО11-23-2010 11:11 PM
SolutionIf /etc/resolv.conf is not available, then create it.
Please make sure, you are aware of your DNS server IPaddres.
#vi /etc/resolv.conf
nameserver 192.168.XX.X
And then, please look for /etc/nsswitch.conf, if not create this also. i suggest you to refer the other model server to look for the samples.
/etc/nsswitch.conf may look like this.
root@chitti # cat /etc/nsswitch.conf
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)nsswitch.files 1.14 06/05/03 SMI"
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.
passwd: files
group: files
#hosts: files # Commented out by DHCP
hosts: files dns # Added by DHCP
#ipnodes: files # Commented out by DHCP
ipnodes: files dns # Added by DHCP
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
*****************************
Here you DNS will first look for files (/etc/hosts), if not found it will contact DNS as per above configuration.
hosts: files dns
Good Luck....!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 11:12 PM
тАО11-23-2010 11:12 PM
Re: Configure DNS
Now I have my /etc/resolv.conf
# cat "/etc/resolv.conf"
Nameserver 10.224.2.50
nameserver 10.224.2.70
search globetel.com ns.isggt.net dc.isggt.net
What will I do with nsswitch.conf?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 11:17 PM
тАО11-23-2010 11:17 PM
Re: Configure DNS
Do you need one? What doesn't work now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 11:24 PM
тАО11-23-2010 11:24 PM
Re: Configure DNS
Do you have the nsswitch.conf file? If you don't have it, copy /etc/nsswitch.files to /etc/nsswitch.conf and set the entry
hosts: files dns
Or modify it as you need it.
Thanks & Regards
Jayakrishnan G Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-23-2010 11:39 PM
тАО11-23-2010 11:39 PM
Re: Configure DNS
I don't know if I need it. But I think its working now thanks to Bullz.