cancel
Showing results for 
Search instead for 
Did you mean: 

Configure DNS

SOLVED
Go to solution
Dags
Frequent Advisor

Configure DNS

Hi All,

Please help me setup my DNS configuration. I'm running HP-UX B.11.31 ia64. Thanks in advance. Will give points.

Regards,
Dagz
8 REPLIES
bullz
Super Advisor

Re: Configure DNS

Hey Dagz,

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... :)
Dags
Frequent Advisor

Re: Configure DNS

Hello Bullz,

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
Steven Schweda
Honored Contributor

Re: Configure DNS

> Please help me setup my DNS configuration.

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.
bullz
Super Advisor
Solution

Re: Configure DNS

Hoo I am rally sorry.. i don't have HP test server to show you how.. But see, if this can help you....

If /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....!
Dags
Frequent Advisor

Re: Configure DNS

It's a standalone server. And we have a private DNS server.

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?
Steven Schweda
Honored Contributor

Re: Configure DNS

> What will I do with nsswitch.conf?

Do you need one? What doesn't work now?
Jayakrishnan G Naik
Trusted Contributor

Re: Configure DNS

Hi Dagz

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

Dags
Frequent Advisor

Re: Configure DNS

>Do you need one? What doesn't work now?

I don't know if I need it. But I think its working now thanks to Bullz.