Operating System - HP-UX
1833934 Members
1687 Online
110063 Solutions
New Discussion

how to setup DNS server and client

 
Daniels_2
Advisor

how to setup DNS server and client

Good Day!

we are planning to implement DNS on our system. Anyone have the procedure on how to setup/configure DNS on hpux.

Thanks and Merry Christmas.....
9 REPLIES 9
Johnson Punniyalingam
Honored Contributor

Re: how to setup DNS server and client

Hi Daniel,

Check below Thread,

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=903949
Problems are common to all, but attitude makes the difference
Steven E. Protter
Exalted Contributor

Re: how to setup DNS server and client

Shalom,

http://tldp.org/HOWTO/DNS-HOWTO.html

Its all in there. I used this very document to do the setup in HP-UX.

Just install BIND from http://software.hp.com before you start.

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
Daniels_2
Advisor

Re: how to setup DNS server and client

Good Day!

I have already implemented the DNS but i have encountered delayed login and it takes almost 1 minute before the login prompt. please take note that this is only happened in HPUX but in LINUX are normal.... below are the config files i have modified....

1. /etc/hosts
2. /etc/nsswitch.conf
3. /etc/resolv.conf

Appriciate your inputs.....

Good Bless..........

Steven Schweda
Honored Contributor

Re: how to setup DNS server and client

> I have already implemented the DNS [...]

And if my psychic powers were not so weak, I
might know something about how you did it.
But they are weak, so I know nothing about
your DNS configuration.

> [...] delayed login [...]

Log in how? Telnet? SSH? R[EM]SH? FTP?

This type of delay commonly happens when the
reverse (address-to-name) DNS look-ups fail.
Some servers try to get the name of the
client system when it connects. That may
take some time to fail (when it fails).

A Forum search for keywords like
delay login dns
should find many previous discussions of the
problem.

> [...] below are the config files i have
> modified....

And if my psychic powers were not so weak, I
might know something about what is in those
(and other) files. But they are weak, so I
still know nothing about your DNS
configuration.
Daniels_2
Advisor

Re: how to setup DNS server and client

i have enccountered slow connection on the following....

Telnet, SSH, R[EM]SH, FTP, and also ftp are affected....

Thanks

Daniels_2
Advisor

Re: how to setup DNS server and client

Good Day!

i have made some configuration below... need your inputs if this parameters are correct...but i have still enccounterd slow connection upon logon...

# cat resolv.conf
nameserver 10.123.38.23

# cat nsswitch.conf
#hosts: dns files
#files: /etc/hosts

# /etc/nsswitch.files:
#
# @(#)B11.23_LR
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any name services.
#
passwd: files
group: files
#hosts: files
ipnodes: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
hosts: dns files
files: /etc/hosts

# cat host.conf
order hosts,bind

Thanks,
Steven Schweda
Honored Contributor

Re: how to setup DNS server and client

What is the IP address of the Telnet server?
What is the IP address of the Telnet client?

What happens when you do this on the Telnet
server:
nslookup Telnet_client_IP_address
?

If it's slow (and fails), then there's a
problem with the DNS configuration, probably
on the DNS server (10.123.38.23, apparently).


> i have made some configuration below...

None of this says much about the DNS server
configuration, which is where I expect the
problem to be.
Daniels_2
Advisor

Re: how to setup DNS server and client

thanks....

Hi......

this is the output of nslookup from HPUX (clients)

# nslookup 10.123.38.23 <--- IP of dns server
*** Warning - the local domain is not set.
*** Either hostname should be a domain name,
*** the domain should be specified in /etc/resolv.conf,
*** or the shell variable LOCALDOMAIN should be set.

Name Server: idns1.intra.com
Address: 10.123.38.23

Trying DNS
Name: idns1.intra.com
Address: 10.123.38.23




just to give an additional info regarding on the configuration of dns server, we are using LINUX platform as DNS server and we are using HPUX,LINUX, AIX as client servers...

Also, just also to give you an info on the result of testing, After configuring clients on HPUX, LiNUX, and AIX... Linux and AIX are normal while on HPUX we enccountered slow connection upon logon... it takes 40 seconds before the login prompt (both Telnet and SSH)....

please advise if theres a parameters needed to add on the configuration on both server and clients....

Below is the current config of DNS servers(linux)

// Based from CIS Bind Bechmark v.1 &
// BIND Administration Manual, 2006
//
// Modified by: Systems Administration, DDG
// July 28, 2008
// Smart Communications, Inc.
//
// FOR MASTER PUBLISHING, CACHING NAME SERVER & IPV4
//

acl "local" { 127.0.0.1; }; // localhost

acl "smartbronets" { // SmartBro supernets
...
...
...
};

acl "intranets" {
...
...
...
};

acl "nameservers" { // Applicable only for PrimaryNS
...
...
...
};

options {
listen-on port 53 { 127.0.0.1; 10.170.16.79; };
directory "/var/named";
statistics-file "data/named.stats.txt";
dump-file "data/cache_dump.db";
memstatistics-file "data/named_mem_stats.txt";
pid-file "/var/run/named/named.pid";
query-source port 53;
check-names master ignore;
//transfer-format many-answers;
allow-transfer { nameservers; }; // Applicable only for PrimaryNS
allow-query { local; smartbronets; intranets; };
allow-recursion { local; smartbronets; intranets; };
version "Not Available";
listen-on { 127.0.0.1; 10.123.38.23; };
blackhole {
192.168/16; 172.16/12; // Private RFC 1918 addresses
244/8; // Multicast
169.254/16; // Link Local
};
};

logging {
channel named {
file "/var/tmp/named.log" versions 20 size 50m;
//file "/var/tmp/named.log" versions unlimited;
print-time yes;
print-category yes;
//severity debug;
severity info;
};
category config { named; }; // Config file processing
category network { named; }; // Network Operations
category security { named; }; // Approved or unapproved request
category client { named; }; // Clients
category notify { named; };
category update { named; };
category xfer-in { named; };
category xfer-out { named; };
category dispatch { named; };
category dnssec { named; };
category database { named; };
category resolver { named; };
category unmatched { named; };
category lame-servers { null; };
category update-security { named; };

channel queries {
file "/var/tmp/queries.log" versions 20 size 50m;
//file "/var/tmp/queries.log" versions unlimited;
print-time yes;
print-category yes;
severity info;
};
category queries { queries; }; // Queries

channel default_debug {
file "data/named.run" versions 20 size 50m;
severity dynamic;
print-time yes;
};
category default { default_debug; };
category general { default_debug; };
category config { default_debug; };

channel syslog {
print-category yes;
syslog daemon;
severity info;
};
category default { syslog; };
category general { syslog; };

};

key "rndckey" {
algorithm hmac-md5;
secret "toxalATkc60lZ5QUKrRoAg==";
};

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndckey"; };
};

include "/etc/named.rfc1912.zones";
include "/etc/named.own-hosted.zones";
include "/etc/named.in-addr.arpa.zones";
Steven Schweda
Honored Contributor

Re: how to setup DNS server and client

Request:

> What happens when you do this on the Telnet
> server:
> nslookup Telnet_client_IP_address
> ?

Response (?):

> this is the output of nslookup from HPUX (clients)
> # nslookup 10.123.38.23 <--- IP of dns server

What does your response have to do with my
request?

> What is the IP address of the Telnet server?
> What is the IP address of the Telnet client?

Still wondering.