1825737 Members
2443 Online
109687 Solutions
New Discussion

Configuring DNS

 
SOLVED
Go to solution
Elizabeth21
Advisor

Configuring DNS

I'm configuring DNS by file /etc/resolv.conf.
I have to add a new address DNS in my resolv, but then I done this the telnet connection is very slow to response.
Anyway, have I to do only that for add new DNS ??

thank you for each reply at my question !!
8 REPLIES 8
Fabian Briseño
Esteemed Contributor

Re: Configuring DNS

Hola Elizabeth.

in SAM->Networking and Communications->
Name Service Switch-> hosts


in what order is the name service awitch resolving ?

mine is /etc/hosts DNS NIS

also what Operating system version are you using?



Knowledge is power.
Steven E. Protter
Exalted Contributor

Re: Configuring DNS

Shalom,

You should also put an entry matching the ifconfig lan0 output for your system in /etc/hosts

The default configuration uses /etc/hosts first and your connection speed in inbound telnet can be boosted by this simple move. I'm assuming of course that lan0 is your primary NIC.

Good Luck,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
skt_skt
Honored Contributor

Re: Configuring DNS

Could u give a sample output of /etc/resolv.conf and /etc/nsswitch.conf

How is the speed when u use ssh connection?
Bill Hassell
Honored Contributor

Re: Configuring DNS

> slow to respond

A classic case of missing DNS records. Your DNS administrator probably did not setup reverse (PTR) records for any of the hosts. HP-UX (and most Unix systems) try to authorize incoming connections by seeing if the IP address has been authorized by having an entry in DNS. When the DNS server has no PTR record, HP-UX waits for about 20-25 seconds per DNS server listed in resolv.conf.

The fix is to add all incoming hosts to /etc/hosts, then change the line in /etc/nsswitch.conf to read file then dns:

hosts: files [NOTFOUND=continue UNAVAIL=continue] dns

or fix your DNS server.


Bill Hassell, sysadmin
Elizabeth21
Advisor

Re: Configuring DNS

I try to configure the nsswitch.conf and add the ip in hosts file but the response by telnet is very slow yet.
Yes, the dns that I insert in resolv.conf is not yet available, but I need to configure it.

Geoff Wild
Honored Contributor
Solution

Re: Configuring DNS

Okay, which telnet connect it slow - from the server out? or to the server?

My resolv.conf:

domain mydomain.com
nameserver 192.168.110.147
nameserver 192.168.162.157
nameserver 192.168.162.6
retrans 1500
retry 2


Ttry adding the last 2 to yours (retrans and retry)

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bill Hassell
Honored Contributor

Re: Configuring DNS

You must rename /etc/resolv.conf because you do not have working DNS servers. Call it /etc/resolv.conf.old or something similar. Also change your /etc/nsswitch.conf to read:

hosts: files

and nothing else. Leave it this way until you have a working DNS server. Now you'll have no delays. Verify with:

nslookup some_name
nsquery hosts some_name

It should find everything in /etc/hosts.


Bill Hassell, sysadmin
Elizabeth21
Advisor

Re: Configuring DNS

thak you to all

I solve the slow connection by :
nsswitch.conf add UNAVAIL=continue
resolv.conf add retrans 1500 and retry 2

bye bye
Elis