Operating System - HP-UX
1836460 Members
2392 Online
110101 Solutions
New Discussion

Re: /etc/resolv.conf file

 
SOLVED
Go to solution
Angela L. Shepherd_1
Occasional Advisor

/etc/resolv.conf file

I have a machine that isn't hooked up to our regular network. It is a stand alone server that has two pc connected to it. I't takes 5 minutes to connect to the server from one of the pc. What should my /etc/resolv.conf file look like.
2 REPLIES 2
Quin Hammes
Valued Contributor
Solution

Re: /etc/resolv.conf file

I assume that you mean by stand alone that it is not on the network, if you are not using DNS lookup for addresses resolution (just using the /etc/hosts file) then you should not have a resolv.conf and you /etc/nsswitch.conf file should have a line in it like this...

hosts: files

This line should not have mention of DNS or nis in it (unless you are using them)
If you are using DNS for resolution, then your resolv.conf should list the nameservers you use for dns and should look something like this...

domain mydomain.com
nameserver 23.54.23.23 (or whatever your DNS server's ip address is)
nameserver 23.54.23.22
etc...

hope this helps.

Bryce Dunn
Valued Contributor

Re: /etc/resolv.conf file

when you connect to the machine it will try and get the name from the IP address, this is why it is so slow. even if your name servers are set right (if you are using dns and not hosts files) this will still not work properly unless the reverse zone is set up on your name server, but for a small network it is easier to use the hosts files