Operating System - HP-UX
1833758 Members
2993 Online
110063 Solutions
New Discussion

Re: No resolv.conf file presnet in /etc.

 
SOLVED
Go to solution
Gulam Mohiuddin
Regular Advisor

No resolv.conf file presnet in /etc.

While installing VPO 6.0 I get the following message:

Cannot find /etc/resolv.conf, no name server defined.

Why this files is not present and how I can create this file.

Thanks,
Everyday Learning.
4 REPLIES 4
Rob Smith
Respected Contributor
Solution

Re: No resolv.conf file presnet in /etc.

You can just create the file in your /etc directory and put your name servers in it. Example.

vi /etc/resolv.conf

search zone.com
nameserver **.**.**.**
nameserver **.**.**.**
nameserver **.**.**.**

You can have up to three nameservers.

Hope this helps.
Rob

Learn the rules so you can break them properly.
Rita C Workman
Honored Contributor

Re: No resolv.conf file presnet in /etc.

This file should be present to tell the system where the NAMED is running.....this file would be on your DNS server. You don't have this box set up for DNS, so you must resolv and tell the system which node/system has the named file. You need this to send email from the HPUX server.
You can simply create the file with vi. An example might be:
domain
nameserver

Hope this helps,
Rita
James R. Ferguson
Acclaimed Contributor

Re: No resolv.conf file presnet in /etc.

Hi Gulam:

This is an optional file that if present, enables DNS [see 'man 4 resolver'].

It contains entries that would look like:

domain mydot.com
nameserver 10.10.10.7
nameserver 10.10.10.8

It is used in conjunction with /etc/nsswitch.conf. Your 'nsswitch' file contains a line that looks like:

hosts: files [NOTFOUND=continue] dns

Look in /usr/newconfig/etc/nsswitch* for various templates for /etc/nsswitch.conf.

...JRF...
Vincenzo Restuccia
Honored Contributor

Re: No resolv.conf file presnet in /etc.

If you want configure /etc/resolv.conf and /etc/nsswitch.conf with SAM (Networking).